mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Doc] Update to pydata-sphinx-theme 0.14 and fix some styling issues
This commit is contained in:
parent
c96e470e61
commit
582f04a755
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -325,7 +325,7 @@ jobs:
|
||||
run: |
|
||||
python3 -m pip install ruamel.yaml scons numpy cython 'sphinx>=5.3.0' \
|
||||
sphinxcontrib-matlabdomain sphinxcontrib-doxylink sphinxcontrib-bibtex \
|
||||
pydata-sphinx-theme==0.13.3 sphinx-argparse sphinx_design myst-nb \
|
||||
pydata-sphinx-theme==0.14.1 sphinx-argparse sphinx_design myst-nb \
|
||||
matplotlib pandas scipy pint
|
||||
python3 -m pip install "git+https://github.com/sphinx-gallery/sphinx-gallery.git@master"
|
||||
python3 -m pip install "git+https://github.com/Cantera/sphinx-tags.git@main"
|
||||
|
@ -1,11 +1,11 @@
|
||||
/* Colors to match pydata-sphinx-theme */
|
||||
html {
|
||||
--primary-color: rgb(69, 157, 185);
|
||||
--primary-color: rgb(10, 125, 145);
|
||||
--pst-color-text-muted: rgb(100, 100, 100);
|
||||
}
|
||||
|
||||
html.dark-mode {
|
||||
--primary-color: rgb(69, 157, 185);
|
||||
--primary-color: rgb(63, 177, 197);
|
||||
--pst-color-text-muted: rgb(164, 164, 164);
|
||||
}
|
||||
|
||||
|
@ -8,3 +8,8 @@ p + div.math {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.bd-header .navbar-header-items__center {
|
||||
/* Reduce gap between Sphinx sections and ones added via cantera-org-links.html */
|
||||
column-gap: normal;
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
<div id="numfocus">
|
||||
<a href="https://numfocus.salsalabs.org/donate-to-cantera/index.html" class="btn btn-secondary" type="button">Donate to Cantera</a>
|
||||
<a href="https://numfocus.salsalabs.org/donate-to-cantera/index.html"
|
||||
class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-secondary reference external"
|
||||
type="button">Donate to Cantera</a>
|
||||
<a href="https://numfocus.org/"><img src="{{pathto("_static/images/powered_by_NumFOCUS.svg", 1) }}" border="0" alt="NumFOCUS"/></a>
|
||||
</div>
|
||||
|
@ -311,6 +311,7 @@ html_theme = 'pydata_sphinx_theme'
|
||||
html_theme_options = {
|
||||
"show_toc_level": 2,
|
||||
"navbar_center": ["navbar-nav", "cantera-org-links"],
|
||||
"navbar_align": "left",
|
||||
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
|
||||
"show_prev_next": False,
|
||||
"logo": {
|
||||
|
Loading…
Reference in New Issue
Block a user