Skip to content

Commit

Permalink
add pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-corbellini committed Jun 10, 2024
1 parent 37bd442 commit 02d0946
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
11 changes: 2 additions & 9 deletions gen_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
import fnmatch
import mkdocs_gen_files

KEEP_PAGES = [
"cheshire_cat", "stray_cat", "agent", "flow",
"prompt", "rabbithole", "settings", "mad_hatter",
"plugin", "vector_memory", "vector_memory_collection",
"working_memory", "log", "rabbit_hole", "utils", # "__init__"
]

nav = mkdocs_gen_files.Nav()

core_code_dir = 'cheshire_cat_api'
Expand All @@ -26,7 +19,7 @@

module_path = path.relative_to(core_code_dir).with_suffix("")
doc_path = path.relative_to(core_code_dir).with_suffix(".md")
full_doc_path = Path("API_Reference", doc_path)
full_doc_path = Path("API_Documentation", doc_path)

parts = tuple(module_path.parts)

Expand All @@ -48,7 +41,7 @@

mkdocs_gen_files.set_edit_path(full_doc_path, path)

with mkdocs_gen_files.open("API_Reference/SUMMARY.md", "w") as nav_file: #
with mkdocs_gen_files.open("API_Documentation/SUMMARY.md", "w") as nav_file: #
if os.path.exists(core_code_dir):
nav_file.writelines(nav.build_literate_nav()) #
else:
Expand Down
6 changes: 4 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ plugins:
# - mkdocs/hooks/drawio_file.py

nav:
- Hello, dear: index.md
- API: API_Reference/
- Getting started:
- Installation: getting_started/installation.md
- Usage: getting_started/examples.md
- API Documentation: API_Documentation/

theme:
name: material
Expand Down
1 change: 1 addition & 0 deletions mkdocs/getting_started/examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Coming soon...
1 change: 1 addition & 0 deletions mkdocs/getting_started/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Coming soon...

0 comments on commit 02d0946

Please sign in to comment.