File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 3636 target_file = entry .relative_to (REPO_ROOT / "docs" )
3737 with mkdocs_gen_files .open (target_file , "wb" ) as fh :
3838 fh .write (contents )
39+
3940 if target_file .name == "index.html" :
41+ # Also create a home.html file which we can point to from `NAVIGATION.md`.
42+ # I don't know why just pointing to `index.html` doesn't work,
43+ # but it doesn't (maybe cause `index.html` is a special name?).
4044 target_file = target_file .parent / "home.html"
4145
4246 with mkdocs_gen_files .open (target_file , "wb" ) as fh :
4347 fh .write (contents )
48+
4449# # If we want to move back to using literate-nav for maanging our navigation,
4550# # also for the Fortran bits, we'll need something like the below
4651# # and adjustments to the existing `NAVIGATION.md`.
4954# ) as fh:
5055# fh.writelines("* [example_fgen_basic](home.html)")
5156
52- # Remove the ford files (which were just generated and copied)
57+ # Remove the ford files (which were just copied)
5358shutil .rmtree (REPO_ROOT / FORD_OUTPUT_DIR )
5459
55- # Put back the gitkeep file which ford deletes
60+ # Put back the gitkeep file
5661gitkeep = REPO_ROOT / FORD_OUTPUT_DIR / ".gitkeep"
5762gitkeep .parent .mkdir ()
5863gitkeep .touch ()
You can’t perform that action at this time.
0 commit comments