Skip to content

Commit 5d45096

Browse files
committed
Update to sphinx theme master 1.3.0
It seems readthedocs#677 never actually got merged into master Apply suggestions from code review Co-authored-by: Jesse Tan <[email protected]> Add development version back to docs Update to next development release after 1.0.0 For now, we'll be a bugfix release at 1.0.1 but do anticipate we'll be adding features this release and will get to 1.1.0. Requires readthedocs#1230 Use consistent indentation in src/sass/_theme_rst.sass (readthedocs#1234) Fix typos (readthedocs#1291) Fix CircleCI config Build with Node 14 installed through orbs. Fixes readthedocs#1275 Fix SASS syntax errors from readthedocs#967 This introduced syntax errors that were not picked up in review, the `:not()` psuedo selector can't lead a selector in SASS. Pin Jinja to pre-3.1 release Ignore asdf configuration Bump to a valid version scheme, bump node-sass for Node 14 support Docker configuration for dev environment Remove some text @agjohnson First updates migrating to docker-compose Removes Makefile + double FROM in Dockerfile Fix node.js error in docker runtime, speed up build by not copying the entire context Use static setuptools metadata Add rule to remove double margin inside dl's Remove double margin from all dl's not just last Remove double margin from all dl's not just last Add a demo with Python types (regression test for readthedocs#1196), rebuild theme.js Bump to a valid version scheme, bump node-sass for Node 14 support Do not bump the version in auto-maintained file package-lock.json Adds wheel and a command to package bdist_wheel + sdist Build everything one step at a time Make note about releasing `package-lock.json` Do not build the python package in this step Fixes the fix from readthedocs#1315 - the CSS selector was wrong Rebuild theme.css with "Fix <kbd> CSS selector readthedocs#1320" Wrapping up the Docker work, using docker cp again in order to copy assets out of containers Tune kbd selectors Exclude option lists from selectors for kbd styling. Revert change to JS package This matches the version number in the Python package, and allows bumpversion to continue working. We can revisit changing this version later, but currently this version will never be updated again, as bumpversion will not match this string anymore. Fixes readthedocs#1326 Fix a wrong example, replace non-existing `Body Elements` with `References` Add an upper bound for when Sphinx 6 is released Fix readthedocs#1078: Citation not styled properly (readthedocs#1080) * Fix readthedocs#1078: Citation not styled properly Turns out our demo docs werent being rendered by sphinx as citations so this may have slipped though the sphinx 2 fixes. I updated the demo docs and included the need style fixes. * Group citations and footnotes * Build Assets * Build theme.css with "Fix readthedocs#1078: Citation not styled properly readthedocs#1080" Co-authored-by: Benjamin Bach <[email protected]> Fixes readthedocs#289: Inconsistent table typography sizing (readthedocs#1215) * Fix table typography inconsistent sizing * Remove rule duplication * Remove <ol> and fix build * Build new theme.css for readthedocs#1215 * Add an example rendering with paragraphs inside tables * build theme.css for readthedocs#1215 Co-authored-by: Benjamin Bach <[email protected]> Build matrix fixes (readthedocs#1338) * Add new Sphinx versions to tox test matrix, but do not allow docutils >= 0.17 on Sphinx>=4.3 * Stop py2 and py27 support from sphinxlatest because of build breakage * Circle CI: Repeat sphinx versions for Python 2.7 (pending adjustments) * tox.ini config: Ensure that we are getting the expected Sphinx version Add Python 3.10 support (readthedocs#1334) * Add Python 3.10 support * Add new Sphinx versions to tox test matrix, but do not allow docutils >= 0.17 on Sphinx>=4.3 * Stop py2 and py27 support from sphinxlatest because of build breakage * Circle CI: Repeat sphinx versions for Python 2.7 (pending adjustments) * tox.ini config: Ensure that we are getting the expected Sphinx version * Set sphinx versions for Python 3.10 Fix definition lists inside api docs (readthedocs#1084) * Fix definition lists inside api docs This is similar to readthedocs#1080 (and is needed to fix citations in the demo here) Fixes readthedocs#1052 * Build Assets * Build Assets 2 * New build of theme.css and theme.js * Regenerate theme.css for readthedocs#1084 Co-authored-by: Benjamin Bach <[email protected]> Remove font-smoothing (readthedocs#1094) * Remove font-smoothing This is a non standard css feature and is not supported on many platforms. And has been removed from the css standard specification. It is advized to not use it according to MDN along with many other guides on the internet. * rebuild theme.css and badge_only.css for readthedocs#1094 Co-authored-by: Benjamin Bach <[email protected]> CSS: Add overflow-wrap to links inside paragraphs (readthedocs#1193) * Add overflow-wrap to links inside paragraphs * Add regression test for very long URLs * Build theme.css for readthedocs#1193 * build theme.css for readthedocs#1193 * Build theme.css for readthedocs#1193 Co-authored-by: Benjamin Bach <[email protected]> Update Breadcrumb Styles (readthedocs#1073) * Update Breadcrumb Styles - Fixes extra padding to the left/right - Used slash instead of >> - Make literalls match other link style - Adds demo docs for testing * Update comment * Update src/sass/_theme_breadcrumbs.sass Co-authored-by: Ana Costa <[email protected]> * Build theme.css for readthedocs#1073 * Build theme.css for readthedocs#1073 Co-authored-by: Benjamin Bach <[email protected]> Co-authored-by: Ana Costa <[email protected]> Fixup a wrong merge conflict resolution from readthedocs#1321 (readthedocs#1335) * Fixup a wrong merge conflict resolution from readthedocs#1321 * Add python_requires again to setup.cfg Add sphinx 5.2 to test matrix (readthedocs#1348) Update layout.html to support a sphinx version that is not three-integers (readthedocs#1345) * Update layout.html to support a sphinx version that is not three-integers. Useful for sphinx==5.2.0.post0 * Apply suggestions from code review Co-authored-by: Adam Turner <[email protected]> * No reason to only have the first three elements from the sphinx version Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Benjamin Balder Bach <[email protected]> Translation updates: Pull translations from transifex, push new sources (readthedocs#1354) Adds changelog for 1.1.0alpha1 (readthedocs#1353) * Adds changelog for 1.1.0alpha1 * Update docs/changelog.rst Co-authored-by: Anthony <[email protected]> Co-authored-by: Anthony <[email protected]> Additions to Tox and Circle CI matrix (readthedocs#1349) * Refines tox matrix, adds a new target "sphinxdev" that can test the latest upstream development branch * Adds missing tox environments in circle ci config * Remove odd undefined py2 and py3 tox environments Move context logic for layout.html to jinja (readthedocs#1356) * Revert "Update layout.html to support a sphinx version that is not three-integers (readthedocs#1345)" This reverts commit 45cf218. * Always slice list before unpacking so number of elements is expected range `map` filter returns a generator that needs to run through the `list` filter before slicing * Let's keep it a 3-tuple but always set 3rd component to -1 -- in case a project was unpacking 3 values Release 1.1.0b1 + 1.1.0b2 (bump versions with bump2version) (readthedocs#1352) * Bump to 1.1.0 using bump2version * Use PEP440 and make it a beta, i.e. "1.1.0b1" * Auto-generated package-lock.json but with version bumps * Bump to 1.1.0b2, rebuild assets Remove Jinja2 dependency (readthedocs#1360) * Remove Jinja2 dependency, inherited from Sphinx + handled in external environments * Remove mentioning of Jinja2 dependency change * Add Jinja2<3.1 dependecy to affected tox environments Release 1.1.0b3 (readthedocs#1361) * Update __init__.py because it wasn't updated by previous bump2version * Add some comments about docker mechanisms that are disturbing release workflow * Bump to version 1.1.0b3 * Revert "Bump to 1.1.0b2, rebuild assets" This reverts commit 615eb52. * Add changelog entry for readthedocs#1073 * Changelog entry for readthedocs#1193 Bump to version 1.1.0 (readthedocs#1367) Do not overflow object cross references (readthedocs#1369) * Do not overflow object cross references * Rebuild theme for readthedocs#1369 * Adds a demo for the regression * Mock sphinx-automodapi for now, but we can use it soon * we can replace sphinx-automodapi demo entirely with autosummary since it uses this under the hood * We need a python 2.7 compliant test module. Add a short-term workaround until this is removed in 2.0. * Add comment about the terrible tox workaround * Use a less hacky way of conditional autosummary in demo API docs - Use `only` directive for conditional reST instead - Drops 1.6 from our text matrix, it was deprecated in 1.0 release. There were issues with the conditional directive only on 1.6 for some reason. Co-authored-by: Benjamin Bach <[email protected]> Co-authored-by: Anthony Johnson <[email protected]> Bugfix release 1.1.1 (readthedocs#1371) * Bugfix release 1.1.1 * Release package updates * Package lock * Translations Bump development version after 1.1.1 release (readthedocs#1372) Update versioning docs to be explicit about our versioning workflow (readthedocs#1373) Docs: Add upgrade instructions and simplify conf.py (readthedocs#1365) * Docs: Clean up several broken cross-references * Adds a section about upgrading the theme and add navigation structure to installation guide * Add a reference from Changelog to "How to upgrade" * Also don't import sphinx_rtd_theme in the theme's own docs/conf.py * Remove trailing linebreaks * Update docs/installing.rst Co-authored-by: Anthony <[email protected]> * Apply suggestions from code review Co-authored-by: Anthony <[email protected]> * Update docs/installing.rst * Replace guidance with reference to Reproducible Builds * Build link into sentence * Update the tip about using build logs and the need to pin the theme for older projects * Remove tip box for Read the Docs users re: @agjohnson's request Co-authored-by: Anthony <[email protected]> New release of sphinxcontrib-httpdomain==1.8.1 broke tests (readthedocs#1383) * New release of sphinxcontrib-httpdomain==1.8.1 broke tests * Remove sphinxcontrib-httpdomain Eager upgrade of all dependencies in docker development environment (readthedocs#1350) * Do an eager upgrade of all dependencies in docker development environment * Adds a comment about installation of deps and upgrade strategy Added aria-label to search box input field. (readthedocs#1380) Co-authored-by: Benjamin Bach <[email protected]> Added hidden text for home link in the breadcrumbs. (readthedocs#1384) * Added hidden text for home link in breadcrumbs. * Update breadcrumbs.html * Update breadcrumbs.html Add docutils 0.18 citation/footnote support using CSS grid (readthedocs#1381) * Add docutils 0.18 citation/footnote support using CSS grid This is a fix for readthedocs#1322 that continues our pattern for HTML5 support using CSS grids, introduced for support for docutils < 0.17 HTML5 support. * Add lots of backreferences to a footnote * Drop brackets from footnote/citation links The brackets seem to be another docutils addition. * Tune grid display for Sphinx 4 and 5 Backrefs have a new styling that drops a lot of punctuation * Bump dependency on docutils to < 0.19 * Small tweak to footnote backrefs row span We don't want to use too large a value here, as some browsers might make explicit rows for us. We can't target -1 because the row count is implicit. * Revert some new styling and use nonbreaking backrefs for now * Downgrade tox * Use before pseudo class to break up backrefs consistently Add changelog entry for docutils 0.18 support (readthedocs#1389) * Add changelog entry for docutils 0.18 support * Update docs/changelog.rst Co-authored-by: Anthony <[email protected]> Co-authored-by: Anthony <[email protected]> Release 1.2.0rc1 (readthedocs#1391) * Bump to 1.2.0alpha1 * bump 2 1.2.0rc1 * Update package-lock.json from nmp audit * Sync translations from Transifex (no changes found though) Allow Sphinx version 6 and add dependency for sphinxcontrib-jquery (readthedocs#1385) * Allow Sphinx version 6 and add dependency for sphinxcontrib-jquery * Adds Sphinx 6.0b2 to Tox test matrix * Adds Sphinx 6 to relevant Circle CI pipelines * Build docs with Sphinx 6.0b2 * Use stable Sphinx 6.0.0 support Python 3.11 with Sphinx 5.3+ (readthedocs#1395) * support Python 3.11 with Sphinx 5.3+ * Update tox.ini Co-authored-by: Michael R. Crusoe <[email protected]> Co-authored-by: Benjamin Balder Bach <[email protected]> Co-authored-by: Benjamin Balder Bach <[email protected]> sphinx-rtd-theme will automatically enable sphinxcontrib-jquery (readthedocs#1399) 1.2.0rc2 (readthedocs#1397) * Bump to 1.2.0rc2, add changelog entry on Sphinx 6 * Pull translations (no changes) * loosen sphinx 6 pinning Updates to package-lock.json for 1.2.0rc2 (readthedocs#1400) Updates to package-lock.json Sphinx 6: Use logo_url instead of logo (readthedocs#1405) * Sphinx 6: Use logo_url instead of logo * Handle removal of favicon template context + refactor display of logo and link so it's easier to see what belongs to <4.0 and what is >=4.0 * Adds a favicon to the demo * Import condensed version logic @agjohnson * Update sphinx_rtd_theme/layout.html Co-authored-by: Anthony <[email protected]> Co-authored-by: Anthony <[email protected]> Release 1.2.0rc3 (readthedocs#1414) * Bump version to 1.2.0rc3 * Update changelog with more entries and known issues * Update package-lock Do not use sphinxcontrib-jquery 3.0.0 but anticipate a fixed release (readthedocs#1421) * Do not use sphinxcontrib-jquery but anticipate a fixed release * Only require sphinxcontrib-jquery on Python 3 (Sphinx 6 isn't released for 2.7) release 1.2.0rc4 (readthedocs#1430) * Bump to 1.2.0rc4 * Update changelog * Update translations * Chinese (Taiwan) was also a new addition Release 1.2.0 (readthedocs#1432) * Drop development version header from changelog This makes just as much sense as a point release header, and won't require any special attention when we're cutting a release. * Bump release 1.2.0 * Update package lock Bump to next alpha for development (readthedocs#1433) fixed type-o in note on automatic index generation (readthedocs#1458) Add a call to add_js_files (sphinxcontrib.query) (readthedocs#1448) * Add a call to add_js_files since it doesn't happen when loading extension from theme sphinx-contrib/jquery#23 * Avoid importing from sphinxcontrib.jquery in __init__ * Add reference to issue Docs: Typo in recommended pinning (readthedocs#1476) * Typo in recommended pinning The paragraph above recommends "less than the next major version". But the example says `<=`. Make them match * Update development.rst Release 1.2.1 (readthedocs#1474) * Run bump2version * Add changelog Contributing updates (readthedocs#1478) * Add reminder to pull from remote * Sign git tags :menuselection: style (readthedocs#1426) * Adds a bit of basic styling for `:menuselection:` * Rebuild CSS * Remove docs demo, there was one already exactly below :) * Make menuselection color same as guilabel * Update assets for readthedocs#1426 Remove version logic on sphinxcontrib-jquery, require >=4,<5 (readthedocs#1446) * Remove version logic on sphinxcontrib-jquery, require >=4,<5 * Bump to Sphinx 6.1.x * Remove testing for Sphinx 1.7, sphinxcontrib-jquery 4.x blocks it Release 1.2.2 (readthedocs#1484) * Changelog for 1.2.2 * 1.2.2rc1 * Build: Fix bug that reads out container id from previous run * Update package-lock to match release * Bump to 1.2.2 final Add Sphinx 7 support (readthedocs#1464) * Allow Sphinx 7 * Also build theme docs with Sphinx 7 * Add more tests cases on tox.ini * Increase the Sphinx version for the docs --------- Co-authored-by: Manuel Kaufmann <[email protected]> Release 1.3.0rc1 (readthedocs#1494) * Release 1.3.0rc1 * Update lock file 1.3.0rc2 (readthedocs#1495) The repo is normally bumped to the next up potential release so it doesn't conflict with the current release. Release 1.3.0 (readthedocs#1509) Bump the RC to final
1 parent e3b5ee8 commit 5d45096

