Skip to content

Commit

Permalink
pydata sphinx theme & index fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alasdair Wilson committed Jun 26, 2024
1 parent 739973b commit 1c0a62d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = "alabaster"
html_theme = "pydata_sphinx_theme"

# 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,
Expand All @@ -124,9 +124,12 @@
'filename_pattern': '^((?!skip_).)*$',
'examples_dirs': os.path.join('..', 'examples'),
'subsection_order': ExplicitOrder([
'../examples/io/',
'../examples/io',
]),
'within_subsection_order': ExampleTitleSortKey,
'gallery_dirs': os.path.join('generated', 'gallery'),
'matplotlib_animations': True,
'plot_gallery': True,
'remove_config_comments': True,
'only_warn_on_example_error': True,
}
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ It provides an interface for reading in and processing images of water-air inter
:gutter: 1

.. grid-item-card:: Example gallery
:link: generated/gallery
:link: generated/gallery/index
:text-align: center

:material-outlined:`palette;8em;sd-text-secondary`
Expand Down
4 changes: 2 additions & 2 deletions examples/README.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
example gallery for ripplemapper
================================
Example Gallery
================
4 changes: 2 additions & 2 deletions examples/io/README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Example Gallery for `ripplemapper.io`
======================================
Using `ripplemapper.io`
=======================

Examples showing how to load data into ripplemapper.
6 changes: 3 additions & 3 deletions examples/io/loading_a_directory.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
=========================================================
Loading an directory of images into a RippleImage objets
=========================================================
========================================================
Loading a directory of images into RippleImage objects
========================================================
Ripplemapper is capable of loading a directory of images into a list of RippleImage objects.
"""
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ docs = [
"sphinx-design>=0.2.0",
"sphinx-gallery>=0.13.0",
"sphinx-hoverxref>=1.3.0",
"pydata-sphinx-theme>=0.15.4",
]

[tool.setuptools]
Expand Down

0 comments on commit 1c0a62d

Please sign in to comment.