Skip to content

Commit 668c4c4

Browse files
authored
Merge pull request matplotlib#27658 from dstansby/pydata-version
Bump pydata-sphinx-theme
2 parents 70b1e80 + c908cd4 commit 668c4c4

File tree

5 files changed

+15
-28
lines changed

5 files changed

+15
-28
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ commands:
147147
export RELEASE_TAG='-t release'
148148
fi
149149
mkdir -p logs
150-
make html O="-T $RELEASE_TAG -j4 -w /tmp/sphinxerrorswarnings.log"
150+
make html O="-T $RELEASE_TAG -j1 -w /tmp/sphinxerrorswarnings.log"
151151
rm -r build/html/_sources
152152
working_directory: doc
153153
- save_cache:

doc/_static/mpl.css

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,6 @@
1414
margin: 0;
1515
}
1616

17-
/* Make announcement an error colour for unreleased documentation, and sticky. */
18-
#unreleased-message.bd-header-announcement {
19-
border-bottom: solid var(--pst-color-danger-highlight);
20-
color: var(--pst-color-danger-text);
21-
font-weight: var(--pst-admonition-font-weight-heading);
22-
position: sticky;
23-
top: 0;
24-
z-index: 1050;
25-
}
26-
27-
#unreleased-message.bd-header-announcement:after {
28-
background-color: var(--pst-color-danger);
29-
opacity: 1;
30-
}
31-
32-
#unreleased-message.bd-header-announcement a {
33-
color: var(--pst-color-danger-text);
34-
}
35-
36-
#unreleased-message.bd-header-announcement + .bd-navbar {
37-
top: 3rem; /* Minimum height of announcement header. */
38-
}
39-
4017
/* multi column TOC */
4118
.contents ul {
4219
list-style-type: none;

doc/conf.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def _check_dependencies():
200200
missing_references_write_json = False
201201
missing_references_warn_unused_ignores = False
202202

203+
203204
intersphinx_mapping = {
204205
'Pillow': ('https://pillow.readthedocs.io/en/stable/', None),
205206
'cycler': ('https://matplotlib.org/cycler/', None),
@@ -484,15 +485,21 @@ def js_tag_with_cache_busting(js):
484485
# the server, but will be used as part of the key for caching by browsers
485486
# so when we do a new meso release the switcher will update "promptly" on
486487
# the stable and devdocs.
487-
"json_url": f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}",
488+
"json_url": (
489+
"https://output.circle-artifacts.com/output/job/"
490+
f"{os.environ['CIRCLE_WORKFLOW_JOB_ID']}/artifacts/"
491+
f"{os.environ['CIRCLE_NODE_INDEX']}"
492+
"/doc/build/html/_static/switcher.json" if CIRCLECI else
493+
f"https://matplotlib.org/devdocs/_static/switcher.json?{SHA}"
494+
),
488495
"version_match": (
489496
# The start version to show. This must be in switcher.json.
490497
# We either go to 'stable' or to 'devdocs'
491498
'stable' if matplotlib.__version_info__.releaselevel == 'final'
492499
else 'devdocs')
493500
},
494501
"navbar_end": ["theme-switcher", "version-switcher", "mpl_icon_links"],
495-
"secondary_sidebar_items": "page-toc.html",
502+
"navbar_persistent": ["search-button"],
496503
"footer_start": ["copyright", "sphinx-version", "doc_version"],
497504
# We override the announcement template from pydata-sphinx-theme, where
498505
# this special value indicates the use of the unreleased banner. If we need
@@ -543,6 +550,9 @@ def js_tag_with_cache_busting(js):
543550
# '**': ['localtoc.html', 'pagesource.html']
544551
}
545552

553+
# Don't include link to doc source files
554+
html_show_sourcelink = False
555+
546556
# Copies only relevant code, not the '>>>' prompt
547557
copybutton_prompt_text = r'>>> |\.\.\. '
548558
copybutton_prompt_is_regexp = True

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies:
3434
- ipywidgets
3535
- numpydoc>=1.0
3636
- packaging>=20
37-
- pydata-sphinx-theme~=0.13.1
37+
- pydata-sphinx-theme~=0.15.0
3838
- pyyaml
3939
- sphinx>=3.0.0,!=6.1.2
4040
- sphinx-copybutton

requirements/doc/doc-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ipywidgets
1414
ipykernel
1515
numpydoc>=1.0
1616
packaging>=20
17-
pydata-sphinx-theme~=0.13.1
17+
pydata-sphinx-theme~=0.15.0
1818
mpl-sphinx-theme~=3.8.0
1919
pyyaml
2020
sphinxcontrib-svg2pdfconverter>=1.1.0

0 commit comments

Comments
 (0)