Skip to content

Commit 669b40d

Browse files
committed
Update comments
1 parent d7333cd commit 669b40d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/gen_fortran_api.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,16 @@
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`.
@@ -49,10 +54,10 @@
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)
5358
shutil.rmtree(REPO_ROOT / FORD_OUTPUT_DIR)
5459

55-
# Put back the gitkeep file which ford deletes
60+
# Put back the gitkeep file
5661
gitkeep = REPO_ROOT / FORD_OUTPUT_DIR / ".gitkeep"
5762
gitkeep.parent.mkdir()
5863
gitkeep.touch()

0 commit comments

Comments
 (0)