Skip to content

Commit fe75faf

Browse files
authored
Merge branch 'master' into master
2 parents 5fa45a6 + af1122b commit fe75faf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+416
-164
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout source
18-
uses: actions/checkout@v3
19-
- name: Set up Python 3.9
18+
uses: actions/checkout@v4
19+
- name: Set up Python 3.11
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: 3.9
22+
python-version: 3.11
2323

2424
- name: Build package
2525
run: |
@@ -28,7 +28,7 @@ jobs:
2828
python -m build
2929
3030
- name: Publish
31-
uses: pypa/gh-action-pypi-publish@v1.6.4
31+
uses: pypa/gh-action-pypi-publish@v1.8.11
3232
with:
3333
user: __token__
3434
password: ${{ secrets.PYPI_KEY }}

.github/workflows/tests.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,52 +16,56 @@ jobs:
1616
pre-commit:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- uses: actions/setup-python@v4
2121
with:
22-
python-version: 3.9
22+
python-version: 3.11
2323
- uses: pre-commit/action@v3.0.0
2424

2525
tests:
26+
continue-on-error: ${{ matrix.experimental || false }}
2627
strategy:
28+
fail-fast: false
2729
matrix:
2830
os: [ubuntu-latest]
29-
python-version: [3.7, 3.8, 3.9]
31+
python-version: ["3.9", "3.10", "3.11"]
3032
# Only test the latest major release of Sphinx because otherwise we need to
3133
# keep multiple versions of regression tests on file and this creates lots of
3234
# noise in the tests.
33-
sphinx: [">=6,<7"]
35+
sphinx: ["~=5.0","~=6.0","~=7.0"]
3436
include:
3537
- os: windows-latest
36-
python-version: 3.9
37-
sphinx: ">=6,<7"
38+
# Python 3.12 is broken on windows builds until the following PR is released:
39+
# https://github.com/pradyunsg/sphinx-theme-builder/pull/47
40+
python-version: 3.11
41+
# Windows pulling in dependencies fails
42+
experimental: true
3843
- os: macos-latest
39-
python-version: 3.9
40-
sphinx: ">=6,<7"
44+
python-version: 3.x
4145
runs-on: ${{ matrix.os }}
4246

4347
steps:
44-
- uses: actions/checkout@v3
45-
- name: Set up Python ${{ matrix.python-version }} and Sphinx ${{ matrix.sphinx }}
48+
- uses: actions/checkout@v4
49+
- name: Set up Python ${{ matrix.python-version }}
4650
uses: actions/setup-python@v4
4751
with:
4852
python-version: ${{ matrix.python-version }}
4953
cache: "pip"
5054
cache-dependency-path: "pyproject.toml"
5155

52-
- name: Install dependencies
56+
- name: Install dependencies with Sphinx ${{ matrix.sphinx }}
5357
run: |
5458
python -m pip install --upgrade pip
55-
python -m pip install -e .[test]
59+
python -m pip install --upgrade "sphinx${{matrix.sphinx}}" -e .[test] --pre
5660
5761
- name: Run pytest
5862
run: >
5963
pytest --durations=10 --cov=sphinx_book_theme --cov-report=xml --cov-report=term-missing
6064
6165
# Only upload to codecov on pull requests so that we don't trigger rate limit blocks
6266
- name: Upload to Codecov
63-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 && github.repository == 'executablebooks/sphinx-book-theme' && github.event_name == 'pull_request'
64-
uses: codecov/codecov-action@v3.1.1
67+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 && github.repository == 'executablebooks/sphinx-book-theme' && github.event_name == 'pull_request'
68+
uses: codecov/codecov-action@v3.1.4
6569
with:
6670
name: ebp-sbt-pytests-py3.7
6771
flags: pytests
@@ -73,11 +77,11 @@ jobs:
7377
runs-on: ubuntu-latest
7478
name: Build and Audit Documentation
7579
steps:
76-
- uses: actions/checkout@v3
80+
- uses: actions/checkout@v4
7781
- name: Set up Python
7882
uses: actions/setup-python@v4
7983
with:
80-
python-version: '3.7'
84+
python-version: '3.9'
8185
cache: "pip"
8286
cache-dependency-path: "pyproject.toml"
8387
- name: Install dependencies
@@ -106,7 +110,7 @@ jobs:
106110
assert len(unexpected) == 0
107111
108112
- name: Audit with Lighthouse
109-
uses: treosh/lighthouse-ci-action@9.3.1
113+
uses: treosh/lighthouse-ci-action@10.1.0
110114
with:
111115
configPath: ".github/workflows/lighthouserc.json"
112116
temporaryPublicStorage: true

