Skip to content

Commit

Permalink
DOC: start using new bootstrap-based sphinx theme (pandas-dev#28623)
Browse files Browse the repository at this point in the history
- Use pandas-sphinx-theme in docs (from github master)
- move install into getting_started + remove ecosystem from top-level navbar
  • Loading branch information
jorisvandenbossche authored and proost committed Dec 19, 2019
1 parent f39b561 commit be080fc
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions doc/redirects.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ whatsnew,whatsnew/index
release,whatsnew/index

# getting started
install,getting_started/install
10min,getting_started/10min
basics,getting_started/basics
comparison_with_r,getting_started/comparison/comparison_with_r
Expand Down
4 changes: 2 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@

# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = "nature_with_gtoc"
html_theme = "pandas_sphinx_theme"

# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
Expand All @@ -204,7 +204,7 @@
# html_theme_options = {}

# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ["themes"]
# html_theme_path = ["themes"]

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
Expand Down
2 changes: 2 additions & 0 deletions doc/source/ecosystem.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:orphan:

.. _ecosystem:

{{ header }}
Expand Down
1 change: 1 addition & 0 deletions doc/source/getting_started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Getting started
.. toctree::
:maxdepth: 2

install
overview
10min
basics
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions doc/source/index.rst.template
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ See the :ref:`overview` for more detail about what's in the library.
{% endif %}
{% if not single_doc %}
What's New in 1.0.0 <whatsnew/v1.0.0>
install
getting_started/index
user_guide/index
ecosystem
{% endif -%}
{% if include_api -%}
reference/index
Expand All @@ -54,9 +52,9 @@ See the :ref:`overview` for more detail about what's in the library.
{% endif %}

* :doc:`whatsnew/v1.0.0`
* :doc:`install`
* :doc:`getting_started/index`

* :doc:`getting_started/install`
* :doc:`getting_started/overview`
* :doc:`getting_started/10min`
* :doc:`getting_started/basics`
Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ dependencies:
- xlwt # pandas.read_excel, DataFrame.to_excel, pandas.ExcelWriter, pandas.ExcelFile
- odfpy # pandas.read_excel
- pyreadstat # pandas.read_spss
- pip:
- git+https://github.com/pandas-dev/pandas-sphinx-theme.git@master
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ xlrd
xlsxwriter
xlwt
odfpy
pyreadstat
pyreadstat
git+https://github.com/pandas-dev/pandas-sphinx-theme.git@master
2 changes: 1 addition & 1 deletion web/pandas/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

The next steps provides the easiest and recommended way to set up your
environment to use pandas. Other installation options can be found in
the [advanced installation page]({{ base_url}}/docs/install.html).
the [advanced installation page]({{ base_url}}/docs/getting_started/install.html).

1. Download [Anaconda](https://www.anaconda.com/distribution/) for your operating system and
the latest Python version, run the installer, and follow the steps. Detailed instructions
Expand Down

0 comments on commit be080fc

Please sign in to comment.