Skip to content

Commit

Permalink
Merge pull request #493 from NCAR/docs-upgrade
Browse files Browse the repository at this point in the history
Sphinx book theme update to examples documentation.
  • Loading branch information
pilotchute committed Apr 5, 2023
2 parents e98a008 + 487abf9 commit 7221daf
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 25 deletions.
2 changes: 2 additions & 0 deletions conda_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ dependencies:
- pip
- scikit-learn
- sphinx
- sphinx-book-theme
- sphinx-design
- sphinx-gallery
- sphinx_rtd_theme
- xarray<=2023.02.0
Expand Down
1 change: 1 addition & 0 deletions docs/_static/images/GeoCAT_long.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/_static/images/GeoCAT_nsf.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/_static/images/GeoCAT_square.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 19 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# -- Project information -----------------------------------------------------

project = 'GeoCAT-examples'
project = u'GeoCAT-examples'

import datetime

Expand All @@ -42,6 +42,7 @@
'sphinx_gallery.gen_gallery',
'nbsphinx',
'sphinx_gallery.load_style',
"sphinx_design",
]

# Define what extensions will parse which kind of source file
Expand Down Expand Up @@ -91,20 +92,29 @@
#
import sphinx_rtd_theme

html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme = 'sphinx_book_theme'
html_title = ""
html_static_path = ['_static']
html_logo = '_static/images/nsf.png'
html_style = None
html_logo = '_static/images/GeoCAT_nsf.svg'
html_favicon = '_static/images/GeoCAT_square.svg'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_theme_options = {
'navigation_depth': 2,
}
html_theme_options = dict(
# canonical_url="",
repository_url="https://github.com/NCAR/geocat-examples",
repository_branch="main",
path_to_docs="docs",
use_edit_page_button=True,
use_repository_button=True,
use_issues_button=True,
home_page_in_toc=False,
navbar_footer_text="",
extra_footer=
"<em>The National Center for Atmospheric Research is sponsored by the National Science Foundation. Any opinions, findings and conclusions or recommendations expressed in this material do not necessarily reflect the views of the National Science Foundation.</em>",
)

# Specify master_doc (see https://github.com/readthedocs/readthedocs.org/issues/2569#issuecomment-485117471)
master_doc = 'index'
Expand Down
29 changes: 13 additions & 16 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
.. GeoCAT-examples documentation master file, created by
sphinx-quickstart on Wed Dec 4 11:06:58 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
GeoCAT-examples
===============
GeoCAT-examples Documentation
=============================

This gallery contains visualization examples from many plotting categories
of geosciences data (under the
Expand All @@ -26,20 +21,22 @@ download Python script and/or Jupyter notebook.

.. toctree::
:maxdepth: 2
:caption: Contents:
:caption: Gallery
:hidden:

./gallery/index
./gallery-geocat-comp/index
./gallery_nb
./install
./citation
./support

.. toctree::
:caption: Usage
:hidden:

./install
./citation

Indices and tables
==================
.. toctree::
:caption: Support
:hidden:

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
./support

0 comments on commit 7221daf

Please sign in to comment.