.pre-commit-config.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,23 @@ default_language_version:
1414
repos:
1515

1616
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v4.4.0
17+
rev: v4.5.0
1818
hooks:
1919
- id: check-toml
2020
- id: check-json
2121
- id: check-yaml
2222
- id: end-of-file-fixer
2323
- id: trailing-whitespace
2424

25-
- repo: https://github.com/PyCQA/flake8
26-
rev: 6.0.0
25+
- repo: https://github.com/astral-sh/ruff-pre-commit
26+
rev: v0.1.6
2727
hooks:
28-
- id: flake8
29-
30-
- repo: https://github.com/psf/black
31-
rev: 23.1.0
32-
hooks:
33-
- id: black
28+
- id: ruff
29+
args: ["--fix", "--show-fixes"]
30+
- id: ruff-format
3431

3532
- repo: https://github.com/pre-commit/mirrors-prettier
36-
rev: v3.0.0-alpha.4
33+
rev: v3.1.0
3734
hooks:
3835
- id: prettier
3936
types_or: [scss, javascript]

.readthedocs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
version: 2
2+
# Set the OS, Python version and other tools you might need
3+
4+
build:
5+
os: ubuntu-22.04
6+
tools:
7+
python: "3.10"
28

39
python:
4-
version: 3
510
install:
611
- method: pip
7-
path: .[doc]
12+
path: ".[doc]"
813

914
sphinx:
1015
builder: html

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v1.0.1 -- 2023-03-31
4+
5+
This is a minor release supporting pydata>=0.13.3, with a few import changes from pydata.
6+
37
## v1.0.0 -- 2023-03-01
48

59
This is a major release that brings in the latest PyData Sphinx Theme and a number of new features with it.

docs/components/source-files.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ an edit or open an issue.
1010

1111
You need to define a **source repository** for this functionality to work.
1212
This is the online space where your code / documentation is hosted.
13-
To
1413
In each case, they require the following configuration to exist:
1514

1615
```python

docs/conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@
8686
"reference/blog/*": [
8787
"navbar-logo.html",
8888
"search-field.html",
89-
"postcard.html",
90-
"recentposts.html",
91-
"tagcloud.html",
92-
"categories.html",
93-
"archives.html",
89+
"ablog/postcard.html",
90+
"ablog/recentposts.html",
91+
"ablog/tagcloud.html",
92+
"ablog/categories.html",
93+
"ablog/archives.html",
9494
"sbt-sidebar-nav.html",
9595
]
9696
}
@@ -205,7 +205,7 @@
205205
) # noqa
206206
content = "\n".join(content)
207207
# Replace a relative link in the pydata docs w/ the respective one here
208-
content = content.replace("../examples/pydata.md", "notebooks.md")
208+
content = content.replace("../examples/pydata.ipynb", "notebooks.md")
209209
# Write to disk in a location that will be ignored by git
210210
path_content_file.write_text(content)
211211

docs/content/launch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ file instead of the text file.
2828

2929
## Binder / BinderHub
3030

31-
To add Binder links your page, add the following configuration:
31+
To add Binder links to your page, add the following configuration:
3232

3333
```python
3434
html_theme_options = {

docs/content/notebooks.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,15 @@ import folium
223223
m = folium.Map(
224224
location=[45.372, -121.6972],
225225
zoom_start=12,
226-
tiles='Stamen Terrain'
226+
tiles='Stamen Terrain',
227+
attr="Placeholder attr"
227228
)
228229
229230
folium.Marker(
230231
location=[45.3288, -121.6625],
231232
popup='Mt. Hood Meadows',
232-
icon=folium.Icon(icon='cloud')
233+
icon=folium.Icon(icon='cloud'),
234+
attr="Placeholder attr"
233235
).add_to(m)
234236
235237
folium.Marker(
@@ -241,7 +243,8 @@ folium.Marker(
241243
folium.Marker(
242244
location=[45.3300, -121.6823],
243245
popup='Some Other Location',
244-
icon=folium.Icon(color='red', icon='info-sign')
246+
icon=folium.Icon(color='red', icon='info-sign'),
247+
attr="Placeholder attr"
245248
).add_to(m)
246249
247250

docs/contributing/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Follow these steps:
1515
cd sphinx-book-theme
1616
```
1717

18-
2. Ensure you have Python 3.7 or newer!
18+
2. Ensure you have Python 3.9 or newer!
1919
3. Install `tox`.
2020
`tox` is a tool for managing virtual environments for test suites or common jobs that are run with a repository.
2121
It ensures that your environment is consistent each time you build the docs or run tests.

0 commit comments

Comments
 (0)