Some content is hidden

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

85 files changed

+2824
-1444
lines changed

.circleci/config.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: 2.1
22

3+
orbs:
4+
node: circleci/[email protected]
5+
36
commands:
47
run-tox:
58
description: "Run tox"
@@ -8,15 +11,17 @@ commands:
811
type: string
912
sphinx-version:
1013
type: string
11-
default: "16,17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,latest"
14+
default: "18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,latest"
1215
steps:
1316
- checkout
14-
- run: pip install --user tox
17+
- run: pip install --user tox~=3.27
1518
- run: tox -e "<<parameters.version>>-sphinx{<<parameters.sphinx-version>>}"
1619
run-build:
1720
description: "Ensure built assets are up to date"
1821
steps:
1922
- checkout
23+
- node/install:
24+
node-version: '14.20'
2025
- run: npm ci
2126
- run: npm run build
2227
- run:
@@ -41,6 +46,7 @@ jobs:
4146
steps:
4247
- run-tox:
4348
version: py27
49+
sphinx-version: "17,18"
4450
py36:
4551
docker:
4652
- image: 'cimg/python:3.6'
@@ -59,18 +65,40 @@ jobs:
5965
steps:
6066
- run-tox:
6167
version: py38
68+
sphinx-version: "18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,60,latest"
6269
py39:
6370
docker:
6471
- image: 'cimg/python:3.9'
6572
steps:
6673
- run-tox:
6774
version: py39
75+
sphinx-version: "18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,60,latest"
76+
py310:
77+
docker:
78+
- image: 'cimg/python:3.10'
79+
steps:
80+
- run-tox:
81+
version: py310
82+
sphinx-version: "42,43,44,45,50,51,52,53,60,latest"
83+
py311:
84+
docker:
85+
- image: 'cimg/python:3.11'
86+
steps:
87+
- run-tox:
88+
version: py311
89+
sphinx-version: "53,60,latest"
6890

