-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: choldgraf <[email protected]> Co-authored-by: Chris Holdgraf <[email protected]>
- Loading branch information
1 parent
3c30ea3
commit 3dd7770
Showing
10 changed files
with
147 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,36 +23,38 @@ jobs: | |
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
continue-on-error: ${{ matrix.experimental || false }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
# Only test the latest major release of Sphinx because otherwise we need to | ||
# keep multiple versions of regression tests on file and this creates lots of | ||
# noise in the tests. | ||
sphinx: [">=6,<7"] | ||
sphinx: ["~=5.0","~=6.0","~=7.0"] | ||
include: | ||
- os: windows-latest | ||
python-version: 3.11 | ||
sphinx: ">=6,<7" | ||
python-version: 3.x | ||
# Windows pulling in dependencies fails | ||
experimental: true | ||
- os: macos-latest | ||
python-version: 3.11 | ||
sphinx: ">=6,<7" | ||
python-version: 3.x | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} and Sphinx ${{ matrix.sphinx }} | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
cache-dependency-path: "pyproject.toml" | ||
|
||
- name: Install dependencies | ||
- name: Install dependencies with Sphinx ${{ matrix.sphinx }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[test] | ||
python -m pip install --upgrade "sphinx${{matrix.sphinx}}" -e .[test] --pre | ||
- name: Run pytest | ||
run: > | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,5 @@ | |
"notebook_interface": "jupyterlab", | ||
"thebe": True, | ||
}, | ||
"navigation_with_keys": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ | |
|
||
html_theme_options = { | ||
"home_page_in_toc": True, | ||
"navigation_with_keys": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
""" | ||
|
||
html_theme = "sphinx_book_theme" | ||
html_theme_options = { | ||
"navigation_with_keys": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<section id="marginnotes"> | ||
<h2> | ||
<span class="section-number"> | ||
2.2. | ||
</span> | ||
Marginnotes | ||
<a class="headerlink" href="#marginnotes" title="Permalink to this heading"> | ||
# | ||
</a> | ||
</h2> | ||
<p> | ||
Some text to test out one marginnote | ||
<label class="margin-toggle marginnote-label" for="marginnote-role-2"> | ||
</label> | ||
<input class="margin-toggle" id="marginnote-role-2" name="marginnote-role-2" type="checkbox"/> | ||
<span class="marginnote"> | ||
This is a marginnote. | ||
</span> | ||
and another marginnote | ||
<label class="margin-toggle marginnote-label" for="marginnote-role-6"> | ||
</label> | ||
<input class="margin-toggle" id="marginnote-role-6" name="marginnote-role-6" type="checkbox"/> | ||
<span class="marginnote"> | ||
This is | ||
<em> | ||
another | ||
</em> | ||
<strong> | ||
marginnote | ||
</strong> | ||
. | ||
</span> | ||
</p> | ||
<p> | ||
This is the end of Page 2. | ||
</p> | ||
<hr class="footnotes docutils"/> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<section id="sidenotes"> | ||
<h2> | ||
<span class="section-number"> | ||
2.1. | ||
</span> | ||
Sidenotes | ||
<a class="headerlink" href="#sidenotes" title="Permalink to this heading"> | ||
# | ||
</a> | ||
</h2> | ||
<p> | ||
Some text to test out one sidenote | ||
<label class="margin-toggle" for="sidenote-role-1"> | ||
<span id="id1"> | ||
<sup> | ||
1 | ||
</sup> | ||
</span> | ||
</label> | ||
<input class="margin-toggle" id="sidenote-role-1" name="sidenote-role-1" type="checkbox"/> | ||
<span class="sidenote"> | ||
<sup> | ||
1 | ||
</sup> | ||
This is a sidenote. | ||
</span> | ||
and another sidenote | ||
<label class="margin-toggle" for="sidenote-role-3"> | ||
<span id="id2"> | ||
<sup> | ||
3 | ||
</sup> | ||
</span> | ||
</label> | ||
<input class="margin-toggle" id="sidenote-role-3" name="sidenote-role-3" type="checkbox"/> | ||
<span class="sidenote"> | ||
<sup> | ||
3 | ||
</sup> | ||
This is | ||
<em> | ||
another | ||
</em> | ||
<strong> | ||
sidenote | ||
</strong> | ||
. | ||
</span> | ||
</p> | ||
</section> |