Skip to content

Commit b5632fb

Browse files
WEB: Unpin pydata sphinx theme (#48285)
* WEB: Unpin pydata sphinx theme * Remove parameter * Update * Update versions * Change urls * Update doc/source/conf.py Co-authored-by: Marc Garcia <[email protected]> * Update doc/source/conf.py Co-authored-by: Marc Garcia <[email protected]> * Fix * Try url Co-authored-by: Marc Garcia <[email protected]>
1 parent 2305695 commit b5632fb

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
lines changed

doc/_templates/sidebar-nav-bs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
22
<div class="bd-toc-item active">
33
{% if pagename.startswith("reference") %}
4-
{{ generate_nav_html("sidebar", maxdepth=4, collapse=True, includehidden=True, titles_only=True) }}
4+
{{ generate_toctree_html("sidebar", maxdepth=4, collapse=True, includehidden=True, titles_only=True) }}
55
{% else %}
6-
{{ generate_nav_html("sidebar", maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
6+
{{ generate_toctree_html("sidebar", maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
77
{% endif %}
88
</div>
99
</nav>

doc/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@
244244
"github_url": "https://github.com/pandas-dev/pandas",
245245
"twitter_url": "https://twitter.com/pandas_dev",
246246
"google_analytics_id": "UA-27880019-2",
247+
"logo": {"image_dark": "https://pandas.pydata.org/static/img/pandas_white.svg"},
247248
"navbar_end": ["version-switcher", "navbar-icon-links"],
248249
"switcher": {
249-
"json_url": "https://pandas.pydata.org/versions.json",
250-
"url_template": "https://pandas.pydata.org/{version}/",
250+
"json_url": "/versions.json",
251251
"version_match": switcher_version,
252252
},
253253
}

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ dependencies:
100100
- natsort # DataFrame.sort_values doctest
101101
- numpydoc
102102
- pandas-dev-flaker=0.5.0
103-
- pydata-sphinx-theme=0.8.0
103+
- pydata-sphinx-theme
104104
- pytest-cython # doctest
105105
- sphinx
106106
- sphinx-panels

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ gitdb
7777
natsort
7878
numpydoc
7979
pandas-dev-flaker==0.5.0
80-
pydata-sphinx-theme==0.8.0
80+
pydata-sphinx-theme
8181
pytest-cython
8282
sphinx
8383
sphinx-panels

web/pandas/versions.json

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,37 @@
11
[
22
{
33
"name": "dev",
4-
"version": "docs/dev"
4+
"version": "dev",
5+
"url": "/docs/dev/"
56
},
67
{
78
"name": "1.4 (stable)",
8-
"version": "docs"
9+
"version": "1.4 (stable)",
10+
"url": "/docs/"
911
},
1012
{
1113
"name": "1.4",
12-
"version": "pandas-docs/version/1.4"
14+
"version": "1.4",
15+
"url": "/pandas-docs/version/1.4/"
1316
},
1417
{
1518
"name": "1.3",
16-
"version": "pandas-docs/version/1.3"
19+
"version": "1.3",
20+
"url": "/pandas-docs/version/1.3/"
1721
},
1822
{
1923
"name": "1.2",
20-
"version": "pandas-docs/version/1.2"
24+
"version": "1.2",
25+
"url": "/pandas-docs/version/1.2/"
2126
},
2227
{
2328
"name": "1.1",
24-
"version": "pandas-docs/version/1.1"
29+
"version": "1.1",
30+
"url": "/pandas-docs/version/1.1/"
2531
},
2632
{
2733
"name": "1.0",
28-
"version": "pandas-docs/version/1.0"
34+
"version": "1.0",
35+
"url": "/pandas-docs/version/1.0/"
2936
}
3037
]

0 commit comments

Comments
 (0)