6991
workflows:
7092
version: 2
7193
tests:
7294
jobs:
7395
- build
96+
- py311:
97+
requires:
98+
- build
99+
- py310:
100+
requires:
101+
- build
74102
- py39:
75103
requires:
76104
- build

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ sphinx_rtd_theme/static/fonts/Lato/
2121
sphinx_rtd_theme/static/fonts/RobotoSlab/
2222
.python-version
2323
.node-version
24+
.tool-versions
25+
.nvmrc
2426
sphinx_rtd_theme/static/js/html5shiv.min.js
2527
sphinx_rtd_theme/static/js/html5shiv-printshiv.min.js
26-
.nvmrc
28+
.direnv/
29+
.envrc
30+
# Used for dockerized builds
31+
.container_id

.tx/config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[sphinx-rtd-theme.sphinx-rtd-theme]
22
file_filter = sphinx_rtd_theme/locale/<lang>/LC_MESSAGES/sphinx.po
3+
minimum_perc = 60
34
source_file = sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po
45
source_lang = en
5-
minimum_perc = 60
66

77
[main]
88
host = https://www.transifex.com
99
type = PO
10+

Dockerfile

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# This implicitely includes Python 3.10
2+
FROM node:14-alpine
3+
4+
# Do not use --update since that will also fetch the
5+
# latest node-current package
6+
# 'make' is needed for building documentation
7+
RUN apk add npm make py3-pip py3-wheel
8+
9+
# Add an extra verification that we have the right node
10+
# because the above caused issues
11+
RUN node -v && node -v | grep -q v14 &&\
12+
python3 --version && python3 --version | grep -q "3.10"
13+
14+
RUN pip install pip --upgrade
15+
16+
RUN mkdir -p /project/src/ &&\
17+
mkdir -p /project/docs/build/ &&\
18+
mkdir -p /project-minimal-copy/sphinx_rtd_theme &&\
19+
touch /project-minimal-copy/sphinx_rtd_theme/__init__.py
20+
21+
# This is the main working directory where node_modules
22+
# gets built. During runtime, it's mixed with directories
23+
# from an external environment through a bind mount
24+
WORKDIR /project
25+
26+
# Copy files necessary to run "npm install" and save
27+
# installed packages in the docker image (makes the runtime
28+
# so much faster)
29+
COPY package.json /project/
30+
COPY bin/preinstall.js /project/bin/preinstall.js
31+
32+
RUN cd /project
33+
34+
# It matters that the node environment is installed into the same
35+
# folder, i.e. /project where we will run the environment from
36+
# TODO: We don't want to update package-lock.json here, we
37+
# should use npm ci instead
38+
RUN npm install --package-lock-only &&\
39+
npm audit fix &&\
40+
npm install
41+
42+
# This is strictly speaking not necessary, just makes
43+
# running the container faster...
44+
# Install dependencies, then uninstall project itself
45+
COPY setup.py README.rst /project-minimal-copy/
46+
RUN cd /project-minimal-copy &&\
47+
pip install ".[dev]" &&\
48+
/usr/bin/yes | pip uninstall sphinx_rtd_theme
49+
50+
51+
# Copy in files that we need to run the project. These files
52+
# will not be mounted into the runtime from external environment
53+
# so we copy them during build.
54+
COPY webpack.common.js webpack.dev.js webpack.prod.js /project/
55+
56+
# Copy in the entrypoint and we're done
57+
COPY docker-entrypoint.sh /entrypoint.sh
58+
RUN chmod +x /entrypoint.sh
59+
60+
ENTRYPOINT ["/entrypoint.sh"]

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
SHELL := /bin/bash
2+
CWD := $(shell cd -P -- '$(shell dirname -- "$0")' && pwd -P)
3+
4+
docker-images:
5+
docker-compose build
6+
7+
docker-npm-build:
8+
rm -f .container_id
9+
docker-compose run -d sphinx_rtd_theme build > .container_id
10+
sleep 1s
11+
docker container wait "$(shell cat .container_id)"
12+
docker cp "$(shell cat .container_id):/project/sphinx_rtd_theme" .
13+
docker cp "$(shell cat .container_id):/project/package-lock.json" .
14+
@echo "Done building"
15+
16+
docker-npm-dev:
17+
docker-compose run sphinx_rtd_theme dev
18+
19+
docker-build-all: docker-images docker-npm-build

