Skip to content

Commit 0cfe99f

Browse files
authored
Merge pull request #92 from QuLogic/theme-updates
MNT: Update Matplotlib and pydata sphinx theme
2 parents 5ad9e75 + f169e02 commit 0cfe99f

File tree

7 files changed

+44
-18
lines changed

7 files changed

+44
-18
lines changed

.circleci/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
version: 2.1
22

33
orbs:
4-
python: circleci/[email protected]
4+
# https://circleci.com/developer/orbs/orb/circleci/python
5+
python: circleci/[email protected]
56

67
jobs:
78
build_docs:
8-
executor: python/default
9+
executor:
10+
name: python/default
11+
tag: '3.10'
912
steps:
1013
- checkout
11-
- python/install-deps
14+
- python/install-packages
1215
- run:
1316
name: Build docs
1417
command: cd docs/ && make html

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828

2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v2
30+
uses: github/codeql-action/init@v3
3131
with:
3232
languages: ${{ matrix.language }}
3333
queries: +security-and-quality
3434

3535
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v2
36+
uses: github/codeql-action/autobuild@v3
3737

3838
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v2
39+
uses: github/codeql-action/analyze@v3
4040
with:
4141
category: "/language:${{ matrix.language }}"

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- name: Install Python dependencies
1111
run: pip install -r requirements.txt
1212
- name: Build
@@ -15,7 +15,7 @@ jobs:
1515
run: rm ./docs/_build/html/objects.inv
1616
- name: Publish
1717
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
18-
uses: peaceiris/actions-gh-pages@v3
18+
uses: peaceiris/actions-gh-pages@v4
1919
with:
2020
github_token: ${{ secrets.GITHUB_TOKEN }}
2121
publish_dir: ./docs/_build/html

docs/_static/css/landing.css

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,13 @@ a.link--offsite::after {
166166
flex-direction: column;
167167
align-items: center;
168168
flex: 1 1 100px;
169+
font-size: var(--heading-4);
170+
font-family: var(--heading-font);
169171
}
170172

171-
.quicklinks a {
173+
.quicklinks a, .quicklinks a:visited,
174+
.quicklinks a:hover, .quicklinks a:visited:hover {
172175
color: var(--default-text);
173-
font-size: var(--heading-4);
174-
font-family: var(--heading-font);
175176
}
176177

177178
.quicklinks__icon {
@@ -386,11 +387,29 @@ ul.mpl-links {
386387
font-weight: bold;
387388
}
388389

390+
ul.mpl-links a, ul.mpl-links a:visited,
391+
ul.release-docs a, ul.release-docs a:visited
392+
{
393+
color: var(--white);
394+
text-decoration: none;
395+
}
396+
397+
ul.mpl-links a:hover, ul.mpl-links a:visited:hover,
398+
ul.release-docs a:hover, ul.release-docs a:visited:hover
399+
{
400+
color: var(--pst-color-link-hover);
401+
}
402+
389403
.release dt {
390404
font-family: var(--heading-font);
391405
font-size: var(--heading-5);
392406
text-transform: uppercase;
393407
letter-spacing: 1px;
408+
margin-top: 1em;
409+
}
410+
411+
.release dt:first-child {
412+
margin-top: 0;
394413
}
395414

396415
.release dd {
@@ -657,6 +676,10 @@ a.button::after {
657676
transition: margin 0.2s ease-out;
658677
}
659678

679+
a.button:hover {
680+
color: var(--white);
681+
}
682+
660683
.button:hover::after,
661684
a.button:hover::after {
662685
margin-left: 80px;
@@ -678,7 +701,8 @@ a.button--teal {
678701
}
679702

680703
.button--green,
681-
a.button--green {
704+
a.button--green,
705+
a.button--green:hover {
682706
background: var(--viridis-green);
683707
color: var(--black);
684708
}

docs/_templates/landing_footer.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ <h1>Matplotlib</h1>
6363
<a href="https://matplotlib.org/stable/users/whats_new.html"
6464
>changelog</a>
6565
</dd>
66-
</dl>
6766

68-
<dl class="release">
6967
<dt>Development version</dt>
7068
<dd>
7169
<a href="https://matplotlib.org/devdocs/index.html">docs</a>

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"navbar_links": ("absolute", "server-stable"),
4141
"footer_start": ["landing_footer"],
4242
"secondary_sidebar_items": [],
43+
"back_to_top_button": False,
4344
}
4445

4546
# Add any paths that contain custom static files (such as style sheets) here,

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jinja2>3
2-
mpl-sphinx-theme~=3.8.0
3-
pydata-sphinx-theme~=0.13.0
2+
mpl-sphinx-theme~=3.9.0
3+
pydata-sphinx-theme~=0.15.0
44
pygments>=2.7
55
sphinx>=7.1
66
sphinx-notfound-page

0 commit comments

Comments
 (0)