-
Notifications
You must be signed in to change notification settings - Fork 23
chore: remove nbsphinx link and use the pydata theme to render our documentation #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
145f7f7
7c7495d
67bcd54
e5acfbd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
# All configuration values have a default; values that are commented out | ||
# serve to show the default. | ||
|
||
import shutil | ||
import sys | ||
import time | ||
from importlib.metadata import version | ||
|
@@ -34,6 +35,15 @@ | |
# abbreviations | ||
ab_authors = "Billinge Group members" | ||
|
||
# Include notebooks at build time. | ||
root_dir = Path(__file__).resolve().parents[1] | ||
external_nb_dir = root_dir / "examples" | ||
for f in external_nb_dir.glob("*.ipynb"): | ||
dest = Path(__file__).parent / "examples" / f.name | ||
if dest.exists(): | ||
dest.unlink() | ||
shutil.copy(f, dest) | ||
|
||
# -- General configuration ------------------------------------------------ | ||
|
||
# If your documentation needs a minimal Sphinx version, state it here. | ||
|
@@ -48,10 +58,8 @@ | |
"sphinx.ext.todo", | ||
"sphinx.ext.viewcode", | ||
"sphinx.ext.intersphinx", | ||
"sphinx_rtd_theme", | ||
"sphinx_copybutton", | ||
"nbsphinx", | ||
"nbsphinx_link", | ||
"m2r", | ||
] | ||
|
||
|
@@ -134,7 +142,8 @@ | |
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = "sphinx_rtd_theme" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lets comment out |
||
# html_theme = "sphinx_rtd_theme" | ||
html_theme = "pydata_sphinx_theme" | ||
|
||
html_context = { | ||
"display_github": True, | ||
|
@@ -149,7 +158,25 @@ | |
# documentation. | ||
# | ||
html_theme_options = { | ||
"navigation_with_keys": "true", | ||
"show_nav_level": 2, | ||
"navigation_depth": 2, | ||
"navbar_align": "left", | ||
"icon_links": [ | ||
{ | ||
"name": "GitHub", | ||
"url": "https://github.com/diffpy/pyobjcryst", | ||
"icon": "fab fa-github", | ||
}, | ||
], | ||
# "primary_sidebar_end": ["indices.html", "sidebar-ethical-ads.html"] | ||
} | ||
|
||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_sidebars | ||
html_sidebars = { | ||
"**": ["globaltoc.html", "sidebar-nav-bs"], | ||
# "**": ["localtoc.html"], | ||
# "**": ["sidebar-nav-bs"], | ||
# "<page_pattern>": ["index", "manual-intro", "tutorials", "manual"] | ||
} | ||
|
||
# Add any paths that contain custom themes here, relative to this directory. | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
sphinx | ||
sphinx_rtd_theme | ||
pydata-sphinx-theme | ||
sphinx-copybutton | ||
nbsphinx | ||
nbsphinx-link | ||
doctr | ||
m2r | ||
ipykernel | ||
lxml-html-clean |
Uh oh!
There was an error while loading. Please reload this page.