Skip to content

Commit

Permalink
WEB: Unpin pydata sphinx theme (#48285)
Browse files Browse the repository at this point in the history
* WEB: Unpin pydata sphinx theme

* Remove parameter

* Update

* Update versions

* Change urls

* Update doc/source/conf.py

Co-authored-by: Marc Garcia <garcia.marc@gmail.com>

* Update doc/source/conf.py

Co-authored-by: Marc Garcia <garcia.marc@gmail.com>

* Fix

* Try url

Co-authored-by: Marc Garcia <garcia.marc@gmail.com>
  • Loading branch information
phofl and datapythonista committed Sep 16, 2022
1 parent 2305695 commit b5632fb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
4 changes: 2 additions & 2 deletions doc/_templates/sidebar-nav-bs.html
@@ -1,9 +1,9 @@
<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
<div class="bd-toc-item active">
{% if pagename.startswith("reference") %}
{{ generate_nav_html("sidebar", maxdepth=4, collapse=True, includehidden=True, titles_only=True) }}
{{ generate_toctree_html("sidebar", maxdepth=4, collapse=True, includehidden=True, titles_only=True) }}
{% else %}
{{ generate_nav_html("sidebar", maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
{{ generate_toctree_html("sidebar", maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
{% endif %}
</div>
</nav>
4 changes: 2 additions & 2 deletions doc/source/conf.py
Expand Up @@ -244,10 +244,10 @@
"github_url": "https://github.com/pandas-dev/pandas",
"twitter_url": "https://twitter.com/pandas_dev",
"google_analytics_id": "UA-27880019-2",
"logo": {"image_dark": "https://pandas.pydata.org/static/img/pandas_white.svg"},
"navbar_end": ["version-switcher", "navbar-icon-links"],
"switcher": {
"json_url": "https://pandas.pydata.org/versions.json",
"url_template": "https://pandas.pydata.org/{version}/",
"json_url": "/versions.json",
"version_match": switcher_version,
},
}
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Expand Up @@ -100,7 +100,7 @@ dependencies:
- natsort # DataFrame.sort_values doctest
- numpydoc
- pandas-dev-flaker=0.5.0
- pydata-sphinx-theme=0.8.0
- pydata-sphinx-theme
- pytest-cython # doctest
- sphinx
- sphinx-panels
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Expand Up @@ -77,7 +77,7 @@ gitdb
natsort
numpydoc
pandas-dev-flaker==0.5.0
pydata-sphinx-theme==0.8.0
pydata-sphinx-theme
pytest-cython
sphinx
sphinx-panels
Expand Down
21 changes: 14 additions & 7 deletions web/pandas/versions.json
@@ -1,30 +1,37 @@
[
{
"name": "dev",
"version": "docs/dev"
"version": "dev",
"url": "/docs/dev/"
},
{
"name": "1.4 (stable)",
"version": "docs"
"version": "1.4 (stable)",
"url": "/docs/"
},
{
"name": "1.4",
"version": "pandas-docs/version/1.4"
"version": "1.4",
"url": "/pandas-docs/version/1.4/"
},
{
"name": "1.3",
"version": "pandas-docs/version/1.3"
"version": "1.3",
"url": "/pandas-docs/version/1.3/"
},
{
"name": "1.2",
"version": "pandas-docs/version/1.2"
"version": "1.2",
"url": "/pandas-docs/version/1.2/"
},
{
"name": "1.1",
"version": "pandas-docs/version/1.1"
"version": "1.1",
"url": "/pandas-docs/version/1.1/"
},
{
"name": "1.0",
"version": "pandas-docs/version/1.0"
"version": "1.0",
"url": "/pandas-docs/version/1.0/"
}
]

0 comments on commit b5632fb

Please sign in to comment.