Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys

this_dir = os.path.dirname(__file__)
repo_root = os.path.abspath(os.path.join(this_dir, ".."))
if repo_root not in sys.path:
sys.path.insert(0, repo_root)

# -- Project information -----------------------------------------------------

Expand Down Expand Up @@ -45,6 +48,8 @@
'sphinx.ext.napoleon'
]

autosummary_generate = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down Expand Up @@ -75,10 +80,21 @@

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
# on_rtd is whether we are on readthedocs.org
on_rtd = os.environ.get("READTHEDOCS", None) == "True"

if not on_rtd:
# Local builds: use sphinx_rtd_theme explicitly
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
else:
# On RTD, the theme is provided automatically, but this is harmless
html_theme = "sphinx_rtd_theme"
# # The theme to use for HTML and HTML Help pages. See the documentation for
# # a list of builtin themes.
# #
# html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ imagesize==1.3.0
importlib-metadata>=4.0.0
Jinja2==3.0.3
MarkupSafe>=2.0.0
openfhe>=1.4.2
packaging==21.3
pybind11>=2.10.3
pybind11-global>=2.10.3
Expand Down