Skip to content

Commit

Permalink
made the sidebar stable while clicking around
Browse files Browse the repository at this point in the history
  • Loading branch information
liyin2015 committed May 19, 2024
1 parent 68e01f2 commit 266b8d9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ help:

apidoc:
@echo "Running sphinx-apidoc for core"
@sphinx-apidoc -o $(APIDOCOUTDIR)/core ../core --separate
@sphinx-apidoc -o $(APIDOCOUTDIR)/core ../core --separate --force --module-first
@echo "Running sphinx-apidoc for components"
@sphinx-apidoc -o $(APIDOCOUTDIR)/components ../components --separate
@sphinx-apidoc -o $(APIDOCOUTDIR)/components ../components --separate --force --module-first



Expand Down
14 changes: 13 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,24 @@
# html_theme = 'alabaster'
html_theme = "sphinx_rtd_theme"


# These options are for the sphinx_rtd_theme
html_theme_options = {
"collapse_navigation": False,
"sticky_navigation": True, # Ensures the sidebar stays at the top of the page
"navigation_depth": 4, # Controls how many headers are shown in the sidebar
"includehidden": True,
"titles_only": False,
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]


def setup(app):
app.add_css_file("custom.css") # Add custom CSS file to the Sphinx configuration


# In Sphinx documentation, the configuration option add_module_names in the conf.py file controls
# whether module names are prefixed before object names in the documentation. This setting is particularly
# relevant when documenting Python modules and their contents, such as classes, functions, and methods.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ LightRAG comes from the best of the AI research and engineering. Fundamentally,
:maxdepth: 1
:caption: API Reference

apis/core/modules
apis/components/modules
apis/core/core
apis/components/components


.. toctree::
Expand Down

0 comments on commit 266b8d9

Please sign in to comment.