Skip to content

Commit e341fd8

Browse files
authored
Merge branch 'main' into MAINT_switch_prettier_fork
2 parents 87e14ad + a36a802 commit e341fd8

14 files changed

Lines changed: 99 additions & 48 deletions

File tree

.github/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot
5+
- dependabot[bot]
6+
- pre-commit-ci
7+
- pre-commit-ci[bot]

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python -m build
2929
3030
- name: Publish
31-
uses: pypa/gh-action-pypi-publish@v1.12.2
31+
uses: pypa/gh-action-pypi-publish@v1.12.4
3232
with:
3333
user: __token__
3434
password: ${{ secrets.PYPI_KEY }}

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: continuous-integration
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
tags:
77
- 'v*'
88
pull_request:
@@ -30,9 +30,9 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
os: [ubuntu-latest]
33-
python-version: ["3.11", "3.12", "3.13"]
33+
python-version: ["3.11", "3.12", "3.13", "3.14"]
3434
# Test last 2 major releases of Sphinx; regression fixtures target the latest.
35-
sphinx: ["~=7.0", "~=8.0"]
35+
sphinx: ["~=7.0", "~=8.0", "~=9.0"]
3636
include:
3737
- os: windows-latest
3838
python-version: 3.13
@@ -65,7 +65,7 @@ jobs:
6565
# Disabled for now with false &&
6666
- name: Upload to Codecov
6767
if: false && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' && matrix.sphinx == '~=8.0' && github.repository == 'executablebooks/sphinx-book-theme' && github.event_name == 'pull_request'
68-
uses: codecov/codecov-action@v5.0.7
68+
uses: codecov/codecov-action@v5.4.0
6969
with:
7070
name: ebp-sbt-pytests-py3.11
7171
flags: pytests
@@ -109,7 +109,7 @@ jobs:
109109
from pathlib import Path
110110
import re
111111
text = Path("./warnings.txt").read_text().strip()
112-
expected_warning_patterns = [r"kitchen\-sink", r"urllib/parse\.py", r"Glyph 10024 .*? missing from current font"]
112+
expected_warning_patterns = [r"kitchen\-sink", r"urllib/parse\.py", r"Glyph 10024 .*? missing from current font", r"list assignment index out of range \[autodoc\]"]
113113
print("\n=== Sphinx Warnings ===\n\n" + text) # Print just for reference so we can look at the logs
114114
unexpected = [l for l in text.splitlines() if not any(re.search(p, l) for p in expected_warning_patterns)]
115115
assert len(unexpected) == 0, unexpected

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2
44
build:
55
os: ubuntu-22.04
66
tools:
7-
python: "3.10"
7+
python: "3.12"
88

99
python:
1010
install:

CHANGELOG.md

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

3+
## v1.2.0 -- 2026-03-09
4+
5+
* Jupyterlite button - patched, merged version of #655 by @matthew-brett in https://github.com/executablebooks/sphinx-book-theme/pull/914
6+
* [ENH] Show source text on GitLab projects by @tymcauley in https://github.com/executablebooks/sphinx-book-theme/pull/916
7+
* Fix typo in docs by @user27182 in https://github.com/executablebooks/sphinx-book-theme/pull/913
8+
* prepare for latest pydata and python releases by @choldgraf in https://github.com/executablebooks/sphinx-book-theme/pull/920
9+
* Ignore PendingDeprecationWarning about parser_name deprecation with Docutils 0.22 by @mitya57 in https://github.com/executablebooks/sphinx-book-theme/pull/919
10+
* CI: adding cronjob by @bsipocz in https://github.com/executablebooks/sphinx-book-theme/pull/926
11+
* DOC: Fix margin directive documentation by @melissawm in https://github.com/executablebooks/sphinx-book-theme/pull/930
12+
* MAINT: adding sphinx9 and python3.14 support and bumping minimum sphinx to 7 and python to 3.11 by @bsipocz in https://github.com/executablebooks/sphinx-book-theme/pull/927
13+
14+
15+
**Full Changelog**:
16+
https://github.com/executablebooks/sphinx-book-theme/compare/v1.1.4...v1.2
17+
18+
319
## v1.1.2 -- 2024-02-13
420

