Skip to content

Commit 8b2554f

Browse files
authored
Merge pull request #34 from QuLogic/mpl37
Update to mpl-sphinx-theme 3.7
2 parents c0213f4 + d569921 commit 8b2554f

File tree

6 files changed

+13
-565
lines changed

6 files changed

+13
-565
lines changed

.github/workflows/docs.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Docs
22

33
on: [push, pull_request]
44

5+
env:
6+
IS_RELEASE: |
7+
${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
58
69
jobs:
710
build:
@@ -16,10 +19,14 @@ jobs:
1619
run: pip install -r requirements-doc.txt
1720

1821
- name: Build
19-
run: make html
20-
- name: Publish
22+
run: |
23+
if [ "x$IS_RELEASE" == "xtrue" ]; then
24+
O="-t release"
25+
fi
26+
make html O="$O"
2127
22-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
28+
- name: Publish
29+
if: ${{ env.IS_RELEASE == 'true' }}
2330
uses: peaceiris/actions-gh-pages@v3
2431
with:
2532
github_token: ${{ secrets.GITHUB_TOKEN }}

_static/logo2.png

-21.8 KB
Binary file not shown.

_static/logo2.svg

-552
This file was deleted.

_static/logo2_compressed.svg

-1
This file was deleted.

conf.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,12 @@
6262
# Add any paths that contain custom static files (such as style sheets) here,
6363
# relative to this directory. They are copied after the builtin static files,
6464
# so a file named "default.css" will overwrite the builtin "default.css".
65-
html_static_path = ["_static"]
65+
# html_static_path = ["_static"]
6666

6767
# Fix for table wrapping
6868
# https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html
6969

7070
html_css_files = []
71-
html_logo = "_static/logo2.svg"
7271

7372

7473
html_sidebars = {
@@ -80,12 +79,7 @@
8079

8180

8281
html_theme_options = {
83-
"navbar_links": "server-stable",
84-
"logo": {
85-
"link": "index",
86-
"image_light": "images/logo2.svg",
87-
"image_dark": "images/logo_dark.svg",
88-
},
82+
"navbar_links": ("absolute", "server-stable"),
8983
"collapse_navigation": not is_release_build,
9084
"show_prev_next": False,
9185
# Toc options

requirements-doc.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# List required packages in this file, one per line.
2-
mpl-sphinx-theme~=3.6.0
2+
mpl-sphinx-theme~=3.7.1
33
myst-parser

0 commit comments

Comments
 (0)