Skip to content

Commit

Permalink
Deployed 7e566f1 to 0.4 with MkDocs 1.5.3 and mike 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 1, 2023
1 parent bacc7fc commit a417672
Show file tree
Hide file tree
Showing 119 changed files with 74,070 additions and 40,856 deletions.
600 changes: 361 additions & 239 deletions 0.4/404.html

Large diffs are not rendered by default.

750 changes: 473 additions & 277 deletions 0.4/CHANGELOG/index.html

Large diffs are not rendered by default.

600 changes: 361 additions & 239 deletions 0.4/LICENSE/index.html

Large diffs are not rendered by default.

548 changes: 335 additions & 213 deletions 0.4/api/src/spyglass/cli/cli/index.html → 0.4/api/cli/cli/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

783 changes: 430 additions & 353 deletions 0.4/api/src/spyglass/_version/index.html → 0.4/api/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

29 changes: 25 additions & 4 deletions 0.4/api/make_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,36 @@
from pathlib import Path

import mkdocs_gen_files
from mkdocs.utils import log

ignored_stems = ["__init__", "_version"]

added = 0
add_limit = None

nav = mkdocs_gen_files.Nav()
for path in sorted(Path("src").glob("**/*.py")):
if path.stem == "__init__" or "cython" in path.stem:
for path in sorted(Path("src/spyglass/").glob("**/*.py")):
if path.stem in ignored_stems or "cython" in path.stem:
continue
with mkdocs_gen_files.open(f"api/{path.with_suffix('')}.md", "w") as f:
rel_path = path.relative_to("src/spyglass")
with mkdocs_gen_files.open(f"api/{rel_path.with_suffix('')}.md", "w") as f:
module_path = ".".join([p for p in path.with_suffix("").parts])
print(f"::: {module_path}", file=f)
nav[path.parts] = f"{path.with_suffix('')}.md"
nav[rel_path.parts] = f"{rel_path.with_suffix('')}.md"

if add_limit is not None:
if added < add_limit:
log.warning(f"Generated {rel_path.with_suffix('')}.md")
added += 1
else:
break

if add_limit is not None:
from IPython import embed

embed()


with mkdocs_gen_files.open("api/navigation.md", "w") as nav_file:
nav_file.write("* [Overview](../api/index.md)\n")
nav_file.writelines(nav.build_literate_nav())
Loading

0 comments on commit a417672

Please sign in to comment.