Skip to content
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

Change to picollo theme for sphinx #11514

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 2 additions & 6 deletions ci-constraints-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ docutils==0.20.1
# via
# readme-renderer
# sphinx
# sphinx-rtd-theme
exceptiongroup==1.2.2
# via pytest
execnet==2.1.1; python_version >= "3.8"
Expand Down Expand Up @@ -68,6 +67,8 @@ packaging==24.1; python_version >= "3.8"
# sphinx
pathspec==0.12.1
# via check-sdist
piccolo-theme==0.24.0
# via cryptography (pyproject.toml)
platformdirs==4.2.2; python_version >= "3.8"
# via virtualenv
pluggy==1.5.0; python_version >= "3.8"
Expand Down Expand Up @@ -112,24 +113,19 @@ snowballstemmer==2.2.0
sphinx==7.4.7
# via
# cryptography (pyproject.toml)
# sphinx-rtd-theme
# sphinxcontrib-applehelp
# sphinxcontrib-devhelp
# sphinxcontrib-htmlhelp
# sphinxcontrib-jquery
# sphinxcontrib-qthelp
# sphinxcontrib-serializinghtml
# sphinxcontrib-spelling
sphinx-rtd-theme==2.0.0
# via cryptography (pyproject.toml)
sphinxcontrib-applehelp==2.0.0
# via sphinx
sphinxcontrib-devhelp==2.0.0
# via sphinx
sphinxcontrib-htmlhelp==2.1.0
# via sphinx
sphinxcontrib-jquery==4.1
# via sphinx-rtd-theme
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==2.0.0
Expand Down
11 changes: 1 addition & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
import os
import sys

try:
import sphinx_rtd_theme
except ImportError:
sphinx_rtd_theme = None

try:
from sphinxcontrib import spelling
except ImportError:
Expand All @@ -46,7 +41,6 @@
"sphinx.ext.intersphinx",
"sphinx.ext.linkcode",
"cryptography-docs",
"sphinx_rtd_theme",
]

if spelling is not None:
Expand Down Expand Up @@ -121,10 +115,7 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.

if sphinx_rtd_theme:
html_theme = "sphinx_rtd_theme"
else:
html_theme = "default"
html_theme = "piccolo_theme"

# 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,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test = [
"certifi",
]
test-randomorder = ["pytest-randomly"]
docs = ["sphinx >=5.3.0", "sphinx-rtd-theme >=1.1.1"]
docs = ["sphinx >=5.3.0", "piccolo-theme >=0.24.0"]
docstest = ["pyenchant >=1.6.11", "readme-renderer", "sphinxcontrib-spelling >=4.0.1"]
sdist = ["build"]
# `click` included because its needed to type check `release.py`
Expand Down