docker-compose.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: "3.2"
2+
services:
3+
4+
sphinx_rtd_theme:
5+
build: .
6+
volumes:
7+
- type: "bind"
8+
source: "./"
9+
target: "/project-readonly"
10+
read_only: true
11+
- type: "volume"
12+
target: "/project-readonly/sphinx_rtd_theme.egg-info"
13+
- type: "bind"
14+
source: "./src"
15+
target: "/project/src"
16+
read_only: true
17+
- type: "bind"
18+
source: "./docs"
19+
target: "/project/docs"
20+
read_only: false #todo: fix this
21+
- type: "volume"
22+
target: "/project/docs/_build"
23+
24+
network_mode: host
25+
ports:
26+
- "1919:1919"

docker-entrypoint.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
# Update latest Python dependencies in case they have changed
4+
# Notice that we are using the 'eager' strategy
5+
# This should only be relevant to development environments where
6+
# the theme is being used. For purposes of "production" or
7+
# building the sdist/wheel, installing dependencies should not
8+
# affect the outcome.
9+
cd /project-readonly
10+
pip install --upgrade --upgrade-strategy eager -e ".[dev]"
11+
12+
# This helps a potential permission issue, but might be removed
13+
# pending some more investigation of docker host file system
14+
# permissions in the bind mount
15+
# npm cache clean --force
16+
# npm install
17+
18+
cd /project
19+
20+
# TODO: This is a bad approach, it copies from the image which
21+
# may be outdated to the current git tree
22+
cp -r /project-readonly/sphinx_rtd_theme .
23+
24+
echo "Going to invoke: npm run $@"
25+
npm run $@

