8000 Use pydata theme and reorganize pages for sphinx docs by kandersolar · Pull Request #1173 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Use pydata theme and reorganize pages for sphinx docs #1173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
proof of concept
  • Loading branch information
kandersolar committed Feb 21, 2021
commit e052c8f7ff844a9bd14a6f9e7c2bcb0983ebaadc
21 changes: 11 additions & 10 deletions docs/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,21 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
# on_rtd is whether we are on readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
else:
html_theme = 'default'
html_theme = "pydata_sphinx_theme"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
html_theme_options = {
#"external_links": [
# {"url": "https://pandas.pydata.org/pandas-docs/stable/", "name": "Pandas Docs"}
#],
#"github_url": "https://github.com/pandas-dev/pydata-sphinx-theme",
#"twitter_url": "https://twitter.com/pandas_dev",
#"use_edit_page_button": True,
"show_toc_level": 1,
# "navbar_align": "right", # For testing that the navbar items align properly
}

# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
Expand Down
14 changes: 2 additions & 12 deletions docs/sphinx/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,11 @@ Contents
.. toctree::
:maxdepth: 1

package_overview
introtutorial
user_guide/index
auto_examples/index
api
whatsnew
installation
contributing
pvsystem
modelchain
timetimezones
clearsky
forecasts
api
comparison_pvlib_matlab
variables_style_rules
singlediode


Indices and tables
Expand Down
20 changes: 20 additions & 0 deletions docs/sphinx/source/user_guide/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
==========
User Guide
==========


.. toctree::
:maxdepth: 2
:caption: Demo Documentation

package_overview
installation
introtutorial
pvsystem
modelchain
timetimezones
clearsky
forecasts
comparison_pvlib_matlab
variables_style_rules
singlediode
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Follow these steps to obtain the library using git/GitHub:
This button is circled in the image below. Remember the system path that
you clone the library to.

.. image:: _images/clonebutton.png
.. image:: ../_images/clonebutton.png

Please see GitHub's
`Forking Projects <https://guides.github.com/activities/forking/>`_,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Variables and Symbols
There is a convention on consistent variable names throughout the library:

.. csv-table:: List of used Variables and Parameters
:file: ../../../pvlib/data/variables_style_rules.csv
:file: ../../../../pvlib/data/variables_style_rules.csv
:delim: ;
:header-rows: 1
:widths: 5, 5
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
'pvfactors', 'siphon', 'statsmodels', 'tables',
'cftime >= 1.1.1'],
'doc': ['ipython', 'matplotlib', 'sphinx == 3.1.2',
'sphinx_rtd_theme==0.5.0', 'sphinx-gallery', 'docutils == 0.15.2',
'pydata-sphinx-theme', 'sphinx-gallery', 'docutils == 0.15.2',
'pillow', 'netcdf4', 'siphon', 'tables',
'sphinx-toggleprompt >= 0.0.5'],
'test': TESTS_REQUIRE
Expand Down
0