diff --git a/doc/source/conf.py b/doc/source/conf.py index 6f7e770e5d554..66fca61c2c6e5 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -237,14 +237,14 @@ html_theme_options = { "external_links": [], - "footer_items": ["pandas_footer", "sphinx-version"], + "footer_start": ["pandas_footer", "sphinx-version"], "github_url": "https://github.com/pandas-dev/pandas", "twitter_url": "https://twitter.com/pandas_dev", - "google_analytics_id": "UA-27880019-2", + "analytics": {"google_analytics_id": "UA-27880019-2"}, "logo": {"image_dark": "https://pandas.pydata.org/static/img/pandas_white.svg"}, "navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"], "switcher": { - "json_url": "/versions.json", + "json_url": "https://pandas.pydata.org/versions.json", "version_match": switcher_version, }, "icon_links": [ diff --git a/doc/source/versions.json b/doc/source/versions.json new file mode 100644 index 0000000000000..4be8f10a88334 --- /dev/null +++ b/doc/source/versions.json @@ -0,0 +1,42 @@ +[ + { + "name": "dev", + "version": "dev", + "url": "https://pandas.pydata.org/docs/dev/" + }, + { + "name": "2.0 (stable)", + "version": "2.0", + "url": "https://pandas.pydata.org/docs/" + }, + { + "name": "1.5", + "version": "1.5", + "url": "https://pandas.pydata.org/pandas-docs/version/1.5/" + }, + { + "name": "1.4", + "version": "1.4", + "url": "https://pandas.pydata.org/pandas-docs/version/1.4/" + }, + { + "name": "1.3", + "version": "1.3", + "url": "https://pandas.pydata.org/pandas-docs/version/1.3/" + }, + { + "name": "1.2", + "version": "1.2", + "url": "https://pandas.pydata.org/pandas-docs/version/1.2/" + }, + { + "name": "1.1", + "version": "1.1", + "url": "https://pandas.pydata.org/pandas-docs/version/1.1/" + }, + { + "name": "1.0", + "version": "1.0", + "url": "https://pandas.pydata.org/pandas-docs/version/1.0/" + } +] diff --git a/environment.yml b/environment.yml index 90ed7634ec74b..fb8321a9fb6a7 100644 --- a/environment.yml +++ b/environment.yml @@ -89,7 +89,7 @@ dependencies: - gitdb - natsort # DataFrame.sort_values doctest - numpydoc - - pydata-sphinx-theme<0.11 + - pydata-sphinx-theme - pytest-cython # doctest - sphinx - sphinx-design diff --git a/requirements-dev.txt b/requirements-dev.txt index d3054ee34a1f4..546116b1fa23d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -64,7 +64,7 @@ gitpython gitdb natsort numpydoc -pydata-sphinx-theme<0.11 +pydata-sphinx-theme pytest-cython sphinx sphinx-design diff --git a/web/pandas/versions.json b/web/pandas/versions.json deleted file mode 100644 index 81021e5a7c72f..0000000000000 --- a/web/pandas/versions.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "name": "dev", - "version": "docs/dev", - "url": "/docs/dev/" - }, - { - "name": "2.0 (stable)", - "version": "docs", - "url": "/docs/" - }, - { - "name": "1.5", - "version": "pandas-docs/version/1.5", - "url": "/pandas-docs/version/1.5/" - }, - { - "name": "1.4", - "version": "pandas-docs/version/1.4", - "url": "/pandas-docs/version/1.4/" - }, - { - "name": "1.3", - "version": "pandas-docs/version/1.3", - "url": "/pandas-docs/version/1.3/" - }, - { - "name": "1.2", - "version": "pandas-docs/version/1.2", - "url": "/pandas-docs/version/1.2/" - }, - { - "name": "1.1", - "version": "pandas-docs/version/1.1", - "url": "/pandas-docs/version/1.1/" - }, - { - "name": "1.0", - "version": "pandas-docs/version/1.0", - "url": "/pandas-docs/version/1.0/" - } -]