-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathSConspage
43 lines (33 loc) · 1.16 KB
/
SConspage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2023 MizunagiKB <[email protected]>
import os
import glob
env = Environment(ENV={"PATH": os.environ["PATH"]})
def collect_page():
for src_pathname in glob.glob("./demo/addons/gd_cubism/res/shader/*.gdshader"):
_, filename = os.path.split(src_pathname)
env.Command(
source=src_pathname,
target=os.path.join("./docs-src/modules/ROOT/examples", filename),
action=[Copy("$TARGET", "$SOURCE")],
)
env.Command(
source="./LICENSE.adoc",
target="./docs-src/modules/ROOT/pages/ja/license.adoc",
action=[Copy("$TARGET", "$SOURCE")],
)
env.Command(
source="./LICENSE.en.adoc",
target="./docs-src/modules/ROOT/pages/en/license.adoc",
action=[Copy("$TARGET", "$SOURCE")],
)
def build():
env.Command(target="DUMMY", source=None, action=[Delete("./docs")])
env.Command(
source="./docs-site/antora-playbook.yml",
target="./docs",
action=["antora --fetch $SOURCE"],
)
env.Command(target="./docs/.nojekyll", source=None, action="touch ./docs/.nojekyll")
collect_page()
build()