Skip to content

Commit 17abd79

Browse files
committed
build(project): remove HTML from packages
1 parent 7b67595 commit 17abd79

2 files changed

Lines changed: 5 additions & 18 deletions

File tree

add-ons/HitImpact.org

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
HitImpact spawns textured particles when a surface is hit.
99

10+
HitImpact is a part of [[https://github.com/mmaulwurff/doom-toolbox/][DoomToolbox]].
11+
1012
Features:
1113
- works for hitscan and projectile attacks,
1214
- works for all games and mods (in theory),

sconstruct.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,6 @@ def clean(target, source, env):
7373
)
7474

7575

76-
def add_html_target(org_file, main_target):
77-
name = make_project_name(org_file)
78-
html_name = f'{name}Html'
79-
80-
def putHtml(target, source, env):
81-
move(f'add-ons/{name}.html', f'build/{name}/{name}.html')
82-
makedirs(f'build/{name}/tools/', exist_ok=True)
83-
copy('tools/org-adwaita.css', f'build/{name}/tools/org-adwaita.css')
84-
85-
return AlwaysBuild(Alias(html_name, main_target, [make_export(org_file), putHtml]))
86-
87-
8876
def add_test_target(org_file, main_target):
8977
name = make_project_name(org_file)
9078
test_name = f'{name}Test'
@@ -154,7 +142,7 @@ def pack(target, source, env):
154142
version = foundVersion.group(1) if foundVersion is not None else commit_sha
155143

156144
copytree('documentation', build_path / 'documentation', dirs_exist_ok=True)
157-
copy(org_file, (build_path / name).with_suffix('.org'))
145+
copy(org_file, build_path / 'README.org')
158146

159147
licenses_path = build_path / 'LICENSES'
160148
makedirs(licenses_path, exist_ok=True)
@@ -264,17 +252,14 @@ def make_index(target, source, env):
264252
project_targets = []
265253
for org_file in Glob('add-ons/*.org'):
266254
main_target = add_main_target(org_file, 'build/{0}/zscript.zs')
267-
html_target = add_html_target(org_file, main_target)
268255
test_target = add_test_target(org_file, main_target)
269-
pack_target = add_pack_target(org_file, html_target)
256+
pack_target = add_pack_target(org_file, main_target)
270257

271258
if org_file != 'ClematisM.org':
272259
Depends(test_target, clematis_target)
273260
Depends(test_all, test_target)
274261
Depends(pk3_all, pack_target)
275-
project_targets.append(
276-
f'{main_target[0]}, {html_target[0]}, {test_target[0]}, {pack_target[0]}'
277-
)
262+
project_targets.append(f'{main_target[0]}, {test_target[0]}, {pack_target[0]}')
278263

279264
html_all = Alias('HtmlAll', None, make_index)
280265
for org_file in Glob('*/*.org') + Glob('*.org'):

0 commit comments

Comments
 (0)