File tree Expand file tree Collapse file tree
src/afterpython/cli/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,13 +171,7 @@ def _move_files(
171171 print (f"Moved: { source } to { destination } " )
172172
173173 build_content_json ()
174- # In dev mode the MyST `start` server is watching these files. Deleting
175- # them here would make MyST re-index without the placeholder and revert
176- # to using the first content file as the section index — exactly what
177- # the placeholder was created to prevent. `ap dev` cleans them up in
178- # its `finally` block after MyST has been shut down.
179- if not dev_build :
180- delete_placeholder_index_md_files ()
174+ delete_placeholder_index_md_files ()
181175
182176 website_static = ap .paths .website_path / "static"
183177 website_static .mkdir (parents = True , exist_ok = True )
Original file line number Diff line number Diff line change 1111import click
1212from click .exceptions import Exit
1313
14- from afterpython .builders import delete_placeholder_index_md_files
1514from afterpython .cli .commands .build import postbuild , prebuild
1615from afterpython .const import CONTENT_TYPES
1716from afterpython .utils import find_available_port , find_node_env
@@ -219,6 +218,3 @@ def cleanup_processes():
219218 pass
220219 finally :
221220 cleanup_processes ()
222- # Now that MyST watchers are gone, clean up the placeholders
223- # postbuild() intentionally left behind for dev mode.
224- delete_placeholder_index_md_files ()
You can’t perform that action at this time.
0 commit comments