Skip to content
Snippets Groups Projects
Commit ecfb4a93 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Use a different theme for doc

parent 83a64b89
No related branches found
No related tags found
No related merge requests found
from datetime import date
import sphinx_rtd_theme
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
......@@ -71,25 +70,20 @@ add_module_names = False
pygments_style = "sphinx"
# A list of prefixs that are ignored when creating the module index. (new in Sphinx 0.6)
# modindex_common_prefix = ["networkx."]
# modindex_common_prefix = []
# doctest_global_setup = "import networkx as nx"
# doctest_global_setup = ""
# Options for HTML output
# -----------------------
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme = "pydata_sphinx_theme"
html_theme_options = {
"canonical_url": "https://networkx.org/documentation/stable/",
"navigation_depth": 3,
"logo_only": True,
"github_url": "https://gitlab.engr.illinois.edu/llvm/hpvm-beta",
"show_prev_next": False,
"search_bar_position": "sidebar",
}
# html_logo = "_static/networkx_logo.svg"
# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path.
......@@ -149,8 +143,3 @@ intersphinx_mapping = {
default_role = "obj"
numpydoc_show_class_members = False
def setup(app):
app.add_css_file("custom.css")
app.add_js_file("copybutton.js")
sphinx>=3.5
sphinx-autodoc-typehints>=1.11
sphinx-rtd-theme>=0.5
pydata-sphinx-theme==0.5.2
numpydoc>=1.1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment