Skip to content

Commit

Permalink
remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Dalton committed Apr 11, 2024
1 parent 1c6edaa commit 93cdf29
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions docs/gen_ref_pages.py
Original file line number Diff line number Diff line change
@@ -1,36 +1,4 @@
#"""Generate the code reference pages and navigation."""
#
#from pathlib import Path
#
#import mkdocs_gen_files
#
#nav = mkdocs_gen_files.Nav()
#
#root = Path(__file__).parent.parent
#src = root / "src"
#
#for path in sorted(src.rglob("*.py")):
# module_path = path.relative_to(src).with_suffix("")
# doc_path = path.relative_to(src).with_suffix(".md")
# full_doc_path = Path("reference", doc_path)
#
# parts = tuple(module_path.parts)
#
# if parts[-1] == "__init__":
# parts = parts[:-1]
# elif parts[-1] == "__main__":
# continue
#
# nav[parts] = doc_path.as_posix()
#
# with mkdocs_gen_files.open(full_doc_path, "w") as fd:
# ident = ".".join(parts)
# fd.write(f"::: {ident}")
#
# mkdocs_gen_files.set_edit_path(full_doc_path, path.relative_to(root))
#
#with mkdocs_gen_files.open("reference/SUMMARY.md", "w") as nav_file:
# nav_file.writelines(nav.build_literate_nav())
nav_file.writelines(nav.build_literate_nav())
"""Generate the code reference pages and navigation."""

from pathlib import Path
Expand Down

0 comments on commit 93cdf29

Please sign in to comment.