docs/changelog.rst

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,147 @@
22
Changelog
33
*********
44

5+
.. seealso:: :ref:`howto_upgrade`
6+
7+
.. |theme_version| replace:: 1.3.0
8+
9+
.. _release-1.3.0:
10+
11+
1.3.0
12+
=====
13+
14+
Added
15+
-----
16+
17+
* Relaxed requirements to include Sphinx release ``7.0``
18+
19+
.. _release-1.2.2:
20+
21+
1.2.2
22+
=====
23+
24+
Fixes
25+
-----
26+
27+
* Require `sphinxcontrib-jquery>=4,<5` (#1446)
28+
29+
Added
30+
-----
31+
32+
* Styling for `:menuselection:` (#1426)
33+
34+
35+
.. _release-1.2.1:
36+
37+
1.2.1
38+
=====
39+
40+
Fixes
41+
-----
42+
43+
* Load jQuery correctly when using latest sphinxcontrib-jquery release (#1448)
44+
45+
46+
.. _release-1.2.0:
47+
48+
1.2.0
49+
=====
50+
51+
Dependency changes
52+
------------------
53+
54+
* docutils 0.18 is supported. (#1381)
55+
* Sphinx 6 support added
56+
* Added ``sphinxcontrib-jquery`` as a dependency (#1385 #1421)
57+
* Python 3.11 is officially supported and tested. (#1395)
58+
* Python 3.4 and 3.5 are officially not supported (#1395)
59+
60+
Changes
61+
-------
62+
63+
* Automatically use ``sphinxcontrib-jquery`` in Sphinx 6+ (#1399)
64+
* Use new context vars ``logo_url``, ``favicon_url`` and ``root_doc`` when available (#1405)
65+
* Translations updated: French, Hungarian, Croatian
66+
* Translations added: Danish, Chinese (Taiwan)
67+
68+
Note for users of Sphinx<4
69+
--------------------------
70+
71+
If you cannot use a more recent Sphinx release,
72+
you should at least ensure you are using the most recent release for your major version.
73+
Currently, these are Sphinx `1.8.6` and `2.4.5`.
74+
Older releases may install unsupported versions of several dependencies, including Jinja2 and docutils.
75+
76+
Known issues
77+
------------
78+
79+
In some cases, jQuery is not loaded with Sphinx 6 on Read the Docs.
80+
Workaround: You need to add ``sphinx_rtd_theme`` to ``extensions`` in your ``conf.py``.
81+
See `readthedocs.org issue #9654`_ for updates.
82+
83+
.. _readthedocs.org issue #9654: https://github.com/readthedocs/readthedocs.org/pull/9654
84+
85+
86+
.. _release-1.1.1:
87+
88+
1.1.1
89+
=====
90+
91+
Fixes
92+
-----
93+
94+
* Fix wrapping bug on cross references (#1368)
95+
96+
.. _release-1.1.0:
97+
98+
1.1.0
99+
=====
100+
101+
Dependency Changes
102+
------------------
103+
104+
Many documentation projects depend on ``sphinx-rtd-theme`` without specifying a version of the theme (unpinned) while also depending on unpinned versions of Sphinx. The latest version of ``sphinx-rtd-theme`` ideally always supports the latest version of Sphinx, but this is now guaranteed.
105+
106+
This release adds upper bounds to direct dependencies ``Sphinx`` and ``docutils`` which will safeguard from mixing with possibly incompatible future versions of Sphinx & docutils.
107+
108+
* Sphinx versions supported: 1.6 to 5.2.x
109+
* ``Sphinx<6`` (#1332)
110+
* ``docutils<0.18`` (unchanged, but will be bumped in an upcoming release)
111+
112+
113+
Features
114+
--------
115+
116+
* Nicer styles for <kbd> (#967)
117+
* New styling for breadcrumbs (#1073)
118+
119+
120+
Fixes
121+
-----
122+
123+
* Suffixes in Sphinx version caused build errors (#1345)
124+
* Table cells with multiple paragraphs gets wrong formatting (#289)
125+
* Definition lists rendered wrongly in api docs (#1052)
126+
* Citation not styled properly (#1078)
127+
* Long URLs did not wrap (#1193)
128+
129+
130+
Minor Changes
131+
-------------
132+
133+
* Sphinx 5.2 added to test matrix (#1348)
134+
* Python 3.10 added to test matrix (#1334)
135+
* Supplemental Docker setup for development (#1319)
136+
* Most of setup.py migrated to setup.cfg (#1116)
137+
* Jinja2 context variable ``sphinx_version_info`` is now ``(major, minor, -1)``, the patch component is always ``-1``. Reason: It's complicated. (#1345)
138+
139+
140+
Incompatible Changes
141+
--------------------
142+
143+
There are no known incompatible changes in this release. Support for ``docutils`` versions 0.18 and 0.19 are scheduled for our next release.
144+
145+
5146
.. _release-1.0.0:
6147

7148
1.0.0

0 commit comments

Comments
 (0)