521
([full changelog](https://github.com/executablebooks/sphinx-book-theme/compare/v1.1.1...3da24da74f6042599fe6c9e2d612f5cbdef42280))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ theme. See the pages to the left for information about what you can configure wi
4545
See [the Sphinx Book Theme documentation](https://sphinx-book-theme.readthedocs.io/en/latest/)
4646
for more information.
4747

48-
[codecov-badge]: https://codecov.io/gh/executablebooks/sphinx-book-theme/branch/master/graph/badge.svg
48+
[codecov-badge]: https://codecov.io/gh/executablebooks/sphinx-book-theme/branch/main/graph/badge.svg
4949
[codecov-link]: https://codecov.io/gh/executablebooks/sphinx-book-theme
5050

5151
[rtd-badge]: https://readthedocs.org/projects/sphinx-book-theme/badge/?version=latest

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
html_theme_options = {
110110
"path_to_docs": "docs",
111111
"repository_url": "https://github.com/executablebooks/sphinx-book-theme",
112-
"repository_branch": "master",
112+
"repository_branch": "main",
113113
"launch_buttons": {
114114
"binderhub_url": "https://mybinder.org",
115115
"colab_url": "https://colab.research.google.com/",
@@ -190,6 +190,8 @@
190190
linkcheck_ignore = [
191191
"http://someurl/release", # This is a fake link
192192
"https://doi.org", # These don't resolve properly and cause SSL issues
193+
"https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html", # anchors throw a 403 forbidden error
194+
"https://docutils.sourceforge.io/docs/ref/rst/directives.html", # anchors throw a 403 forbidden error
193195
]
194196
linkcheck_exclude_documents = ["changelog"]
195197

docs/content/content-blocks.md

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,17 @@ If you'd like in-line margin content with numbered references, see [](margin:sid
141141

142142
Here's how you can use the `{margin}` directive:
143143

144-
````{example}
145-
:no-container:
146-
:reverse:
144+
```{margin} **Here is my margin content**
145+
It is pretty cool!
146+
```
147+
148+
:::{important}
149+
The `{margin}` directive should not be nested under other elements such as topics or admonitions.
150+
:::
151+
152+
**Source**
147153

154+
````
148155
```{margin} **Here is my margin content**
149156
It is pretty cool!
150157
```
@@ -217,23 +224,36 @@ We can reference the figure with {ref}`myfig4`. Or a numbered reference like
217224

218225
Margin content can include all kinds of things, such as code blocks:
219226

227+
**Code blocks in the margin**
228+
220229
````{margin} Code blocks in margins
221230
```python
222231
print("here is some python")
223232
```
224233
````
225234

235+
**Source**
236+
237+
`````
226238
````{margin} Code blocks in margins
227239
```python
228240
print("here is some python")
229241
```
230242
````
231243
`````
232244

233-
`````{example} Admonitions and images in the margin
234-
:no-container:
235-
:reverse:
245+
**Admonitions and images in the margin**
236246

247+
````{margin} **Notes in margins**
248+
```{note}
249+
Wow, a note with an image in a margin!
250+
![](../images/cool.jpg)
251+
```
252+
````
253+
254+
**Source**
255+
256+
`````
237257
````{margin} **Notes in margins**
238258
```{note}
239259
Wow, a note with an image in a margin!
@@ -249,9 +269,16 @@ page to flow around them, rather than moving to the right margin.
249269

250270
To add content sidebars, use this syntax:
251271

252-
`````{example}
253-
:no-container:
272+
````{sidebar} **My sidebar title**
273+
```{note}
274+
Here is my sidebar content, it is pretty cool!
275+
```
276+
![](../images/cool.jpg)
277+
````
254278

279+
**Source**
280+
281+
`````
255282
````{sidebar} **My sidebar title**
256283
```{note}
257284
Here is my sidebar content, it is pretty cool!
@@ -265,6 +292,10 @@ However, the sidebar text will still be in line with your content. There are
265292
certain kinds of elements, such as "note" blocks and code cells, that may
266293
clash with your sidebar. If this happens, try using a `{margin}` instead.
267294

295+
:::{important}
296+
The `{sidebar}` directive should not be nested under other elements such as topics or admonitions.
297+
:::
298+
268299
## Full-width content
269300

270301
Full-width content extends into the right margin, making it stand out against

docs/contributing/setup.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ Follow these steps:
3939
$ pre-commit install
4040
```
4141

42-
:::{margin}
43-
You can also run pre-commit via `tox`:
44-
```console
45-
$ tox -e py38-pre-commit -- --all
46-
```
47-
or manually run all `pre-commit` jobs for this repository:
42+
:::{margin}
43+
You can also run pre-commit via `tox`:
44+
```console
45+
$ tox -e py38-pre-commit -- --all
46+
```
47+
or manually run all `pre-commit` jobs for this repository:
4848

49-
```console
50-
$ pre-commit run --all-files
51-
```
52-
:::
49+
```console
50+
$ pre-commit run --all-files
51+
```
52+
:::
5353

5454
The rest of these instructions use `tox` to automate the installation and commands necessary to do many common things.
5555

docs/contributing/tests.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ $ tox
1414
You can specify a specific environment like so:
1515

1616
```console
17-
# Run the tests with Python 3.10, Sphinx 6
18-
$ tox -e py310-sphinx6
17+
# Run the tests with Python 3.12, Sphinx 8
18+
$ tox -e py312-sphinx8
1919
```
2020

2121
## List all test environments
@@ -46,7 +46,7 @@ By default, `tox` will only install the necessary environment **once**.
4646
If you'd like to force a re-build, use the `-r` parameter. For example:
4747

4848
```console
49-
$ tox -r -e py310-sphinx6
49+
$ tox -r -e py312-sphinx8
5050
```
5151

5252
## Test audits with lighthouse
@@ -63,7 +63,7 @@ To preview the output of these tests:
6363

6464
## Test multiple Sphinx versions
6565

66-
This theme is tested against Sphinx 6-9.
66+
This theme is tested against Sphinx 7-9.
6767
We try to set up our regression tests such that there are no differences between these Sphinx versions.
6868

6969
### Unit tests

0 commit comments

Comments
 (0)