Skip to content

DOC: Add sphinx-toggleprompt and sphinx-copybutton #47870

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

Merged
merged 1 commit into from
Jul 28, 2022
Merged
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
25 changes: 15 additions & 10 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,25 @@
# sphinxext.

extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.doctest",
"sphinx.ext.extlinks",
"sphinx.ext.todo",
"numpydoc", # handle NumPy documentation formatted docstrings
"contributors", # custom pandas extension
"IPython.sphinxext.ipython_directive",
"IPython.sphinxext.ipython_console_highlighting",
"matplotlib.sphinxext.plot_directive",
"sphinx.ext.intersphinx",
"numpydoc",
"sphinx_copybutton",
"sphinx_panels",
"sphinx_toggleprompt",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.coverage",
"sphinx.ext.mathjax",
"sphinx.ext.doctest",
"sphinx.ext.extlinks",
"sphinx.ext.ifconfig",
"sphinx.ext.intersphinx",
"sphinx.ext.linkcode",
"sphinx.ext.mathjax",
"sphinx.ext.todo",
"nbsphinx",
"sphinx_panels",
"contributors", # custom pandas extension
]

exclude_patterns = [
Expand Down Expand Up @@ -144,6 +146,9 @@
# already loads it
panels_add_bootstrap_css = False

# https://sphinx-toggleprompt.readthedocs.io/en/stable/#offset
toggleprompt_offset_right = 35

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

Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ dependencies:
- pytest-cython # doctest
- sphinx
- sphinx-panels
- sphinx-copybutton
- types-python-dateutil
- types-PyMySQL
- types-pytz
Expand All @@ -128,3 +129,4 @@ dependencies:
- jupyterlab >=3.4,<4
- pip:
- jupyterlite==0.1.0b10
- sphinx-toggleprompt
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ pydata-sphinx-theme==0.8.0
pytest-cython
sphinx
sphinx-panels
sphinx-copybutton
types-python-dateutil
types-PyMySQL
types-pytz
Expand All @@ -98,4 +99,5 @@ pyyaml
requests
jupyterlab >=3.4,<4
jupyterlite==0.1.0b10
sphinx-toggleprompt
setuptools>=51.0.0