Merge branch 'master' into search-noindex
# Conflicts: # sphinx/search/__init__.py
32
.flake8
@@ -1,32 +0,0 @@
|
||||
[flake8]
|
||||
max-line-length = 95
|
||||
ignore =
|
||||
E116,
|
||||
E241,
|
||||
E251,
|
||||
E741,
|
||||
W503,
|
||||
W504,
|
||||
I101,
|
||||
SIM102,
|
||||
SIM103,
|
||||
SIM105,
|
||||
SIM114,
|
||||
SIM115,
|
||||
SIM117,
|
||||
SIM223,
|
||||
SIM401,
|
||||
SIM907,
|
||||
SIM910,
|
||||
exclude =
|
||||
.git,
|
||||
.tox,
|
||||
.venv,
|
||||
tests/roots/*,
|
||||
build/*,
|
||||
doc/_build/*,
|
||||
sphinx/search/*,
|
||||
doc/usage/extensions/example*.py,
|
||||
per-file-ignores =
|
||||
tests/*: E501
|
||||
sphinx/util/jsdump.py: SIM905
|
||||
299
.git-blame-ignore-revs
Normal file
@@ -0,0 +1,299 @@
|
||||
# .git-blame-ignore-revs
|
||||
# Commits listed in this file are ignored by default in GitHub's interactive
|
||||
# 'blame' view (e.g. https://github.com/sphinx-doc/sphinx/blame/master/README.rst).
|
||||
# Lines beginning with a '#' character are ignored, and may be used as comments.
|
||||
|
||||
# Commits should be listed as one unabbreviated SHA-1 per line, with an
|
||||
# explanatory comment above the entry. Maintain graph ordering, with later
|
||||
# commits listed after earlier commits in this file.
|
||||
|
||||
# For more details, see https://git-scm.com/docs/git-blame
|
||||
# git blame --ignore-revs-file .git-blame-ignore-revs
|
||||
# git config blame.ignoreRevsFile .git-blame-ignore-revs
|
||||
|
||||
|
||||
# 2008 copyright year update
|
||||
db0bbcb136c90beffabf04da959ff5a8386ba7e5
|
||||
|
||||
|
||||
# Switch copyright and licence fields style
|
||||
0b28b3e6f6666383c2eb497972328af8e6fc5fef
|
||||
|
||||
|
||||
# 2009 copyright year update
|
||||
5df8e162f9b2740ac2b74fa15bc3c0be8b56a02b
|
||||
|
||||
|
||||
# 2010 copyright year update
|
||||
f6a56192d150091e10bc8726d68e0632f395ee54
|
||||
38e120848fe3c0462e880c0c635f964fad2c3720
|
||||
|
||||
|
||||
# Add copyright headers to theme files
|
||||
f81f8d93d13d07d1e409f8a21e5602f0ad7d034c
|
||||
|
||||
|
||||
# 2011 copyright year update
|
||||
0e1db6ad90a272ff7e5cf86039df905ae91ac4df
|
||||
|
||||
|
||||
# 2013 copyright year update
|
||||
151856819c212229f6f58a8a2cbf9223a4191f94
|
||||
52515eeb8622fb484132df55a95dcb4acdacd6a2
|
||||
|
||||
|
||||
# 2014 copyright year update
|
||||
e0300313215fb55d24aa5bda1b68eedd798310b6
|
||||
b5430045ae56dc8a9d53a94a3473cd682720bfde
|
||||
|
||||
|
||||
# 2015 copyright year update
|
||||
567d52f199d74a9ec84c491b5d7c9a4555912db0
|
||||
d79bedb69a790640fafdc43ab47104f0c0be98b7
|
||||
|
||||
|
||||
# 2016 copyright year update
|
||||
46d7e8558e49f9b314ff77dbbe3ca6d2691c5895
|
||||
6b7b51a55aa0dc419d9fd8dae17bbec197bd2724
|
||||
|
||||
|
||||
# 2017 copyright year update
|
||||
c57e47e0424be5d742ee6d5daf913274c6da069f
|
||||
bf3f9ef3ecc94067a2f9b17f2c863e723cf3e7af
|
||||
|
||||
|
||||
# 2018 copyright year update
|
||||
2426cedb8b12b7a59270e55f2f26d63d0014a28f
|
||||
5562e76585611928ad8628cb9a40a0eb2b3d87fe
|
||||
|
||||
|
||||
# Insert 'from sphinx.util.typing import unicode'
|
||||
3c99d0060557bb33a482f3fe74c1b665fb3de010
|
||||
|
||||
|
||||
# Replace all occurrences of 'unicode' with 'str'
|
||||
6bc357140dbb074eb0d590c1226009f83f97862e
|
||||
|
||||
|
||||
# Remove encoding attribute from Python files
|
||||
bade33c7e490655c3f5b46d374129294f70449aa
|
||||
|
||||
|
||||
# 2019 copyright year update
|
||||
1b1ebd2c7539ebf6a1dfa1ea247e659f98fa9eaf
|
||||
da3075d0b7474846a3f86c1ddd272d9640982e02
|
||||
|
||||
|
||||
# Use PEP 484 style type annotations (function annotations)
|
||||
afbf6d811dd4fc514d63e9dc3d6bee78d97b8a0c
|
||||
850bfa07d278fca79965c0fc5c44116e36062ffc
|
||||
ba8bf2c2cec2dbbabc5c742677ff02f45c894047
|
||||
3be478f0b51d47694ad31aabd1c6204b4d34df68
|
||||
316c61b172a8f756ca219c5f9c54ff29ef6cd782
|
||||
1fc0985df73ee31f836bcece622e89c36b45254f
|
||||
20f2845e218ffee6461868a4c92f0ccd98f6b3ba
|
||||
d9469c08ed02634df11cf9dc7a3df3e512cedb8b
|
||||
d59e362f5f7d1df333ad6c3b1c24fabd000230cc
|
||||
47d9035bca9e83d6db30a0726a02dc9265bd66b1
|
||||
24f8a3caf03ee2c11a1746413d68a572cb59f23e
|
||||
f3e45e485e9caefb9099e0598549b73231401264
|
||||
39c7ee955b71745d2503f61b5ba488345e1b38a4
|
||||
dd4741c352ab45e28c9b0c4fbd2d366d224be503
|
||||
086eac39148af091905d0f81bb484c72055c3c0e
|
||||
2900179436580a53fcf0a9b2b15e31ef8e259979
|
||||
b5276b3965388e7b7264a42d1a442b8c734b1877
|
||||
5115fb0172c3ae42f326ed7c50e2aa10917dfb94
|
||||
9ba216223a3b7d6d0888e4588709d3923557f096
|
||||
17e26bf29fa6d8f2f40b9da47b1131c30680cd80
|
||||
a3c9edfbe6d50b486ea28876e47b7d6e27379916
|
||||
073b92d45a59eb5065d304fbaf0fc2d2ff88c5e8
|
||||
1e70267cc8a3a31dbadea4e72971bec4c60cb255
|
||||
8aa04eb85537e6607718fad35b70758747258248
|
||||
086e46bdf212063e5cde6964ab02a24d6f6fe5fc
|
||||
09d8526ee772f10cd04eb579a8b40e540a99fdc5
|
||||
1659cc264cb0311bb546673c7c5a4749a2915de9
|
||||
ffe5e129c3bcb4a0ecd80e5863c92d94910ecffd
|
||||
d141fbf054cf3885538820363460e9e729e3cef0
|
||||
60b1cec446ef184adc91bdaaca93980c49312ba7
|
||||
9c5b26756a79ae9bbbe6bf385019687494a85649
|
||||
3f5ce569b63163ca4b69aba72ac5cdd445a67dd0
|
||||
e14c76d94228bf01102417317b1c1613b7cebc86
|
||||
4db7a815289964dc4caab065e326b52ad2ec2144
|
||||
acab4029afe8b3ecafa4a5c7e5f6b51482349cd8
|
||||
cc3022b7f059333c0892f0c37a28db19a5e26e8d
|
||||
ec2c8f7194d1089534dab058d059bdc7baac2417
|
||||
f9a74b08f9636284f7692fd8f865dbf387c18daf
|
||||
f442de643bbf3f2df45578dff665b8f80b980ac4
|
||||
dbceb69b43fd5b88259a8ab2839167b3db30e086
|
||||
436bc15d09c178b70ce404380bd834c6b93bc8dd
|
||||
a2a5bf98df13f55420794f26f0e468cd9c01dc5b
|
||||
ccdad403c8f7df3669516c140f3fbbd8dd09dda5
|
||||
1ab5e279f8a60865e31194d91bb021eeca02c31c
|
||||
bedab2983244b423fef7f28dec06673aec2f0262
|
||||
18924f991d6cc169830e76451126d982415643b1
|
||||
f8ddc44c503b8285ec79cc2450caaa67bf487928
|
||||
89e9f199b421752e81be6829ebebd6df49a177cc
|
||||
dd5f968bfaa80169359ddfaf2f07e9cde9a6f7a5
|
||||
9a085794a2e13effeebacfeaa443221bfb5125e0
|
||||
5716aa7a74b114f56619547b5ab8155c380a4696
|
||||
13bd831110390c4bbd5248a376291379edbd26e9
|
||||
7f2e9cebf95cb4d300ffb9bc7de8e40691647406
|
||||
4488815dca86afe623049539dc5d1aaf4e2c428e
|
||||
1d371c2cebe4cc598918691aa19043236dd43eef
|
||||
7609e67d19ba000b7a01729e543cd0dc6b08d08e
|
||||
320661ee945bb74ce1433f710f5da6728416bd2b
|
||||
62e5f6935b85db66113c23491a3cf261d7af4ef4
|
||||
6c47f7d4a2ff5cbd26d632e2dfc5e426f6500341
|
||||
3a81e0ad7d4f2db4326fbb3f8346a08fa3e09051
|
||||
ee6e44a04f40c7f88d6cb9624068c352de8149db
|
||||
f6d0cb8f3ad5a29e5e5c4f0c85f5736904291703
|
||||
f5620910fcad6ff7db708d809a7a8e1f1961fe90
|
||||
1b597dc4509b393cf7b0107738beb9ee8c440a1d
|
||||
b93672c4d45f0574e144966d1b4b92a96beb3abb
|
||||
fdc2bee7d35c41098e924070ee38b3538ed51ab8
|
||||
5cc5c53435bd933cf93d09700324e8b808eee39e
|
||||
9148b6e653fd416e185fa2a1d5c91df279999831
|
||||
0c721434a02958334d0b71396ab73b09a021a6f2
|
||||
462902aea649ecb6b953651552a1f44f58844e18
|
||||
30ddf70742941bf22f78930fd9e25e6b0271e92c
|
||||
c0b267b5a61a06e80b344ecf925f4b049d93c7bf
|
||||
ad81d788f9f6276cf26f46fcc9c9d3b275506e4b
|
||||
22fd569f9b5d28ce42a157ba8fa2ba1c5af0b09e
|
||||
728bf8c9d892057197393f62f4ec4a7a029ad20f
|
||||
d057c5e6d7c1f0836db14c5546990c6f370972bf
|
||||
e67f5db2969d3fe14ade5b30e9081ff1ce9adf16
|
||||
8c946570dc6227c70b690a33320916cb7f9dae9e
|
||||
d57e338510d10e3685324f3029b15ab41a3817c0
|
||||
4ba85181177e732b032486324cc64a0f3bc1ac3d
|
||||
eb07a0fee19a0a3e205755c7923e40a56a7a28db
|
||||
0832291883a793fb3e025a18eae505bb7182ffab
|
||||
3a74ef89b3b386daacd4dfa0752536b3ad9aa402
|
||||
dd9d02007c5f2dbeb2a294391b035ff445bae9eb
|
||||
c270efccd7da379895541b6e302c78990b943b2f
|
||||
0a98664866053312b1aef539f98c656fb5a7e65f
|
||||
f0579fcd4a6a5380b896e8baac346a7b98dd70ca
|
||||
e3eb0cc95d64afa3939ad37b1fc95fa24d06a32a
|
||||
f82d6c429b6379663b71cba783e780535d73343b
|
||||
dcff6d7cbceea55f681284c327b24169f4285ae2
|
||||
31f93f38dc631b7192ab2dcecc151714835b714d
|
||||
6a9b6d20dc7aa7ff5710c0d9e10c38953106e489
|
||||
389195632473153bb0b0d4b35cb70da059235bd8
|
||||
c68664ae70dcdbdb20a782001fefd0f09f2206a5
|
||||
7806a92e3dcca1231c654c7417d441db98844510
|
||||
39ec5e0debecf2f5d06bfb8548f2045cce101639
|
||||
0cad96233b8b6e6e821183cf28f476ed6f53836e
|
||||
17c719c8de872cc9747040f886e81086641b8cce
|
||||
f076afd920b0b36d63608a63fae72f484d4bd65e
|
||||
be673a714db80d3596f811ccf5421d5653cbe559
|
||||
66b123a9a71dba0b8f26fe85ec218e7fe32dcfa3
|
||||
58847682ccd91762608f3a5a023b244675e8470b
|
||||
d0fedc3a4b9f50af53e9f930fdd50deee213a12c
|
||||
e67e0432b55efc4bcf0bc8794b6a7689714ab72b
|
||||
986ac82adff9a700e9549d250f3a1077997ba388
|
||||
2623ad17f5c1418892966d30897ec3a3c30b12cc
|
||||
bd578b7ab6c52c28f14875f51cab9511b63b23f1
|
||||
80e3fdb791cf3f610b4c0fc3e27ac37498a8448a
|
||||
32fa96d46d7383c83128f516d684bfaa8a54f821
|
||||
05f75b7c9427c0354f63639178676da0d67f938f
|
||||
3f6565df6323534e69d797003d8cb20e99c2c255
|
||||
1c6a279fa81f27bcc469f988bcc20323e120e295
|
||||
9a72c800f6b6f43bc7a2f01821eedb2445474a04
|
||||
561c7853702f00a2480f211d6310a544f996a8b4
|
||||
351644024cb12f4f4868396599acf2fd0c743143
|
||||
1dbd8802f140a036bc203486e00086cdd0c42cee
|
||||
f078d8264704513ca981d812b1ea3da415502300
|
||||
e505b812a243f79885a276589ee66437c41c6698
|
||||
02c2c5076bb72858d90bfe19bd10e93f258a94a6
|
||||
823a947bbf2a4bf63558cf0a4ed42056f5da3166
|
||||
ede4182c5202899231b47094112022fca0cddb3d
|
||||
d9def518723fa76428b0f1ec19f50b4a4004c7b3
|
||||
5466906c7b1ed24f0c138803fd141c5b9f995e6f
|
||||
ab1369a837c0e0868928c9c71fb00b0d2b64b075
|
||||
a7f86954a8dab604242616974cac3bfa5f0019a3
|
||||
67c133aa77c73f8090d63317138669b27397535e
|
||||
f7425c9c3ee3efdf942febad90cde267ef5e7eae
|
||||
4ec7fdf24b2c51bf6c3b22979b30829f4d3b910a
|
||||
0573b87c9feafbe9687bc0966180e5a459700a4f
|
||||
7f5acbdf1f34ec8ec8e1c5f69f720b43d4577509
|
||||
16d4ee2582155bddeaea29ef7d28e4b1dcd3b846
|
||||
55fff64fbec32e919656f2d0b4d1baf4ee6e981c
|
||||
42a02b76e87254e1bc56b7443dd6a314b62ea52a
|
||||
e6094d0aca3fc5fadfaffa7f4a638aaf87785300
|
||||
4b8937ab29e6750974e34cb0ec0265d62c5894e2
|
||||
0a1d9e2b491623a198068b3983b1cb37dd88ec41
|
||||
0d67436c908970edf44ec146aa793a2dc79ecf0d
|
||||
49f36a67e8c2c4fa96647225975524ea70f7f72e
|
||||
337780c89f1ed1712ce567ef1db2d10eae4c94b0
|
||||
6bde6b2bae8ef6109d068bf9c0d8b27551540d8c
|
||||
1124052f9204fb4a8b867687bc9efc5fb2f3f8f5
|
||||
1734844e7c0e08475da28c41f13e9d581cb6e3e3
|
||||
562fc581d1f6297d09e4cb9f0c9e1ee61e29d29d
|
||||
fb09f3463b38c1e5c80aa7eace515b52a25b2a78
|
||||
723e81c6636afdd6f1ea10f151630160c0a3860f
|
||||
12a61edd46e87b59f2b50e2524b1a393b8a9ce2a
|
||||
ea68fd540705a0efcaa5672a02bffaf48fe250b4
|
||||
83bf8451da70c1d1987ef9d864ee028364a25311
|
||||
|
||||
|
||||
# 2020 copyright year update
|
||||
fc523c3ccff5b2227efe4391a68dae7a5b973971
|
||||
eaf495c3c42c322fcf774a4c2cf6c7e2d11e2647
|
||||
e7db75dbb16a15f03c74629e8b0f7c6ef3eed2f0
|
||||
9b38e8746835c677f60296617fcd651880efadac
|
||||
2049527f03024970855ea3b3c1b10a5de8c462c2
|
||||
|
||||
|
||||
# 2021 copyright year update
|
||||
f9968594206e538f13fa1c27c065027f10d4ea27
|
||||
|
||||
|
||||
# Use PEP 526 style type annotations (variable annotations)
|
||||
6976c051ee1a356950ea0641fdebdfed51d10799
|
||||
dd24a4ef2dd6d72208469a03a7c5833340efb7b6
|
||||
aeb9e42d2be2b697879120b18a6380edf934e80b
|
||||
1d4c414319598320f95eed245e4a2f9ad3e5a668
|
||||
035019629a8d67f83b1556f7d0ba06ea55f7a284
|
||||
555a52be82be3578470179f9047ed6abb943057e
|
||||
7e6ea15b68960d809d742c18e0e9baa63a7d0d4c
|
||||
000ae2e5000da9b9593560270398d8662f1e496d
|
||||
b9f0582f06a8fe1b042333b9e8eb3cd575f1db2c
|
||||
94dc1d78a44f40c497e0126ecb70a172615baa11
|
||||
eb68c237dddbceecb7a295642e51e4ac8a5b36c2
|
||||
|
||||
|
||||
# 2022 copyright year update
|
||||
b84771dcd2fe1543acbdf87af3b60b323f41e80b
|
||||
e023d1082d574d422ce50a8a99c8c012d6a21f92
|
||||
|
||||
|
||||
# Remove docstring titles and copyright & licence fields
|
||||
6b8bccec5977f608f0b1e33f31a4888a2ea0d141
|
||||
4f5a3269a6053fe659093096d9b635a2c8e7e55e
|
||||
5694e0ce60316b9cb9709d147e1a699ea9bde6da
|
||||
6bb7b891a16fbcd5fad1f88fb472505549b9c084
|
||||
5775912455c25ee82734e1ff319a32f55946d79b
|
||||
f05a068be980b7f237135596c9414e4737052681
|
||||
|
||||
|
||||
# 2023 copyright year update
|
||||
a1c10f5d5e9734c6722d04b0b0781a5d88860745
|
||||
|
||||
|
||||
# Insert 'from __future__ import annotations'
|
||||
f4c8a0a68e0013808d169357c9f77ebdf19d0f4e
|
||||
|
||||
|
||||
# Use PEP 585 style type annotations (parameterised generics)
|
||||
26f79b0d2dd88b353ac65623897bdfbe8bc07cab
|
||||
|
||||
|
||||
# Use PEP 604 style type annotations ('X | Y' union types)
|
||||
14a9289d780240bbce78ad3640e8e1b1b12df43f
|
||||
|
||||
|
||||
# Change 'isort' profile
|
||||
a13cf2c24dd16b37670ee1d359f511cbdfa4402d
|
||||
|
||||
|
||||
# 2024 copyright year update
|
||||
569fde84d49c984282355c768c16426af83132e2
|
||||
65
.gitattributes
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
# Binary data types
|
||||
*.gif binary
|
||||
*.jpg binary
|
||||
*.mo binary
|
||||
*.pdf binary
|
||||
*.png binary
|
||||
*.zip binary
|
||||
|
||||
# Unix-style line endings
|
||||
[attr]unix text eol=lf
|
||||
|
||||
*.conf unix
|
||||
*.css unix
|
||||
*.cls unix
|
||||
*.csv unix
|
||||
*.dot unix
|
||||
*.html unix
|
||||
*.inc unix
|
||||
*.ini unix
|
||||
*.jinja unix
|
||||
*.js unix
|
||||
*.md unix
|
||||
*.mjs unix
|
||||
*.py unix
|
||||
*.rst unix
|
||||
*.sty unix
|
||||
*.tex unix
|
||||
*.toml unix
|
||||
*.txt unix
|
||||
*.svg unix
|
||||
*.xml unix
|
||||
*.yml unix
|
||||
|
||||
# CRLF files
|
||||
[attr]dos text eol=crlf
|
||||
|
||||
*.bat dos
|
||||
*.bat.jinja dos
|
||||
*.stp dos
|
||||
tests/roots/test-pycode/cp_1251_coded.py dos
|
||||
|
||||
# Language aware diff headers
|
||||
*.c diff=cpp
|
||||
*.h diff=cpp
|
||||
*.css diff=css
|
||||
*.html diff=html
|
||||
*.md diff=markdown
|
||||
*.py diff=python
|
||||
# *.rst diff=reStructuredText
|
||||
*.tex diff=tex
|
||||
|
||||
# Non UTF-8 encodings
|
||||
tests/roots/test-pycode/cp_1251_coded.py working-tree-encoding=windows-1251
|
||||
|
||||
# Generated files
|
||||
# https://github.com/github/linguist/blob/master/docs/overrides.md
|
||||
#
|
||||
# To always hide generated files in local diffs, mark them as binary:
|
||||
# $ git config diff.generated.binary true
|
||||
#
|
||||
[attr]generated linguist-generated=true diff=generated
|
||||
|
||||
tests/js/fixtures/**/*.js generated
|
||||
sphinx/search/minified-js/*.js generated
|
||||
sphinx/themes/bizstyle/static/css3-mediaqueries.js generated
|
||||
2
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
@@ -1,6 +1,6 @@
|
||||
name: Bug report
|
||||
description: Something is not working correctly.
|
||||
labels: "bug"
|
||||
labels: "type:bug"
|
||||
|
||||
body:
|
||||
- type: textarea
|
||||
|
||||
4
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -5,5 +5,5 @@ contact_links:
|
||||
url: https://stackoverflow.com/questions/tagged/python-sphinx
|
||||
about: For Q&A purpose, please use Stackoverflow with the tag python-sphinx
|
||||
- name: Discussion
|
||||
url: https://groups.google.com/forum/#!forum/sphinx-users
|
||||
about: For general discussion, please use sphinx-users mailing list.
|
||||
url: https://github.com/sphinx-doc/sphinx/discussions
|
||||
about: For general discussion, please use GitHub Discussions.
|
||||
|
||||
2
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -2,7 +2,7 @@
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: '<short description for the feature>'
|
||||
labels: 'enhancement'
|
||||
labels: 'type:proposal'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
42
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,19 +1,33 @@
|
||||
Subject: <short purpose of this pull request>
|
||||
<!--
|
||||
Thank you for creating this pull request and for spending time to help Sphinx!
|
||||
Our contributors' guide can be found online: https://www.sphinx-doc.org/en/master/internals/contributing.html
|
||||
Ask any questions at https://github.com/sphinx-doc/sphinx/discussions
|
||||
-->
|
||||
|
||||
### Feature or Bugfix
|
||||
<!-- please choose -->
|
||||
- Feature
|
||||
- Bugfix
|
||||
- Refactoring
|
||||
|
||||
### Purpose
|
||||
- <long purpose of this pull request>
|
||||
- <Environment if this PR depends on>
|
||||
## Purpose
|
||||
|
||||
### Detail
|
||||
- <feature1 or bug1>
|
||||
- <feature2 or bug2>
|
||||
<!--
|
||||
A description of the purpose of this pull request.
|
||||
Ensure that all relevant information is included for reviewers,
|
||||
including any environment-specific details.
|
||||
|
||||
### Relates
|
||||
- <URL or Ticket>
|
||||
* If you plan to add tests or documentation after opening this PR,
|
||||
please note it here.
|
||||
* For user-visible changes, remember to add an entry to CHANGES.rst.
|
||||
* Please add your name to AUTHORS.rst if you haven't already!
|
||||
-->
|
||||
|
||||
|
||||
## References
|
||||
|
||||
<!--
|
||||
Please add any relevant links here, especially including any
|
||||
GitHub issues or Pull Requests that this PR would resolve.
|
||||
This helps to ensure that reviewers have context from
|
||||
previous discussions or decisions.
|
||||
-->
|
||||
|
||||
- <...>
|
||||
- <...>
|
||||
- <...>
|
||||
|
||||
6
.github/dependabot.yml
vendored
@@ -3,4 +3,8 @@ updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
interval: "daily"
|
||||
- package-ecosystem: "pip"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
49
.github/workflows/builddoc.yml
vendored
@@ -1,36 +1,47 @@
|
||||
name: Build document
|
||||
name: Render documentation
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
FORCE_COLOR: "1"
|
||||
UV_SYSTEM_PYTHON: "1" # make uv do global installs
|
||||
|
||||
jobs:
|
||||
build:
|
||||
verbose:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install --no-install-recommends --yes graphviz
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y graphviz
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install .[docs]
|
||||
run: uv pip install .[docs]
|
||||
- name: Render the documentation
|
||||
run: >
|
||||
python
|
||||
-X dev
|
||||
-X warn_default_encoding
|
||||
-m sphinx
|
||||
sphinx-build
|
||||
-M html ./doc ./build/sphinx
|
||||
-W
|
||||
--keep-going
|
||||
--verbose
|
||||
--jobs=auto
|
||||
--show-traceback
|
||||
--fail-on-warning
|
||||
|
||||
40
.github/workflows/coverage.yml
vendored
@@ -1,40 +0,0 @@
|
||||
name: Coverage
|
||||
|
||||
on: [push]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
FORCE_COLOR: "1"
|
||||
|
||||
jobs:
|
||||
coverage:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'sphinx-doc'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3
|
||||
|
||||
- name: Check Python version
|
||||
run: python --version
|
||||
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install graphviz
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install .[test] pytest-cov
|
||||
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv --cov . --cov-append --cov-config pyproject.toml
|
||||
env:
|
||||
VIRTUALENV_SYSTEM_SITE_PACKAGES: "1"
|
||||
|
||||
- name: codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
137
.github/workflows/create-release.yml
vendored
@@ -4,20 +4,145 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
FORCE_COLOR: "1"
|
||||
UV_SYSTEM_PYTHON: "1" # make uv do global installs
|
||||
|
||||
jobs:
|
||||
create-release:
|
||||
publish-pypi:
|
||||
runs-on: ubuntu-latest
|
||||
name: PyPI Release
|
||||
environment: release
|
||||
if: github.repository_owner == 'sphinx-doc'
|
||||
permissions:
|
||||
attestations: write # for actions/attest
|
||||
id-token: write # for PyPI trusted publishing
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
|
||||
- name: Install build dependencies (pypa/build, twine)
|
||||
run: |
|
||||
uv pip install build "twine>=5.1"
|
||||
|
||||
- name: Build distribution
|
||||
run: python -m build
|
||||
|
||||
- name: Check distribution
|
||||
run: |
|
||||
twine check dist/*
|
||||
|
||||
- name: Create Sigstore attestations for built distributions
|
||||
uses: actions/attest@v1
|
||||
id: attest
|
||||
with:
|
||||
subject-path: "dist/*"
|
||||
predicate-type: "https://docs.pypi.org/attestations/publish/v1"
|
||||
predicate: "null"
|
||||
show-summary: "true"
|
||||
|
||||
- name: Convert attestations to PEP 740
|
||||
run: >
|
||||
uv run utils/convert_attestations.py
|
||||
"$BUNDLE_PATH"
|
||||
"$SIGNER_IDENTITY"
|
||||
env:
|
||||
BUNDLE_PATH: "${{ steps.attest.outputs.bundle-path }}"
|
||||
# workflow_ref example: sphinx-doc/sphinx/.github/workflows/create-release.yml@refs/heads/master
|
||||
# this forms the "signer identity" for the attestations
|
||||
SIGNER_IDENTITY: "https://github.com/${{ github.workflow_ref }}"
|
||||
|
||||
- name: Inspect PEP 740 attestations
|
||||
run: |
|
||||
python -m pypi_attestations inspect dist/*.publish.attestation
|
||||
|
||||
- name: Prepare attestation bundles for uploading
|
||||
run: |
|
||||
mkdir -p /tmp/attestation-bundles
|
||||
cp "$BUNDLE_PATH" /tmp/attestation-bundles/
|
||||
cp dist/*.publish.attestation /tmp/attestation-bundles/
|
||||
env:
|
||||
BUNDLE_PATH: "${{ steps.attest.outputs.bundle-path }}"
|
||||
|
||||
- name: Upload attestation bundles
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: attestation-bundles
|
||||
path: /tmp/attestation-bundles/
|
||||
|
||||
- name: Mint PyPI API token
|
||||
id: mint-token
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
# language=JavaScript
|
||||
script: |
|
||||
// retrieve the ambient OIDC token
|
||||
const oidc_request_token = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;
|
||||
const oidc_request_url = process.env.ACTIONS_ID_TOKEN_REQUEST_URL;
|
||||
const oidc_resp = await fetch(`${oidc_request_url}&audience=pypi`, {
|
||||
headers: {Authorization: `bearer ${oidc_request_token}`},
|
||||
});
|
||||
const oidc_token = (await oidc_resp.json()).value;
|
||||
|
||||
// exchange the OIDC token for an API token
|
||||
const mint_resp = await fetch('https://pypi.org/_/oidc/github/mint-token', {
|
||||
method: 'post',
|
||||
body: `{"token": "${oidc_token}"}` ,
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
});
|
||||
const api_token = (await mint_resp.json()).token;
|
||||
|
||||
// mask the newly minted API token, so that we don't accidentally leak it
|
||||
core.setSecret(api_token)
|
||||
core.setOutput('api-token', api_token)
|
||||
|
||||
- name: Upload to PyPI
|
||||
env:
|
||||
TWINE_NON_INTERACTIVE: "true"
|
||||
TWINE_USERNAME: "__token__"
|
||||
TWINE_PASSWORD: "${{ steps.mint-token.outputs.api-token }}"
|
||||
run: |
|
||||
twine upload dist/* --attestations
|
||||
|
||||
github-release:
|
||||
runs-on: ubuntu-latest
|
||||
name: GitHub release
|
||||
environment: release
|
||||
if: github.repository_owner == 'sphinx-doc'
|
||||
permissions:
|
||||
contents: write # for softprops/action-gh-release to create GitHub release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Get release version
|
||||
id: get_version
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: core.setOutput('version', context.ref.replace("refs/tags/v", ""))
|
||||
|
||||
- name: Create GitHub release
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
name: "Sphinx ${{ steps.get_version.outputs.version }}"
|
||||
body: "Changelog: https://www.sphinx-doc.org/en/master/changes.html"
|
||||
|
||||
38
.github/workflows/latex.yml
vendored
@@ -1,38 +0,0 @@
|
||||
name: CI (LaTeX)
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test on LaTeX image
|
||||
container:
|
||||
image: ghcr.io/sphinx-doc/sphinx-ci
|
||||
env:
|
||||
DO_EPUBCHECK: "1"
|
||||
steps:
|
||||
- name: Alias python3 to python
|
||||
run: ln -s /usr/bin/python3 /usr/bin/python
|
||||
- uses: actions/checkout@v3
|
||||
- name: Check Python version
|
||||
run: python --version
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install .[test]
|
||||
- name: Test with pytest
|
||||
run: >
|
||||
python
|
||||
-X dev
|
||||
-X warn_default_encoding
|
||||
-m pytest
|
||||
-vv
|
||||
--color yes
|
||||
--durations 25
|
||||
158
.github/workflows/lint.yml
vendored
@@ -1,125 +1,129 @@
|
||||
name: Lint source code
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
FORCE_COLOR: "1"
|
||||
UV_SYSTEM_PYTHON: "1" # make uv do global installs
|
||||
|
||||
jobs:
|
||||
# If you update any of these commands, don't forget to update the equivalent
|
||||
# tox environment
|
||||
ruff:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3
|
||||
- name: Install pip
|
||||
run: python -m pip install --upgrade pip
|
||||
persist-credentials: false
|
||||
- name: Get Ruff version from pyproject.toml
|
||||
run: |
|
||||
RUFF_VERSION=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
|
||||
echo "RUFF_VERSION=$RUFF_VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Install known good Ruff
|
||||
run: python -m pip install ruff==0.0.260
|
||||
- name: Lint with known good Ruff
|
||||
run: ruff . --diff --format github
|
||||
- name: Install Ruff ${{ env.RUFF_VERSION }}
|
||||
uses: astral-sh/ruff-action@v3
|
||||
with:
|
||||
args: --version
|
||||
version: ${{ env.RUFF_VERSION }}
|
||||
|
||||
- name: Install latest Ruff
|
||||
run: python -m pip install --upgrade ruff
|
||||
- name: Lint with Ruff
|
||||
continue-on-error: true
|
||||
run: ruff . --diff --format github
|
||||
run: ruff check --output-format=github
|
||||
|
||||
flake8:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade "flake8>=3.5.0" "flake8-simplify"
|
||||
- name: Lint with flake8
|
||||
run: flake8 .
|
||||
|
||||
isort:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade isort
|
||||
- name: Lint with isort
|
||||
run: isort --check-only --diff .
|
||||
- name: Format with Ruff
|
||||
run: ruff format --diff
|
||||
|
||||
mypy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade "mypy>=0.990" docutils-stubs types-requests
|
||||
run: uv pip install ".[lint,test]"
|
||||
- name: Type check with mypy
|
||||
run: mypy sphinx/
|
||||
run: mypy
|
||||
|
||||
pyright:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: uv pip install ".[lint,test]"
|
||||
- name: Type check with pyright
|
||||
run: pyright
|
||||
|
||||
docs-lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade sphinx-lint
|
||||
run: uv pip install --upgrade sphinx-lint
|
||||
- name: Lint documentation with sphinx-lint
|
||||
run: >
|
||||
sphinx-lint
|
||||
--enable line-too-long
|
||||
--max-line-length 85
|
||||
CHANGES
|
||||
CONTRIBUTING.rst
|
||||
README.rst
|
||||
doc/
|
||||
run: make doclinter
|
||||
|
||||
twine:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade twine build
|
||||
run: uv pip install --upgrade twine build
|
||||
- name: Lint with twine
|
||||
run: |
|
||||
python -m build .
|
||||
|
||||
58
.github/workflows/lock.yml
vendored
@@ -2,19 +2,57 @@ name: Lock old threads
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Run at midnight daily
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
action:
|
||||
if: github.repository_owner == 'sphinx-doc'
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'sphinx-doc'
|
||||
permissions:
|
||||
# to lock issues and PRs
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: dessant/lock-threads@v3
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
issue-inactive-days: "30"
|
||||
pr-inactive-days: "30"
|
||||
- uses: actions/github-script@v7
|
||||
with:
|
||||
retries: 3
|
||||
# language=JavaScript
|
||||
script: |
|
||||
const _FOUR_WEEKS_MILLISECONDS = 28 * 24 * 60 * 60 * 1000;
|
||||
const _FOUR_WEEKS_DATE = new Date(Date.now() - _FOUR_WEEKS_MILLISECONDS);
|
||||
const FOUR_WEEKS_AGO = `${_FOUR_WEEKS_DATE.toISOString().substring(0, 10)}T00:00:00Z`;
|
||||
const OWNER = context.repo.owner;
|
||||
const REPO = context.repo.repo;
|
||||
|
||||
try {
|
||||
for (const thread_type of ["issue", "pr"]) {
|
||||
core.debug(`Finding ${thread_type}s to lock`);
|
||||
const query = thread_type === "issue"
|
||||
? `repo:${OWNER}/${REPO} updated:<${FOUR_WEEKS_AGO} is:closed is:unlocked is:issue`
|
||||
: `repo:${OWNER}/${REPO} updated:<${FOUR_WEEKS_AGO} is:closed is:unlocked is:pr`;
|
||||
core.debug(`Using query '${query}'`);
|
||||
// https://octokit.github.io/rest.js/v21/#search-issues-and-pull-requests
|
||||
const {data: {items: results}} = await github.rest.search.issuesAndPullRequests({
|
||||
q: query,
|
||||
order: "desc",
|
||||
sort: "updated",
|
||||
per_page: 100,
|
||||
});
|
||||
for (const item of results) {
|
||||
if (item.locked) continue;
|
||||
const thread_num = item.number;
|
||||
core.debug(`Locking #${thread_num} (${thread_type})`);
|
||||
// https://octokit.github.io/rest.js/v21/#issues-lock
|
||||
await github.rest.issues.lock({
|
||||
owner: OWNER,
|
||||
repo: REPO,
|
||||
issue_number: thread_num,
|
||||
lock_reason: "resolved",
|
||||
});
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
core.setFailed(err.message);
|
||||
}
|
||||
|
||||
333
.github/workflows/main.yml
vendored
@@ -1,114 +1,341 @@
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- ".github/workflows/main.yml"
|
||||
- "sphinx/**"
|
||||
- "tests/**"
|
||||
pull_request:
|
||||
paths:
|
||||
- ".github/workflows/main.yml"
|
||||
- "sphinx/**"
|
||||
- "tests/**"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
FORCE_COLOR: "1"
|
||||
PYTHONDEVMODE: "1" # -X dev
|
||||
PYTHONWARNDEFAULTENCODING: "1" # -X warn_default_encoding
|
||||
PYTHONWARNINGS: "error,always:unclosed:ResourceWarning"
|
||||
UV_SYSTEM_PYTHON: "1" # make uv do global installs
|
||||
|
||||
jobs:
|
||||
ubuntu:
|
||||
runs-on: ubuntu-latest
|
||||
name: Python ${{ matrix.python }} (Docutils ${{ matrix.docutils }})
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python:
|
||||
- "3.8"
|
||||
- "3.9"
|
||||
- "3.10"
|
||||
- "3.11"
|
||||
- "3.12-dev"
|
||||
- "3.12"
|
||||
- "3.13"
|
||||
docutils:
|
||||
- "0.18"
|
||||
- "0.19"
|
||||
- "0.20"
|
||||
- "0.21"
|
||||
# include:
|
||||
# # test every supported Docutils version for the latest supported Python
|
||||
# - python: "3.13"
|
||||
# docutils: "0.20"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python ${{ matrix.python }}
|
||||
uses: actions/setup-python@v4
|
||||
if: "!endsWith(matrix.python, '-dev')"
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
- name: Set up Python ${{ matrix.python }} (deadsnakes)
|
||||
uses: deadsnakes/action@v2.1.1
|
||||
if: "endsWith(matrix.python, '-dev')"
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
env:
|
||||
PYTHONWARNINGS: ""
|
||||
- name: Check Python version
|
||||
run: python --version
|
||||
run: python --version --version
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install graphviz
|
||||
run: sudo apt-get install --no-install-recommends --yes graphviz
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: uv pip install .[test]
|
||||
- name: Install Docutils ${{ matrix.docutils }}
|
||||
run: uv pip install --upgrade "docutils~=${{ matrix.docutils }}.0"
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv --durations 25
|
||||
env:
|
||||
PYTHONWARNINGS: "error" # treat all warnings as errors
|
||||
|
||||
deadsnakes:
|
||||
runs-on: ubuntu-latest
|
||||
name: Python ${{ matrix.python }} (Docutils ${{ matrix.docutils }})
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python:
|
||||
- "3.14"
|
||||
docutils:
|
||||
- "0.20"
|
||||
- "0.21"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python ${{ matrix.python }} (deadsnakes)
|
||||
uses: deadsnakes/action@v3.2.0
|
||||
with:
|
||||
python-version: ${{ matrix.python }}-dev
|
||||
- name: Check Python version
|
||||
run: python --version --version
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install --no-install-recommends --yes graphviz
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
sed -i 's/flit_core>=3.7/flit_core @ git+https:\/\/github.com\/pypa\/flit.git#subdirectory=flit_core/' pyproject.toml
|
||||
python -m pip install .[test]
|
||||
- name: Install Docutils ${{ matrix.docutils }}
|
||||
run: python -m pip install --upgrade "docutils~=${{ matrix.docutils }}.0"
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv --durations 25
|
||||
env:
|
||||
PYTHONWARNINGS: "error" # treat all warnings as errors
|
||||
|
||||
free-threaded:
|
||||
runs-on: ubuntu-latest
|
||||
name: Python ${{ matrix.python }} (free-threaded)
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python:
|
||||
- "3.13"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python ${{ matrix.python }} (deadsnakes)
|
||||
uses: deadsnakes/action@v3.2.0
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
nogil: true
|
||||
- name: Check Python version
|
||||
run: python --version --version
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install --no-install-recommends --yes graphviz
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install .[test]
|
||||
env:
|
||||
PYTHONWARNINGS: ""
|
||||
- name: Install Docutils ${{ matrix.docutils }}
|
||||
run: python -m pip install --upgrade "docutils==${{ matrix.docutils }}.*"
|
||||
if: "!endsWith(matrix.python, '-dev')"
|
||||
- name: Install Docutils ${{ matrix.docutils }} (ignore warnings)
|
||||
run: python -m pip install --upgrade "docutils==${{ matrix.docutils }}.*"
|
||||
if: "endsWith(matrix.python, '-dev')"
|
||||
env:
|
||||
PYTHONWARNINGS: ""
|
||||
# markupsafe._speedups has not declared that it can run safely without the GIL
|
||||
- name: Remove markupsafe._speedups
|
||||
run: rm -rf "$(python -c 'from markupsafe._speedups import __file__ as f; print(f)')"
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv --durations 25
|
||||
env:
|
||||
PYTHONWARNINGS: "error" # treat all warnings as errors
|
||||
|
||||
deadsnakes-free-threaded:
|
||||
runs-on: ubuntu-latest
|
||||
name: Python ${{ matrix.python }} (free-threaded)
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python:
|
||||
- "3.14"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python ${{ matrix.python }} (deadsnakes)
|
||||
uses: deadsnakes/action@v3.2.0
|
||||
with:
|
||||
python-version: ${{ matrix.python }}-dev
|
||||
nogil: true
|
||||
- name: Check Python version
|
||||
run: python --version --version
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install --no-install-recommends --yes graphviz
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
sed -i 's/flit_core>=3.7/flit_core @ git+https:\/\/github.com\/pypa\/flit.git#subdirectory=flit_core/' pyproject.toml
|
||||
python -m pip install .[test]
|
||||
# markupsafe._speedups has not declared that it can run safely without the GIL
|
||||
- name: Remove markupsafe._speedups
|
||||
run: rm -rf "$(python -c 'from markupsafe._speedups import __file__ as f; print(f)')"
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv --durations 25
|
||||
env:
|
||||
PYTHONWARNINGS: "error" # treat all warnings as errors
|
||||
|
||||
windows:
|
||||
runs-on: windows-2019
|
||||
name: Windows
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Check Python version
|
||||
run: python --version --version
|
||||
- name: Install graphviz
|
||||
run: choco install --no-progress graphviz
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install .[test]
|
||||
env:
|
||||
PYTHONWARNINGS: ""
|
||||
run: uv pip install .[test]
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv --durations 25
|
||||
env:
|
||||
PYTHONWARNINGS: "error" # treat all warnings as errors
|
||||
|
||||
docutils-latest:
|
||||
runs-on: ubuntu-latest
|
||||
name: Docutils HEAD
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python 3
|
||||
uses: actions/setup-python@v4
|
||||
- name: Install epubcheck
|
||||
run: |
|
||||
EPUBCHECK_VERSION="5.1.0"
|
||||
mkdir /tmp/epubcheck && cd /tmp/epubcheck
|
||||
wget --no-verbose https://github.com/w3c/epubcheck/releases/download/v${EPUBCHECK_VERSION}/epubcheck-${EPUBCHECK_VERSION}.zip
|
||||
unzip epubcheck-${EPUBCHECK_VERSION}.zip
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Check Python version
|
||||
run: python --version
|
||||
run: python --version --version
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install graphviz
|
||||
run: sudo apt-get install --no-install-recommends --yes graphviz
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install .[test]
|
||||
env:
|
||||
PYTHONWARNINGS: ""
|
||||
run: uv pip install .[test]
|
||||
- name: Install Docutils' HEAD
|
||||
run: python -m pip install git+https://repo.or.cz/docutils.git\#subdirectory=docutils
|
||||
env:
|
||||
PYTHONWARNINGS: ""
|
||||
run: uv pip install "docutils @ git+https://repo.or.cz/docutils.git#subdirectory=docutils"
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv
|
||||
env:
|
||||
PYTHONWARNINGS: "error" # treat all warnings as errors
|
||||
DO_EPUBCHECK: "1"
|
||||
EPUBCHECK_PATH: "/tmp/epubcheck/epubcheck-5.1.0/epubcheck.jar"
|
||||
|
||||
oldest-supported:
|
||||
runs-on: ubuntu-latest
|
||||
name: Oldest supported
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Check Python version
|
||||
run: python --version --version
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install --no-install-recommends --yes graphviz
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uv pip install .[test] --resolution lowest-direct
|
||||
uv pip install alabaster==1.0.0
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv --durations 25
|
||||
env:
|
||||
PYTHONWARNINGS: "error" # treat all warnings as errors
|
||||
|
||||
latex:
|
||||
runs-on: ubuntu-latest
|
||||
name: LaTeX
|
||||
timeout-minutes: 15
|
||||
container:
|
||||
image: ghcr.io/sphinx-doc/sphinx-ci
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Check Python version
|
||||
run: python --version --version
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: uv pip install .[test]
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv --durations 25
|
||||
env:
|
||||
PYTHONWARNINGS: "error" # treat all warnings as errors
|
||||
DO_EPUBCHECK: "1"
|
||||
|
||||
coverage:
|
||||
if: github.event_name == 'push' && github.repository_owner == 'sphinx-doc'
|
||||
runs-on: ubuntu-latest
|
||||
name: Coverage
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Check Python version
|
||||
run: python --version --version
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install --no-install-recommends --yes graphviz
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: uv pip install .[test] pytest-cov
|
||||
- name: Test with pytest
|
||||
run: python -m pytest -vv --cov . --cov-append --cov-config pyproject.toml
|
||||
env:
|
||||
VIRTUALENV_SYSTEM_SITE_PACKAGES: "1"
|
||||
- name: codecov
|
||||
uses: codecov/codecov-action@v5
|
||||
|
||||
32
.github/workflows/nodejs.yml
vendored
@@ -1,27 +1,45 @@
|
||||
name: CI (node.js)
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- ".github/workflows/nodejs.yml"
|
||||
- "sphinx/themes/**.js"
|
||||
- "tests/js/**"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
pull_request:
|
||||
paths:
|
||||
- ".github/workflows/nodejs.yml"
|
||||
- "sphinx/themes/**.js"
|
||||
- "tests/js/**"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
FORCE_COLOR: "1"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
node-version: "16"
|
||||
node-version: "20"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Use Node.js ${{ env.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.node-version }}
|
||||
cache: "npm"
|
||||
- run: npm install
|
||||
- name: Run headless test
|
||||
run: xvfb-run -a npm test
|
||||
- run: npm test
|
||||
|
||||
43
.github/workflows/transifex.yml
vendored
@@ -15,23 +15,30 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Install transifex client
|
||||
run: |
|
||||
mkdir -p /tmp/tx_cli && cd $_
|
||||
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
|
||||
shell: bash
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: pip install --upgrade babel jinja2
|
||||
run: uv pip install --upgrade babel jinja2
|
||||
- name: Extract translations from source code
|
||||
run: python utils/babel_runner.py extract
|
||||
- name: Push translations to transifex.com
|
||||
run: |
|
||||
cd sphinx/locale
|
||||
cd sphinx/locale
|
||||
/tmp/tx_cli/tx push --source --use-git-timestamps --workers 10
|
||||
env:
|
||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
||||
@@ -44,32 +51,42 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3
|
||||
persist-credentials: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Install transifex client
|
||||
run: |
|
||||
mkdir -p /tmp/tx_cli && cd $_
|
||||
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
|
||||
shell: bash
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: latest
|
||||
enable-cache: false
|
||||
- name: Install dependencies
|
||||
run: pip install --upgrade babel jinja2
|
||||
run: uv pip install --upgrade babel jinja2
|
||||
- name: Extract translations from source code
|
||||
run: python utils/babel_runner.py extract
|
||||
- name: Pull translations from transifex.com
|
||||
run: |
|
||||
cd sphinx/locale
|
||||
cd sphinx/locale
|
||||
/tmp/tx_cli/tx pull --translations --all --force --use-git-timestamps --workers 10
|
||||
env:
|
||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
||||
- name: Compile message catalogs
|
||||
run: python utils/babel_runner.py compile
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
uses: peter-evans/create-pull-request@v7
|
||||
with:
|
||||
add-paths: |
|
||||
sphinx/locale
|
||||
commit-message: "[internationalisation] Update translations"
|
||||
branch: bot/pull-translations
|
||||
title: "[bot]: Update message catalogues"
|
||||
labels: "internals:internationalisation"
|
||||
body-path: babel_compile.txt
|
||||
|
||||
3
.gitignore
vendored
@@ -15,6 +15,7 @@ TAGS
|
||||
.tox/
|
||||
.tx/
|
||||
.venv/
|
||||
venv/
|
||||
.coverage
|
||||
htmlcov
|
||||
.DS_Store
|
||||
@@ -30,6 +31,8 @@ doc/_build/
|
||||
doc/locale/
|
||||
tests/.coverage
|
||||
tests/build/
|
||||
tests/js/roots/*/_build
|
||||
tests/test-server.lock
|
||||
utils/regression_test.js
|
||||
|
||||
node_modules/
|
||||
|
||||
163
.mailmap
Normal file
@@ -0,0 +1,163 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# See https://git-scm.com/docs/gitmailmap
|
||||
# Currently unused by GitHub; but useful to maintain a record
|
||||
|
||||
# Aaron Carlisle (https://github.com/Blendify)
|
||||
Aaron Carlisle <carlisle.aaron00@gmail.com> <carlisle.b3d@gmail.com>
|
||||
Aaron Carlisle <carlisle.aaron00@gmail.com> <Blendify@users.noreply.github.com>
|
||||
|
||||
# Adam Turner (https://github.com/AA-Turner)
|
||||
Adam Turner <9087854+AA-Turner@users.noreply.github.com> <9087854+aa-turner@users.noreply.github.com>
|
||||
Adam Turner <9087854+AA-Turner@users.noreply.github.com> <AA-Turner@users.noreply.github.com>
|
||||
|
||||
Akihiro Uchida <uchida@ike-dyn.ritsumei.ac.jp> <uchida@turbare.net>
|
||||
|
||||
Andrew M. Kuchling <amk@amk.ca> <devnull@localhost>
|
||||
|
||||
Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
||||
|
||||
# Chris (https://github.com/percious)
|
||||
Chris Perkins <chris@percious.com>
|
||||
|
||||
Chris Lamb <lamby@debian.org> <chris@chris-lamb.co.uk>
|
||||
|
||||
# Christian Clauss (https://github.com/cclauss)
|
||||
Christian Clauss <cclauss@me.com> <cclauss@bluewin.ch>
|
||||
|
||||
# Daniel Eades (https://github.com/danieleades)
|
||||
Daniel Eades <danieleades@hotmail.com>
|
||||
Daniel Eades <danieleades@hotmail.com> <daniel.eades@hotmail.com>
|
||||
Daniel Eades <danieleades@hotmail.com> <33452915+danieleades@users.noreply.github.com>
|
||||
Daniel Eades <danieleades@hotmail.com> <daniel.eades@seebyte.com>
|
||||
|
||||
# Daniel Hahler (https://github.com/blueyed)
|
||||
Daniel Hahler <git@thequod.de> <github@thequod.de>
|
||||
|
||||
# Daniel Neuhäuser (https://github.com/DasIch)
|
||||
Daniel Neuhäuser <dasdasich@gmail.com> <ich@danielneuhaeuser.de>
|
||||
|
||||
David Ham <David.Ham@imperial.ac.uk> <David,Ham@imperial.ac.uk>
|
||||
|
||||
# Dimitri Papadopoulos Orfanos (https://github.com/DimitriPapadopoulos)
|
||||
Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com>
|
||||
|
||||
# Dmitry Shachnev (https://github.com/mitya57)
|
||||
Dmitry Shachnev <mitya57@users.noreply.github.com> <mitya57@gmail.com>
|
||||
|
||||
Erik M. Bray <erik.bray@lri.fr>
|
||||
Erik M. Bray <erik.bray@lri.fr> <embray@stsci.edu>
|
||||
|
||||
Eric Holscher <eric@ericholscher.com> <25510+ericholscher@users.noreply.github.com>
|
||||
|
||||
Eric Larson <larson.eric.d@gmail.com>
|
||||
|
||||
# Eric Knibbe (https://github.com/EricFromCanada)
|
||||
Eric Knibbe <eric3knibbe@gmail.com>
|
||||
Eric Knibbe <eric3knibbe@gmail.com> <eric@lassosoft.com>
|
||||
|
||||
# Georg Brandl (https://github.com/birkenfeld)
|
||||
|
||||
# Hugo van Kemenade (https://github.com/hugovk)
|
||||
Hugo van Kemenade <hugovk@users.noreply.github.com>
|
||||
Hugo van Kemenade <hugovk@users.noreply.github.com> <1324225+hugovk@users.noreply.github.com>
|
||||
# Ignacio Fdez. Galván (https://github.com/Jellby)
|
||||
Ignacio Fdez. Galván <jellby@yahoo.com>
|
||||
|
||||
# Jacob Mason (https://github.com/jacobmason)
|
||||
Jacob Mason <jacoblmason@gmail.com>
|
||||
Jacob Mason <jacoblmason@gmail.com> <jacob@panda>
|
||||
Jacob Mason <jacoblmason@gmail.com> <jacob@panther>
|
||||
|
||||
# Jakob Lykke Andersen (https://github.com/jakobandersen)
|
||||
Jakob Lykke Andersen <Jakob@caput.dk> <jakobandersen@users.noreply.github.com>
|
||||
Jakob Lykke Andersen <Jakob@caput.dk> <jakob@caput.dk>
|
||||
|
||||
Jakub Wilk <jwilk@jwilk.net> <jwilk@debian.org>
|
||||
|
||||
James Hilton-Balfe <gobot1234yt@gmail.com> <50501825+Gobot1234@users.noreply.github.com>
|
||||
|
||||
# Jean-François B. (https://github.com/jfbu)
|
||||
Jean-François B. <jfbu@users.noreply.github.com>
|
||||
Jean-François B. <jfbu@users.noreply.github.com> <jfbu@users.noreply.github>
|
||||
Jean-François B. <jfbu@users.noreply.github.com> <2589111+jfbu@users.noreply.github.com>
|
||||
|
||||
Jean Abou-Samra <jean@abou-samra.fr>
|
||||
|
||||
# Jeremy Maitin-Shepard (https://github.com/jbms)
|
||||
Jeremy Maitin-Shepard <jbms@google.com> <jeremy@jeremyms.com>
|
||||
|
||||
# Jon Dufresne (https://github.com/jdufresne)
|
||||
|
||||
# Juan Luis Cano Rodríguez (https://github.com/astrojuanlu)
|
||||
Juan Luis Cano Rodríguez <juanlu@readthedocs.org> <hello@juanlu.space>
|
||||
|
||||
Justin Mathews <justin.mathews@isara.com> <jamathews@users.noreply.github.com>
|
||||
|
||||
# Justus Magin (https://github.com/keewis)
|
||||
Justus Magin <keewis@posteo.de>
|
||||
|
||||
# KINEBUCHI Tomohiko (https://github.com/cocoatomo)
|
||||
KINEBUCHI Tomohiko <cocoatomo77@gmail.com>
|
||||
|
||||
Latosha Maltba <79100569+latosha-maltba@users.noreply.github.com>
|
||||
|
||||
# Louis Maddox (https://github.com/lmmx)
|
||||
Louis Maddox <louismmx@gmail.com> <lmmx@users.noreply.github.com>
|
||||
|
||||
Mark Summerfield <mark.summerfield@localhost>
|
||||
|
||||
# Martin Liška (https://github.com/marxin)
|
||||
Martin Liška <mliska@suse.cz>
|
||||
|
||||
Matt Warrick <matt@documatt.com>
|
||||
|
||||
# Matthias Geier (https://github.com/mgeier)
|
||||
|
||||
# Nils K (https://github.com/septatrix)
|
||||
Nils Kattenbeck <nilskemail@gmail.com> <24257556+Septatrix@users.noreply.github.com>
|
||||
|
||||
Oleg Hoefling <oleg.hoefling@gmail.com>
|
||||
|
||||
# Paweł Budzyński (https://github.com/pbudzyns)
|
||||
Paweł Budzyński <pawel.budzynski@cern.ch>
|
||||
Paweł Budzyński <pawel.budzynski19+git@gmail.com>
|
||||
|
||||
Pradyun Gedam <pradyunsg@users.noreply.github.com>
|
||||
Pradyun Gedam <pradyunsg@users.noreply.github.com> <pradyunsg@gmail.com>
|
||||
Pradyun Gedam <pradyunsg@users.noreply.github.com> <3275593+pradyunsg@users.noreply.github.com>
|
||||
|
||||
# Robert Lehmann (https://github.com/lehmannro)
|
||||
Rob Ruana <rob@robruana.com> <rob@relentlessidiot.com>
|
||||
Rob Ruana <rob@robruana.com> <robruana@magfest.org>
|
||||
|
||||
Santos Gallegos <stsewd@protonmail.com> <santos_g@outlook.com>
|
||||
|
||||
Seth Girvin <sethg@geographika.co.uk>
|
||||
|
||||
# Shirou WAKAYAMA (https://github.com/shirou)
|
||||
Shirou WAKAYAMA <shirou.faw@gmail.com>
|
||||
|
||||
# Stephen Finucane (https://github.com/stephenfin)
|
||||
|
||||
# Takayuki SHIMIZUKAWA (https://github.com/shimizukawa)
|
||||
Takayuki SHIMIZUKAWA <shimizukawa@gmail.com>
|
||||
|
||||
# Takeshi KOMIYA (https://github.com/tk0miya)
|
||||
Takeshi KOMIYA <i.tkomiya@gmail.com>
|
||||
Takeshi KOMIYA <i.tkomiya@gmail.com> <tk0miya@users.noreply.github.com>
|
||||
|
||||
# Timotheus Kampik (https://github.com/TimKam)
|
||||
Timotheus Kampik <timotheus.kampik@gmail.com> <timotheus.kampik@signavio.com>
|
||||
|
||||
# Tim Hoffmann (https://github.com/timhoffm)
|
||||
|
||||
Thomas Kluyver <thomas@kluyver.me.uk> <takowl@gmail.com>
|
||||
|
||||
# Wout de Nolf (https://github.com/woutdenolf)
|
||||
Wout de Nolf <woutdenolf@users.sf.net>
|
||||
|
||||
# Yoshiki Shibukawa (https://github.com/shibukawa)
|
||||
Yoshiki Shibukawa <yoshiki@shibu.jp> <shibukawa.yoshiki@dena.jp>
|
||||
Yoshiki Shibukawa <yoshiki@shibu.jp> <yoshiki at shibu.jp>
|
||||
|
||||
Zack Cerza <zack@cerza.org> <zack@redhat.com>
|
||||
371
.ruff.toml
Normal file
@@ -0,0 +1,371 @@
|
||||
target-version = "py311" # Pin Ruff to Python 3.11
|
||||
line-length = 88
|
||||
output-format = "full"
|
||||
|
||||
extend-exclude = [
|
||||
"build/*",
|
||||
"doc/_build/*",
|
||||
"tests/roots/test-directive-code/target.py", # Tests break if formatted
|
||||
"tests/roots/test-pycode/cp_1251_coded.py", # Not UTF-8
|
||||
]
|
||||
|
||||
[format]
|
||||
preview = true
|
||||
quote-style = "single"
|
||||
|
||||
[lint]
|
||||
preview = true
|
||||
ignore = [
|
||||
# flake8-annotations
|
||||
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `{name}`
|
||||
# flake8-unused-arguments ('ARG')
|
||||
"ARG001", # Unused function argument: `{name}`
|
||||
"ARG002", # Unused method argument: `{name}`
|
||||
"ARG003", # Unused class method argument: `{name}`
|
||||
"ARG005", # Unused lambda argument: `{name}`
|
||||
# flake8-commas ('COM')
|
||||
"COM812", # Trailing comma missing
|
||||
# pycodestyle
|
||||
"E741", # Ambiguous variable name: `{name}`
|
||||
# pyflakes
|
||||
"F841", # Local variable `{name}` is assigned to but never used
|
||||
# flake8-logging-format
|
||||
"G003", # Logging statement uses `+`
|
||||
# refurb
|
||||
"FURB101", # `open` and `read` should be replaced by `Path(...).read_text(...)`
|
||||
"FURB103", # `open` and `write` should be replaced by `Path(...).write_text(...)`
|
||||
# perflint
|
||||
"PERF203", # `try`-`except` within a loop incurs performance overhead
|
||||
# flake8-pie ('PIE')
|
||||
"PIE790", # Unnecessary `pass` statement
|
||||
# pylint ('PLC')
|
||||
"PLC0415", # `import` should be at the top-level of a file
|
||||
"PLC2701", # Private name import `{name}` from external module `{module}`
|
||||
# pylint ('PLR')
|
||||
"PLR0904", # Too many public methods ({methods} > {max_methods})
|
||||
"PLR0911", # Too many return statements ({returns} > {max_returns})
|
||||
"PLR0912", # Too many branches ({branches} > {max_branches})
|
||||
"PLR0913", # Too many arguments in function definition ({c_args} > {max_args})
|
||||
"PLR0914", # Too many local variables ({current_amount}/{max_amount})
|
||||
"PLR0915", # Too many statements ({statements} > {max_statements})
|
||||
"PLR0916", # Too many Boolean expressions ({expressions} > {max_expressions})
|
||||
"PLR0917", # Too many positional arguments ({c_pos}/{max_pos})
|
||||
"PLR1702", # Too many nested blocks ({nested_blocks} > {max_nested_blocks})
|
||||
"PLR2004", # Magic value used in comparison, consider replacing `{value}` with a constant variable
|
||||
"PLR5501", # Use `elif` instead of `else` then `if`, to reduce indentation
|
||||
"PLR6104", # Use `{operator}` to perform an augmented assignment directly
|
||||
"PLR6301", # Method `{method_name}` could be a function, class method, or static method
|
||||
# pylint ('PLW')
|
||||
"PLW2901", # Outer {outer_kind} variable `{name}` overwritten by inner {inner_kind} target
|
||||
# flake8-pyi ('PYI')
|
||||
"PYI025", # Use `from collections.abc import Set as AbstractSet` to avoid confusion with the `set` builtin
|
||||
# flake8-bandit ('S')
|
||||
"S101", # Use of `assert` detected
|
||||
"S110", # `try`-`except`-`pass` detected, consider logging the exception
|
||||
"S404", # `subprocess` module is possibly insecure
|
||||
"S405", # `xml.etree` methods are vulnerable to XML attacks
|
||||
"S603", # `subprocess` call: check for execution of untrusted input
|
||||
# flake8-simplify
|
||||
"SIM102", # Use a single `if` statement instead of nested `if` statements
|
||||
"SIM108", # Use ternary operator `{contents}` instead of `if`-`else`-block
|
||||
# pyupgrade
|
||||
"UP031", # Use format specifiers instead of percent format
|
||||
"UP032", # Use f-string instead of `format` call
|
||||
# Ruff-specific rules ('RUF')
|
||||
"RUF001", # String contains ambiguous {}. Did you mean {}?
|
||||
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
|
||||
"RUF021", # Parenthesize `a and b` expressions when chaining `and` and `or` together, to make the precedence clear
|
||||
"RUF022", # `__all__` is not sorted
|
||||
"RUF023", # `{}.__slots__` is not sorted
|
||||
"RUF027", # Possible f-string without an `f` prefix
|
||||
"RUF039", # First argument to {call} is not raw string
|
||||
"RUF052", # Local dummy variable `{}` is accessed
|
||||
]
|
||||
external = [ # Whitelist for RUF100 unknown code warnings
|
||||
"SIM113",
|
||||
]
|
||||
select = [
|
||||
# flake8-builtins ('A')
|
||||
# NOT YET USED
|
||||
# airflow ('AIR')
|
||||
# Airflow is not used in Sphinx
|
||||
# flake8-annotations ('ANN')
|
||||
"ANN",
|
||||
# flake8-unused-arguments ('ARG')
|
||||
"ARG",
|
||||
# flake8-async ('ASYNC')
|
||||
"ASYNC",
|
||||
# flake8-bugbear ('B')
|
||||
"B",
|
||||
# flake8-blind-except ('BLE')
|
||||
# NOT YET USED
|
||||
# flake8-comprehensions ('C4')
|
||||
"C4",
|
||||
# mccabe ('C90')
|
||||
# "C901", # `{name}` is too complex ({complexity} > {max_complexity})
|
||||
# flake8-commas ('COM')
|
||||
"COM", # Trailing comma prohibited
|
||||
# flake8-copyright ('CPY')
|
||||
# NOT YET USED
|
||||
# pydocstyle ('D')
|
||||
# "D100", # Missing docstring in public module
|
||||
# "D101", # Missing docstring in public class
|
||||
# "D102", # Missing docstring in public method
|
||||
# "D103", # Missing docstring in public function
|
||||
# "D104", # Missing docstring in public package
|
||||
# "D105", # Missing docstring in magic method
|
||||
"D106", # Missing docstring in public nested class
|
||||
# "D107", # Missing docstring in `__init__`
|
||||
# "D200", # One-line docstring should fit on one line
|
||||
"D201", # No blank lines allowed before function docstring (found {num_lines})
|
||||
"D202", # No blank lines allowed after function docstring (found {num_lines})
|
||||
"D204", # 1 blank line required after class docstring
|
||||
# "D205", # 1 blank line required between summary line and description
|
||||
"D206", # Docstring should be indented with spaces, not tabs
|
||||
"D207", # Docstring is under-indented
|
||||
"D208", # Docstring is over-indented
|
||||
"D209", # Multi-line docstring closing quotes should be on a separate line
|
||||
"D210", # No whitespaces allowed surrounding docstring text
|
||||
"D211", # No blank lines allowed before class docstring
|
||||
# "D212", # Multi-line docstring summary should start at the first line
|
||||
# "D213", # Multi-line docstring summary should start at the second line
|
||||
# "D214", # Section is over-indented ("{name}")
|
||||
# "D215", # Section underline is over-indented ("{name}")
|
||||
"D300", # Use triple double quotes `"""`
|
||||
"D301", # Use `r"""` if any backslashes in a docstring
|
||||
# "D400", # First line should end with a period
|
||||
# "D401", # First line of docstring should be in imperative mood: "{first_line}"
|
||||
"D402", # First line should not be the function's signature
|
||||
"D403", # First word of the first line should be capitalized: `{}` -> `{}`
|
||||
# "D404", # First word of the docstring should not be "This"
|
||||
"D405", # Section name should be properly capitalized ("{name}")
|
||||
# "D406", # Section name should end with a newline ("{name}")
|
||||
# "D407", # Missing dashed underline after section ("{name}")
|
||||
"D408", # Section underline should be in the line following the section's name ("{name}")
|
||||
"D409", # Section underline should match the length of its name ("{name}")
|
||||
"D410", # Missing blank line after section ("{name}")
|
||||
"D411", # Missing blank line before section ("{name}")
|
||||
# "D412", # No blank lines allowed between a section header and its content ("{name}")
|
||||
# "D413", # Missing blank line after last section ("{name}")
|
||||
"D414", # Section has no content ("{name}")
|
||||
# "D415", # First line should end with a period, question mark, or exclamation point
|
||||
"D416", # Section name should end with a colon ("{name}")
|
||||
"D417", # Missing argument description in the docstring for `{definition}`: `{name}`
|
||||
"D418", # Function decorated with `@overload` shouldn't contain a docstring
|
||||
"D419", # Docstring is empty
|
||||
# flake8-django ('DJ')
|
||||
# Django is not used in Sphinx
|
||||
# flake8-datetimez ('DTZ')
|
||||
"DTZ",
|
||||
# pycodestyle ('E')
|
||||
"E",
|
||||
# flake8-errmsg ('EM')
|
||||
"EM",
|
||||
# eradicate ('ERA')
|
||||
# NOT YET USED
|
||||
# flake8-executable ('EXE')
|
||||
"EXE",
|
||||
# pyflakes ('F')
|
||||
"F",
|
||||
# flake8-future-annotations ('FA')
|
||||
"FA",
|
||||
# flake8-fastapi ('FAST')
|
||||
# FastAPI is not used in Sphinx
|
||||
# flake8-boolean-trap ('FBT')
|
||||
# NOT YET USED
|
||||
# flake8-fixme ('FIX')
|
||||
# NOT YET USED
|
||||
# flynt ('FLY')
|
||||
"FLY",
|
||||
# refurb ('FURB')
|
||||
"FURB",
|
||||
# flake8-logging-format ('G')
|
||||
"G",
|
||||
# isort ('I')
|
||||
"I",
|
||||
# flake8-import-conventions ('ICN')
|
||||
"ICN", # flake8-import-conventions
|
||||
# flake8-no-pep420 ('INP')
|
||||
"INP",
|
||||
# flake8-gettext ('INT')
|
||||
"INT",
|
||||
# flake8-implicit-str-concat ('ISC')
|
||||
# NOT YET USED
|
||||
# flake8-logging ('LOG')
|
||||
"LOG",
|
||||
# pep8-naming ('N')
|
||||
# NOT YET USED
|
||||
# numpy-specific rules ('NPY')
|
||||
# Numpy is not used in Sphinx
|
||||
# pandas-vet ('PD')
|
||||
# Pandas is not used in Sphinx
|
||||
# perflint ('PERF')
|
||||
"PERF",
|
||||
# pygrep-hooks ('PGH')
|
||||
"PGH",
|
||||
# flake8-pie ('PIE')
|
||||
"PIE",
|
||||
# pylint ('PL', 'PLC', 'PLE', 'PLR', 'PLW')
|
||||
"PL",
|
||||
# flake8-pytest-style ('PT')
|
||||
"PT",
|
||||
# flake8-use-pathlib ('PTH')
|
||||
# NOT YET USED
|
||||
"PYI",
|
||||
# Stub files are not used in Sphinx
|
||||
# flake8-quotes ('Q')
|
||||
"Q",
|
||||
# flake8-return ('RET')
|
||||
"RET501", # Do not explicitly `return None` in function if it is the only possible return value
|
||||
"RET502", # Do not implicitly `return None` in function able to return non-`None` value
|
||||
"RET503", # Missing explicit `return` at the end of function able to return non-`None` value
|
||||
# "RET504", # Unnecessary assignment to `{name}` before `return` statement
|
||||
# "RET505", # Unnecessary `{branch}` after `return` statement
|
||||
# "RET506", # Unnecessary `{branch}` after `raise` statement
|
||||
"RET507", # Unnecessary `{branch}` after `continue` statement
|
||||
"RET508", # Unnecessary `{branch}` after `break` statement
|
||||
# flake8-raise ('RSE')
|
||||
"RSE",
|
||||
# Ruff-specific rules ('RUF')
|
||||
"RUF",
|
||||
# flake8-bandit ('S')
|
||||
"S",
|
||||
# flake8-simplify ('SIM')
|
||||
"SIM", # flake8-simplify
|
||||
# flake8-self ('SLF')
|
||||
# NOT YET USED
|
||||
# flake8-slots ('SLOT')
|
||||
"SLOT",
|
||||
# flake8-debugger ('T10')
|
||||
"T10",
|
||||
# flake8-print ('T20')
|
||||
"T20",
|
||||
# flake8-type-checking ('TCH')
|
||||
"TCH",
|
||||
# flake8-todos ('TD')
|
||||
# "TD001", # Invalid TODO tag: `{tag}`
|
||||
# "TD002", # Missing author in TODO; try: `# TODO(<author_name>): ...` or `# TODO @<author_name>: ...`
|
||||
# "TD003", # Missing issue link on the line following this TODO
|
||||
# "TD004", # Missing colon in TODO
|
||||
# "TD005", # Missing issue description after `TODO`
|
||||
"TD006", # Invalid TODO capitalization: `{tag}` should be `TODO`
|
||||
"TD007", # Missing space after colon in TODO
|
||||
# flake8-tidy-imports ('TID')
|
||||
"TID",
|
||||
# flake8-trio ('TRIO')
|
||||
# Trio is not used in Sphinx
|
||||
# tryceratops ('TRY')
|
||||
# NOT YET USED
|
||||
# pyupgrade ('UP')
|
||||
"UP",
|
||||
# pycodestyle ('W')
|
||||
"W",
|
||||
# flake8-2020 ('YTT')
|
||||
"YTT",
|
||||
]
|
||||
|
||||
[lint.per-file-ignores]
|
||||
"doc/*" = [
|
||||
"ANN", # documentation doesn't need annotations
|
||||
"TC001", # documentation doesn't need type-checking blocks
|
||||
]
|
||||
"doc/conf.py" = ["INP001", "W605"]
|
||||
"doc/development/tutorials/examples/*" = ["I002", "INP001"]
|
||||
# allow print() in the tutorial
|
||||
"doc/development/tutorials/examples/recipe.py" = [
|
||||
"FURB118",
|
||||
"T201"
|
||||
]
|
||||
"doc/usage/extensions/example_{google,numpy}.py" = [
|
||||
"D416", # Section name should end with a colon ("{name}")
|
||||
"I002", # Missing required import: {name}
|
||||
"INP001", # File {filename} is part of an implicit namespace package. Add an __init__.py.
|
||||
"PLW3201", # Dunder method {name} has no special meaning in Python 3
|
||||
]
|
||||
|
||||
# from .flake8
|
||||
"sphinx/*" = ["E241"]
|
||||
|
||||
# whitelist ``print`` for stdout messages
|
||||
"sphinx/_cli/__init__.py" = ["T201"]
|
||||
|
||||
# allow use of ``pickle``
|
||||
"sphinx/{application,builders/__init__,environment/__init__,ext/coverage,search/__init__,versioning}.py" = [
|
||||
"S301",
|
||||
"S403",
|
||||
]
|
||||
|
||||
# whitelist ``print`` for stdout messages
|
||||
"sphinx/cmd/build.py" = ["T201"]
|
||||
"sphinx/cmd/make_mode.py" = ["T201"]
|
||||
"sphinx/cmd/quickstart.py" = ["T201"]
|
||||
|
||||
"sphinx/environment/collectors/toctree.py" = ["B026"]
|
||||
"sphinx/environment/adapters/toctree.py" = ["B026"]
|
||||
|
||||
# whitelist ``print`` for stdout messages
|
||||
"sphinx/ext/intersphinx/_cli.py" = ["T201"]
|
||||
|
||||
# whitelist ``token`` in docstring parsing
|
||||
"sphinx/ext/napoleon/docstring.py" = ["S105"]
|
||||
|
||||
# whitelist ``print`` for stdout messages
|
||||
"sphinx/testing/fixtures.py" = ["T201"]
|
||||
|
||||
# Ruff bug: https://github.com/astral-sh/ruff/issues/6540
|
||||
"sphinx/transforms/i18n.py" = ["PGH004"]
|
||||
|
||||
# Function wrappers
|
||||
"sphinx/ext/autodoc/importer.py" = ["D402"]
|
||||
"sphinx/util/requests.py" = ["D402"]
|
||||
|
||||
"sphinx/search/*" = ["E501"]
|
||||
|
||||
# whitelist ``token`` in date format parsing
|
||||
"sphinx/util/i18n.py" = ["S105"]
|
||||
|
||||
# whitelist ``token`` in literal parsing
|
||||
"sphinx/writers/html5.py" = ["S105"]
|
||||
|
||||
"tests/*" = [
|
||||
"E501",
|
||||
"ANN", # tests don't need annotations
|
||||
"D402",
|
||||
"PLC1901", # whitelist comparisons to the empty string ('')
|
||||
"S301", # allow use of ``pickle``
|
||||
"S403", # allow use of ``pickle``
|
||||
"T201", # whitelist ``print`` for tests
|
||||
]
|
||||
|
||||
# test roots are not packages
|
||||
"tests/js/roots/*" = ["I002", "INP001"]
|
||||
"tests/roots/*" = [
|
||||
"D403", # permit uncapitalised docstrings
|
||||
"F401", # names may be unused in test roots
|
||||
"I002", # we don't need the annotations future
|
||||
"INP001", # test roots are not packages
|
||||
]
|
||||
|
||||
# these tests need old ``typing`` generic aliases
|
||||
"tests/roots/test-ext-autodoc/target/genericalias.py" = ["UP006", "UP007", "UP035", "UP045"]
|
||||
"tests/test_util/test_util_typing.py" = ["RUF036", "UP006", "UP007", "UP035", "UP045"]
|
||||
"tests/test_util/typing_test_data.py" = ["FA100", "I002", "PYI030", "UP006", "UP007", "UP035", "UP045"]
|
||||
|
||||
"utils/*" = [
|
||||
"T201", # whitelist ``print`` for stdout messages
|
||||
"ANN", # utilities don't need annotations
|
||||
]
|
||||
|
||||
[lint.pycodestyle]
|
||||
max-line-length = 95
|
||||
|
||||
[lint.flake8-quotes]
|
||||
inline-quotes = "single"
|
||||
|
||||
[lint.isort]
|
||||
forced-separate = [
|
||||
"tests",
|
||||
]
|
||||
required-imports = [
|
||||
"from __future__ import annotations",
|
||||
]
|
||||
@@ -4,47 +4,53 @@ Maintainers
|
||||
*Listed alphabetically in forename, surname order*
|
||||
|
||||
* Adam Turner <@AA-Turner>
|
||||
* Armin Ronacher <armin.ronacher@active-4.com>
|
||||
* Daniel Neuhäuser <@DasIch>
|
||||
* Bénédikt Tran <@picnixz>
|
||||
* Chris Sewell <@chrisjsewell>
|
||||
* François Freitag <@francoisfreitag>
|
||||
* Georg Brandl <georg@python.org>
|
||||
* Jakob Lykke Andersen <@jakobandersen>
|
||||
* Jean-François Burnol <@jfbu>
|
||||
* Rob Ruana <@RobRuana>
|
||||
* Robert Lehmann <@lehmannro>
|
||||
* Jean-François B. <@jfbu>
|
||||
* Stephen Finucane <@stephenfin>
|
||||
* Takayuki Shimizukawa <shimizukawa@gmail.com>
|
||||
* Takayuki Shimizukawa <@shimizukawa>
|
||||
* Takeshi Komiya <@tk0miya>
|
||||
* Timotheus Kampik <@TimKam>
|
||||
* Yoshiki Shibukawa <@shibukawa>
|
||||
|
||||
Contributors
|
||||
============
|
||||
|
||||
*Listed alphabetically in forename, surname order*
|
||||
|
||||
* Aaron Carlisle -- basic theme and templating improvements
|
||||
* Adam Dangoor -- improved static typing
|
||||
* Adrián Chaves (Gallaecio) -- coverage builder improvements
|
||||
* Alastair Houghton -- Apple Help builder
|
||||
* Alex Gaynor -- linkcheck retry on errors
|
||||
* Alexander Todorov -- inheritance_diagram tests and improvements
|
||||
* Andi Albrecht -- agogo theme
|
||||
* Antonio Valentino -- qthelp builder, docstring inheritance
|
||||
* Antti Kaihola -- doctest extension (skipif option)
|
||||
* Barry Warsaw -- setup command improvements
|
||||
* Ben Egan -- Napoleon improvements
|
||||
* Ben Egan -- Napoleon improvements & viewcode improvements
|
||||
* Benjamin Peterson -- unittests
|
||||
* Blaise Laflamme -- pyramid theme
|
||||
* Brecht Machiels -- builder entry-points
|
||||
* Bruce Mitchener -- Minor epub improvement
|
||||
* Buck Evan -- dummy builder
|
||||
* Charles Duffy -- original graphviz extension
|
||||
* Chris Barrick -- Napoleon type preprocessing logic
|
||||
* Chris Holdgraf -- improved documentation structure
|
||||
* Chris Lamb -- reproducibility fixes
|
||||
* Christopher Perkins -- autosummary integration
|
||||
* Dan MacKinlay -- metadata fixes
|
||||
* Daniel Bültmann -- todo extension
|
||||
* Daniel Neuhäuser -- JavaScript domain, Python 3 support (GSOC)
|
||||
* Daniel Eades -- improved static typing
|
||||
* Daniel Hahler -- testing and CI improvements
|
||||
* Daniel Pizetta -- inheritance diagram improvements
|
||||
* Dave Kuhlman -- original LaTeX writer
|
||||
* Dimitri Papadopoulos Orfanos -- linting and spelling
|
||||
* Dmitry Shachnev -- modernisation and reproducibility
|
||||
* Doug Hellmann -- graphviz improvements
|
||||
* Eric Larson -- better error messages
|
||||
* Eric N. Vander Weele -- autodoc improvements
|
||||
* Eric Wieser -- autodoc improvements
|
||||
* Etienne Desautels -- apidoc module
|
||||
* Ezio Melotti -- collapsible sidebar JavaScript
|
||||
* Filip Vavera -- napoleon todo directive
|
||||
@@ -57,33 +63,42 @@ Contributors
|
||||
* Hugo van Kemenade -- support FORCE_COLOR and NO_COLOR
|
||||
* Ian Lee -- quickstart improvements
|
||||
* Jacob Mason -- websupport library (GSOC project)
|
||||
* James Addison -- linkcheck and HTML search improvements
|
||||
* Jeppe Pihl -- literalinclude improvements
|
||||
* Jeremy Maitin-Shepard -- C++ domain improvements
|
||||
* Joel Wurtz -- cellspanning support in LaTeX
|
||||
* John Waltman -- Texinfo builder
|
||||
* Jon Dufresne -- modernisation
|
||||
* Josip Dzolonga -- coverage builder
|
||||
* Juan Luis Cano Rodríguez -- new tutorial (2021)
|
||||
* Julien Palard -- Colspan and rowspan in text builder
|
||||
* Justus Magin -- napoleon improvements
|
||||
* Kevin Dunn -- MathJax extension
|
||||
* KINEBUCHI Tomohiko -- typing Sphinx as well as docutils
|
||||
* Kurt McKee -- documentation updates
|
||||
* Lars Hupfeldt Nielsen - OpenSSL FIPS mode md5 bug fix
|
||||
* Louis Maddox -- better docstrings
|
||||
* Łukasz Langa -- partial support for autodoc
|
||||
* Marco Buttu -- doctest extension (pyversion option)
|
||||
* Martin Hans -- autodoc improvements
|
||||
* Martin Larralde -- additional napoleon admonitions
|
||||
* Martin Liška -- option directive and role improvements
|
||||
* Martin Mahner -- nature theme
|
||||
* Matthew Fernandez -- todo extension fix
|
||||
* Matthew Woodcraft -- text output improvements
|
||||
* Matthias Geier -- style improvements
|
||||
* Michael Droettboom -- inheritance_diagram extension
|
||||
* Michael Wilson -- Intersphinx HTTP basic auth support
|
||||
* Nathan Damon -- bugfix in validation of static paths in html builders
|
||||
* Nils Kattenbeck -- pygments dark style
|
||||
* Pauli Virtanen -- autodoc improvements, autosummary extension
|
||||
* Rob Ruana -- napoleon extension
|
||||
* Robert Lehmann -- gettext builder (GSOC project)
|
||||
* Rafael Fontenelle -- internationalisation
|
||||
* \A. Rafey Khan -- improved intersphinx typing
|
||||
* Roland Meister -- epub builder
|
||||
* Sebastian Wiesner -- image handling, distutils support
|
||||
* Stefan Seefeld -- toctree improvements
|
||||
* Stefan van der Walt -- autosummary extension
|
||||
* T. Powers -- HTML output improvements
|
||||
* \T. Powers -- HTML output improvements
|
||||
* Taku Shimizu -- epub3 builder
|
||||
* Thomas Lamb -- linkcheck builder
|
||||
* Thomas Waldmann -- apidoc module fixes
|
||||
@@ -92,13 +107,20 @@ Contributors
|
||||
* Will Maier -- directory HTML builder
|
||||
* Zac Hatfield-Dodds -- doctest reporting improvements, intersphinx performance
|
||||
|
||||
Former maintainers
|
||||
==================
|
||||
|
||||
*Listed alphabetically in forename, surname order*
|
||||
|
||||
Former maintainers are those who haven't committed in the last two years.
|
||||
Those on the list below may become active maintainers again at any time.
|
||||
|
||||
* Armin Ronacher <@mitsuhiko>
|
||||
* Daniel Neuhäuser <@DasIch>
|
||||
* Georg Brandl <georg@python.org>
|
||||
* Rob Ruana <@RobRuana>
|
||||
* Robert Lehmann <@lehmannro>
|
||||
* Timotheus Kampik <@TimKam>
|
||||
* Yoshiki Shibukawa <@shibukawa>
|
||||
|
||||
Many thanks for all contributions!
|
||||
|
||||
Included software
|
||||
=================
|
||||
|
||||
There are also a few modules or functions incorporated from other
|
||||
authors and projects:
|
||||
|
||||
* sphinx.util.jsdump uses the basestring encoding from simplejson,
|
||||
written by Bob Ippolito, released under the MIT license
|
||||
1249
CHANGES.old
63
CHANGES.rst
Normal file
@@ -0,0 +1,63 @@
|
||||
Release 8.2.0 (in development)
|
||||
==============================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #13000: Drop Python 3.10 support.
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #13044: Remove the internal and undocumented ``has_equations`` data
|
||||
from the :py:class:`!MathDomain`` domain.
|
||||
The undocumented :py:meth:`!MathDomain.has_equations` method
|
||||
now unconditionally returns ``True``.
|
||||
These are replaced by the ``has_maths_elements`` key of the page context dict.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* #13037: Deprecate the ``SingleHTMLBuilder.fix_refuris`` method.
|
||||
Patch by James Addison.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Add a new ``duplicate_declaration`` warning type,
|
||||
with ``duplicate_declaration.c`` and ``duplicate_declaration.cpp`` subtypes.
|
||||
Patch by Julien Lecomte and Adam Turner.
|
||||
* #11824: linkcode: Allow extensions to add support for a domain by defining
|
||||
the keys that should be present.
|
||||
Patch by Nicolas Peugnet.
|
||||
* #13144: Add a ``class`` option to the :rst:dir:`autosummary` directive.
|
||||
Patch by Tim Hoffmann.
|
||||
* #13146: Napoleon: Unify the type preprocessing logic to allow
|
||||
Google-style docstrings to use the optional and default keywords.
|
||||
Patch by Chris Barrick.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #13060: HTML Search: use ``Map`` to store per-file term scores.
|
||||
Patch by James Addison
|
||||
* #13130: LaTeX docs: ``pdflatex`` index creation may fail for index entries
|
||||
in French. See :confval:`latex_use_xindy`.
|
||||
Patch by Jean-François B.
|
||||
* LaTeX: fix a ``7.4.0`` typo in a default for ``\sphinxboxsetup``
|
||||
(refs: PR #13152).
|
||||
Patch by Jean-François B.
|
||||
* #13096: HTML Search: check that query terms exist as properties in
|
||||
term indices before accessing them.
|
||||
* #11233: linkcheck: match redirect URIs against :confval:`linkcheck_ignore` by
|
||||
overriding session-level ``requests.get_redirect_target``.
|
||||
* #13195: viewcode: Fix issue where import paths differ from the directory
|
||||
structure.
|
||||
Patch by Ben Egan and Adam Turner.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
* #13224: Correctness fixup for ``test_html_multi_line_copyright``.
|
||||
Patch by Colin Watson, applied by James Addison.
|
||||
@@ -1,10 +1,9 @@
|
||||
Projects using Sphinx
|
||||
=====================
|
||||
|
||||
This is an (incomplete) alphabetic list of projects that use Sphinx or
|
||||
are experimenting with using it for their documentation. If you like to
|
||||
be included, please mail to `the Google group
|
||||
<https://groups.google.com/forum/#!forum/sphinx-users>`_.
|
||||
This is an incomplete list of projects that use Sphinx for their documentation.
|
||||
If you would like to add a project, please `create an issue or pull request
|
||||
on GitHub <https://github.com/sphinx-doc/sphinx/>`_.
|
||||
|
||||
I've grouped the list into sections to make it easier to find
|
||||
interesting examples.
|
||||
@@ -13,7 +12,7 @@ Documentation using the alabaster theme
|
||||
---------------------------------------
|
||||
|
||||
* `Alabaster <https://alabaster.readthedocs.io/>`__
|
||||
* `Blinker <https://pythonhosted.org/blinker/>`__
|
||||
* `Blinker <https://blinker.readthedocs.io/>`__
|
||||
* `Calibre <https://manual.calibre-ebook.com/>`__
|
||||
* `CherryPy <https://cherrypy.readthedocs.io/>`__
|
||||
* `Click <https://click.palletsprojects.com/>`__ (customized)
|
||||
@@ -28,8 +27,8 @@ Documentation using the alabaster theme
|
||||
* `Invoke <https://docs.pyinvoke.org/>`__
|
||||
* `Jinja <https://jinja.palletsprojects.com/>`__
|
||||
* `Lino <https://www.lino-framework.org/>`__ (customized)
|
||||
* `Linux kernel <https://www.kernel.org/doc/html/latest/index.html>`__ (customized)
|
||||
* `marbl <https://getmarbl.readthedocs.io/>`__
|
||||
* `MDAnalysis <https://www.mdanalysis.org/docs/>`__ (customized)
|
||||
* `MeshPy <https://documen.tician.de/meshpy/>`__
|
||||
* `Molecule <https://molecule.readthedocs.io/>`__
|
||||
* `Momotor LTI <https://momotor.org/doc/lti/canvas/>`__
|
||||
@@ -37,7 +36,6 @@ Documentation using the alabaster theme
|
||||
* `PyCUDA <https://documen.tician.de/pycuda/>`__
|
||||
* `PyOpenCL <https://documen.tician.de/pyopencl/>`__
|
||||
* `PyLangAcq <https://pylangacq.org/>`__
|
||||
* `pytest <https://docs.pytest.org/>`__ (customized)
|
||||
* `python-apt <https://apt-team.pages.debian.net/python-apt/>`__
|
||||
* `PyVisfile <https://documen.tician.de/pyvisfile/>`__
|
||||
* `Requests <https://requests.readthedocs.io/>`__
|
||||
@@ -55,79 +53,71 @@ Documentation using the classic theme
|
||||
* `Apache CouchDB <https://docs.couchdb.org/>`__ (customized)
|
||||
* `APSW <https://rogerbinns.github.io/apsw/>`__
|
||||
* `Arb <https://arblib.org/>`__
|
||||
* `Bazaar <http://doc.bazaar.canonical.com/>`__ (customized)
|
||||
* `Beautiful Soup <https://www.crummy.com/software/BeautifulSoup/bs4/doc/>`__
|
||||
* `Blender API <https://docs.blender.org/api/current/>`__
|
||||
* `Bugzilla <https://bugzilla.readthedocs.io/>`__
|
||||
* `Buildbot <https://docs.buildbot.net/latest/>`__
|
||||
* `CMake <https://cmake.org/documentation/>`__ (customized)
|
||||
* `Chaco <https://docs.enthought.com/chaco/>`__ (customized)
|
||||
* `Cormoran <http://cormoran.nhopkg.org/docs/>`__
|
||||
* `DEAP <https://deap.readthedocs.io/>`__ (customized)
|
||||
* `Director <https://pythonhosted.org/director/>`__
|
||||
* `EZ-Draw <https://pageperso.lif.univ-mrs.fr/~edouard.thiel/ez-draw/doc/en/html/ez-manual.html>`__ (customized)
|
||||
* `F2py <http://f2py.sourceforge.net/docs/>`__
|
||||
* `Generic Mapping Tools (GMT) <https://gmt.soest.hawaii.edu/doc/latest/>`__ (customized)
|
||||
* `EZ-Draw <https://pageperso.lis-lab.fr/~edouard.thiel/ez-draw/doc/en/html/ez-manual.html>`__ (customized)
|
||||
* `Generic Mapping Tools (GMT) <https://docs.generic-mapping-tools.org/latest/>`__ (customized)
|
||||
* `Genomedata <https://noble.gs.washington.edu/proj/genomedata/doc/1.3.3/>`__
|
||||
* `GetFEM++ <https://getfem.org/>`__ (customized)
|
||||
* `GetFEM <https://getfem.org/>`__ (customized)
|
||||
* `Glasgow Haskell Compiler <https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/>`__ (customized)
|
||||
* `Grok <http://grok.zope.org/doc/current/>`__ (customized)
|
||||
* `Grok <https://web.archive.org/web/20230708190705/http://grok.zope.org/doc/current/>`__ (customized)
|
||||
* `GROMACS <https://manual.gromacs.org/documentation/>`__
|
||||
* `GSL Shell <https://www.nongnu.org/gsl-shell/>`__
|
||||
* `Hands-on Python Tutorial <http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/>`__
|
||||
* `Hands-on Python Tutorial <http://anh.cs.luc.edu:80/python/hands-on/3.1/handsonHtml/>`__
|
||||
* `Kaa <https://freevo.github.io/kaa-base/>`__ (customized)
|
||||
* `Leo <https://leoeditor.com/>`__ (customized)
|
||||
* `Leo <https://leo-editor.github.io/leo-editor/>`__ (customized)
|
||||
* `Mayavi <https://docs.enthought.com/mayavi/mayavi/>`__ (customized)
|
||||
* `MediaGoblin <https://mediagoblin.readthedocs.io/>`__ (customized)
|
||||
* `mpmath <https://mpmath.org/doc/current/>`__
|
||||
* `OpenCV <https://docs.opencv.org/>`__ (customized)
|
||||
* `OpenEXR <https://excamera.com/articles/26/doc/index.html>`__
|
||||
* `OpenGDA <http://www.opengda.org/documentation/>`__
|
||||
* `OpenGDA <https://alfred.diamond.ac.uk/documentation/>`__
|
||||
* `phpDocumentor <https://docs.phpdoc.org/>`__ (customized)
|
||||
* `Plone <https://docs.plone.org/>`__ (customized)
|
||||
* `PyEMD <https://pyemd.readthedocs.io/>`__
|
||||
* `Pyevolve <http://pyevolve.sourceforge.net/>`__
|
||||
* `Pyevolve <https://pyevolve.sourceforge.net/>`__
|
||||
* `Pygame <https://www.pygame.org/docs/>`__ (customized)
|
||||
* `PyMQI <https://dsuch.github.io/pymqi/>`__
|
||||
* `PyQt4 <http://pyqt.sourceforge.net/Docs/PyQt4/>`__ (customized)
|
||||
* `PyQt5 <http://pyqt.sourceforge.net/Docs/PyQt5/>`__ (customized)
|
||||
* `PyQt4 <https://pyqt.sourceforge.net/Docs/PyQt4/>`__ (customized)
|
||||
* `PyQt5 <https://pyqt.sourceforge.net/Docs/PyQt5/>`__ (customized)
|
||||
* `Python 2 <https://docs.python.org/2/>`__
|
||||
* `Python 3 <https://docs.python.org/3/>`__ (customized)
|
||||
* `Python Packaging Authority <https://www.pypa.io/>`__ (customized)
|
||||
* `Ring programming language <http://ring-lang.sourceforge.net/doc/>`__ (customized)
|
||||
* `Ring programming language <https://ring-lang.github.io/doc1.20/>`__ (customized)
|
||||
* `SageMath <https://doc.sagemath.org/>`__ (customized)
|
||||
* `Segway <https://noble.gs.washington.edu/proj/segway/doc/1.1.0/segway.html>`__
|
||||
* `simuPOP <http://simupop.sourceforge.net/manual_release/build/userGuide.html>`__ (customized)
|
||||
* `Sprox <http://sprox.org/>`__ (customized)
|
||||
* `simuPOP <https://bopeng.github.io/simuPOP/>`__ (customized)
|
||||
* `SymPy <https://docs.sympy.org/>`__
|
||||
* `TurboGears <https://turbogears.readthedocs.io/>`__ (customized)
|
||||
* `tvtk <https://docs.enthought.com/mayavi/tvtk/>`__
|
||||
* `Varnish <https://www.varnish-cache.org/docs/>`__ (customized, alabaster for index)
|
||||
* `Waf <https://waf.io/apidocs/>`__
|
||||
* `wxPython Phoenix <https://wxpython.org/Phoenix/docs/html/main.html>`__ (customized)
|
||||
* `Yum <http://yum.baseurl.org/api/yum/>`__
|
||||
* `z3c <https://www.ibiblio.org/paulcarduner/z3ctutorial/>`__
|
||||
* `zc.async <https://pythonhosted.org/zc.async/>`__ (customized)
|
||||
* `Zope <https://docs.zope.org/zope2/>`__ (customized)
|
||||
* `Zope <https://www.zope.dev/>`__ (customized)
|
||||
|
||||
Documentation using the sphinxdoc theme
|
||||
---------------------------------------
|
||||
|
||||
* `ABRT <https://abrt.readthedocs.io/>`__
|
||||
* `cartopy <https://scitools.org.uk/cartopy/docs/latest/>`__
|
||||
* `Jython <http://www.jython.org/docs/>`__
|
||||
* `Jython <https://jython.readthedocs.io/>`__
|
||||
* `LLVM <https://llvm.org/docs/>`__
|
||||
* `MDAnalysis Tutorial <https://www.mdanalysis.org/MDAnalysisTutorial/>`__
|
||||
* `PyCantonese <https://pycantonese.org/>`__
|
||||
* `PyRe <https://hackl.science/pyre/>`__
|
||||
* `Pyre <https://pyre.readthedocs.io/>`__
|
||||
* `pySPACE <https://pyspace.github.io/pyspace/>`__
|
||||
* `Pysparse <http://pysparse.sourceforge.net/>`__
|
||||
* `PyTango <https://www.esrf.eu/computing/cs/tango/tango_doc/kernel_doc/pytango/latest/>`__
|
||||
* `Pysparse <https://pysparse.sourceforge.net/>`__
|
||||
* `PyTango <https://pytango.readthedocs.io>`__
|
||||
* `Python Wild Magic <https://vmlaker.github.io/pythonwildmagic/>`__ (customized)
|
||||
* `RDKit <https://www.rdkit.org/docs/>`__
|
||||
* `Reteisi <http://www.reteisi.org/contents.html>`__ (customized)
|
||||
* `Sqlkit <http://sqlkit.argolinux.org/>`__ (customized)
|
||||
* `Reteisi <https://www.reteisi.org/contents.html>`__ (customized)
|
||||
* `Turbulenz <http://docs.turbulenz.com/>`__
|
||||
|
||||
Documentation using the nature theme
|
||||
@@ -139,29 +129,32 @@ Documentation using the nature theme
|
||||
* `libLAS <https://liblas.org/>`__ (customized)
|
||||
* `Lmod <https://lmod.readthedocs.io/>`__
|
||||
* `MapServer <https://mapserver.org/>`__ (customized)
|
||||
* `pyglet <https://pyglet.readthedocs.io/>`__ (customized)
|
||||
* `PyWavelets <https://pywavelets.readthedocs.io/>`__
|
||||
* `Setuptools <https://setuptools.readthedocs.io/>`__
|
||||
* `Spring Python <https://docs.spring.io/spring-python/1.2.x/sphinx/html/>`__
|
||||
* `StatsModels <https://www.statsmodels.org/>`__ (customized)
|
||||
* `Sylli <http://sylli.sourceforge.net/>`__
|
||||
* `Sylli <https://sylli.sourceforge.net/>`__
|
||||
|
||||
Documentation using another builtin theme
|
||||
-----------------------------------------
|
||||
|
||||
* `Breathe <https://breathe.readthedocs.io/>`__ (haiku)
|
||||
* `Breezy (fork of Bazaar) <https://www.breezy-vcs.org/doc/en/>`__ (agogo)
|
||||
* `MPipe <https://vmlaker.github.io/mpipe/>`__ (sphinx13)
|
||||
* `NLTK <https://www.nltk.org/>`__ (agogo)
|
||||
* `PyPubSub <https://pypubsub.readthedocs.io/>`__ (bizstyle)
|
||||
* `Pylons <https://docs.pylonsproject.org/projects/pylons-webframework/>`__ (pyramid)
|
||||
* `Pyramid web framework <https://docs.pylonsproject.org/projects/pyramid/>`__ (pyramid)
|
||||
* `RxDock <https://www.rxdock.org/documentation/devel/html/>`__
|
||||
* `RxDock <https://rxdock.gitlab.io/documentation/devel/html/>`__ (bizstyle)
|
||||
* `Sphinx <https://www.sphinx-doc.org/>`__ (sphinx13) :-)
|
||||
* `Valence <https://docs.valence.desire2learn.com/>`__ (haiku, customized)
|
||||
|
||||
Documentation using sphinx_rtd_theme
|
||||
------------------------------------
|
||||
Documentation using Read the Docs Sphinx Theme
|
||||
----------------------------------------------
|
||||
|
||||
`Read the Docs Sphinx Theme documentation <https://sphinx-rtd-theme.readthedocs.io/>`__
|
||||
|
||||
* `Aesara (fork of Theano) <https://aesara.readthedocs.io/>`__
|
||||
* `Annotator <https://docs.annotatorjs.org/>`__
|
||||
* `Ansible <https://docs.ansible.com/>`__ (customized)
|
||||
* `Arcade <https://arcade.academy/>`__
|
||||
@@ -189,10 +182,9 @@ Documentation using sphinx_rtd_theme
|
||||
* `DNF <https://dnf.readthedocs.io/>`__
|
||||
* `Distro Tracker <https://qa.pages.debian.net/distro-tracker/>`__
|
||||
* `Django-cas-ng <https://djangocas.dev/docs/>`__
|
||||
* `dj-stripe <https://dj-stripe.readthedocs.io/>`__
|
||||
* `dj-stripe <https://dj-stripe.github.io/dj-stripe/>`__
|
||||
* `edX <https://docs.edx.org/>`__
|
||||
* `Electrum <https://docs.electrum.org/>`__
|
||||
* `Elemental <https://libelemental.org/documentation/dev/>`__
|
||||
* `ESWP3 <https://eswp3.readthedocs.io/>`__
|
||||
* `Ethereum Homestead <https://www.ethdocs.org/>`__
|
||||
* `Exhale <https://exhale.readthedocs.io/>`__
|
||||
@@ -211,7 +203,6 @@ Documentation using sphinx_rtd_theme
|
||||
* `HDF5 for Python (h5py) <https://docs.h5py.org/>`__
|
||||
* `HyperKitty <https://hyperkitty.readthedocs.io/>`__
|
||||
* `Hyperledger Fabric <https://hyperledger-fabric.readthedocs.io/>`__
|
||||
* `Hyperledger Sawtooth <https://sawtooth.hyperledger.org/docs/>`__
|
||||
* `IdentityServer <https://docs.identityserver.io/>`__
|
||||
* `Idris <https://docs.idris-lang.org/>`__
|
||||
* `Inkscape <https://inkscape-manuals.readthedocs.io/>`__ (customized)
|
||||
@@ -223,10 +214,9 @@ Documentation using sphinx_rtd_theme
|
||||
* `Learning Apache Spark with Python <https://runawayhorse001.github.io/LearningApacheSpark>`__
|
||||
* `LibCEED <https://libceed.readthedocs.io/>`__
|
||||
* `Linguistica <https://linguistica-uchicago.github.io/lxa5/>`__
|
||||
* `Linux kernel <https://www.kernel.org/doc/html/latest/index.html>`__
|
||||
* `Mailman <https://docs.list.org/>`__
|
||||
* `MathJax <https://docs.mathjax.org/>`__
|
||||
* `MDTraj <http://mdtraj.org/latest/>`__ (customized)
|
||||
* `MDTraj <https://mdtraj.org/>`__ (customized)
|
||||
* `Mesa 3D <https://docs.mesa3d.org/>`__
|
||||
* `micca - MICrobial Community Analysis <https://micca.readthedocs.io/>`__
|
||||
* `MicroPython <https://docs.micropython.org/>`__
|
||||
@@ -256,9 +246,9 @@ Documentation using sphinx_rtd_theme
|
||||
* `PHPUnit <https://phpunit.readthedocs.io/>`__
|
||||
* `PHPWord <https://phpword.readthedocs.io/>`__
|
||||
* `PROS <https://pros.cs.purdue.edu/v5/>`__ (customized)
|
||||
* `Pushkin <http://docs.pushkin.io/>`__
|
||||
* `Pweave <https://mpastell.com/pweave/>`__
|
||||
* `pyca/cryptograhpy <https://cryptography.io/>`__
|
||||
* `pyglet <https://pyglet.readthedocs.io/>`__
|
||||
* `PyNaCl <https://pynacl.readthedocs.io/>`__
|
||||
* `pyOpenSSL <https://www.pyopenssl.org/>`__
|
||||
* `PyPy <https://doc.pypy.org/>`__
|
||||
@@ -270,14 +260,13 @@ Documentation using sphinx_rtd_theme
|
||||
* `Free your information from their silos (French) <https://redaction-technique.org/>`__ (customized)
|
||||
* `Releases Sphinx extension <https://releases.readthedocs.io/>`__
|
||||
* `Qtile <https://docs.qtile.org/>`__
|
||||
* `Quex <http://quex.sourceforge.net/doc/html/main.html>`__
|
||||
* `QuTiP <https://qutip.org/docs/latest/>`__
|
||||
* `Satchmo <http://docs.satchmoproject.com/>`__
|
||||
* `Quex <https://quex.sourceforge.net/doc/html/main.html>`__
|
||||
* `QuTiP <https://qutip.readthedocs.io/en/latest/>`__
|
||||
* `Sawtooth <https://sawtooth.splinter.dev/docs>`__
|
||||
* `Scapy <https://scapy.readthedocs.io/>`__
|
||||
* `SimGrid <https://simgrid.org/doc/latest/>`__
|
||||
* `SimPy <https://simpy.readthedocs.io/>`__
|
||||
* `six <https://six.readthedocs.io/>`__
|
||||
* `SlamData <https://newdocs.slamdata.com>`__
|
||||
* `Solidity <https://solidity.readthedocs.io/>`__
|
||||
* `Sonos Controller (SoCo) <https://docs.python-soco.com/>`__
|
||||
* `Sphinx AutoAPI <https://sphinx-autoapi.readthedocs.io/>`__
|
||||
@@ -287,13 +276,11 @@ Documentation using sphinx_rtd_theme
|
||||
* `Sphinx with Github Webpages <https://runawayhorse001.github.io/SphinxGithub>`__
|
||||
* `SpotBugs <https://spotbugs.readthedocs.io/>`__
|
||||
* `StarUML <https://docs.staruml.io/>`__
|
||||
* `Sublime Text Unofficial Documentation <http://docs.sublimetext.info/>`__
|
||||
* `Sublime Text Unofficial Documentation <https://docs.sublimetext.info/>`__
|
||||
* `SunPy <https://docs.sunpy.org/>`__
|
||||
* `Sylius <http://docs.sylius.org/>`__
|
||||
* `Sylius <https://docs.sylius.com/>`__
|
||||
* `Syncthing <https://docs.syncthing.net/>`__
|
||||
* `Tango Controls <https://tango-controls.readthedocs.io/>`__ (customized)
|
||||
* `Topshelf <https://docs.topshelf-project.com/>`__
|
||||
* `Theano <http://www.deeplearning.net/software/theano/>`__
|
||||
* `ThreatConnect <https://docs.threatconnect.com/>`__
|
||||
* `TrueNAS <https://www.ixsystems.com/documentation/truenas/>`__ (customized)
|
||||
* `Tuleap <https://tuleap.net/doc/en/>`__
|
||||
@@ -309,9 +296,11 @@ Documentation using sphinx_rtd_theme
|
||||
* `Zeek <https://docs.zeek.org/>`__
|
||||
* `Zulip <https://zulip.readthedocs.io/>`__
|
||||
|
||||
Documentation using sphinx_bootstrap_theme
|
||||
Documentation using Sphinx Bootstrap Theme
|
||||
------------------------------------------
|
||||
|
||||
`Sphinx Bootstrap Theme documentation <https://ryan-roemer.github.io/sphinx-bootstrap-theme/>`__
|
||||
|
||||
* `Bootstrap Theme <https://ryan-roemer.github.io/sphinx-bootstrap-theme/>`__
|
||||
* `C/C++ Software Development with Eclipse <https://eclipsebook.in/>`__
|
||||
* `Dataverse <https://guides.dataverse.org/>`__
|
||||
@@ -319,16 +308,18 @@ Documentation using sphinx_bootstrap_theme
|
||||
* `Hangfire <https://docs.hangfire.io/>`__
|
||||
* `Hedge <https://documen.tician.de/hedge/>`__
|
||||
* `ObsPy <https://docs.obspy.org/>`__
|
||||
* `Open Dylan <https://opendylan.org/documentation/>`__
|
||||
* `OPNFV <https://docs.opnfv.org/>`__
|
||||
* `Pootle <https://docs.translatehouse.org/projects/pootle/>`__
|
||||
* `PyUblas <https://documen.tician.de/pyublas/>`__
|
||||
* `seaborn <https://seaborn.pydata.org/>`__
|
||||
|
||||
Documentation using pydata_sphinx_theme
|
||||
Documentation using PyData Sphinx Theme
|
||||
---------------------------------------
|
||||
|
||||
`Pydata Sphinx Theme documentation <https://pydata-sphinx-theme.readthedocs.io/>`__
|
||||
|
||||
* `Arviz <https://python.arviz.org/en/stable/>`__
|
||||
* `Astropy <https://docs.astropy.org/>`__
|
||||
* `Binder <https://mybinder.readthedocs.io/en/latest/>`__
|
||||
* `Bokeh <https://docs.bokeh.org/en/latest/>`__
|
||||
* `CuPy <https://docs.cupy.dev/en/stable/>`__
|
||||
@@ -343,16 +334,28 @@ Documentation using pydata_sphinx_theme
|
||||
* `NetworkX <https://networkx.org/documentation/stable/>`__
|
||||
* `Numpy <https://numpy.org/doc/stable/>`__
|
||||
* `Pandas <https://pandas.pydata.org/docs/>`__
|
||||
* `PhaseFieldX <https://phasefieldx.readthedocs.io/>`__
|
||||
* `Pystra (continuation of PyRe) <https://pystra.github.io/pystra/>`__
|
||||
* `PyVista <https://docs.pyvista.org/>`__
|
||||
* `SciPy <https://docs.scipy.org/doc/scipy/>`__
|
||||
* `Seaborn <https://seaborn.pydata.org/>`__
|
||||
* `SEPAL <https://docs.sepal.io/en/latest/index.html>`__
|
||||
|
||||
Documentation using Furo theme
|
||||
------------------------------
|
||||
|
||||
`Furo theme documentation <https://pradyunsg.me/furo/>`__
|
||||
|
||||
* `Furo theme <https://pradyunsg.me/furo/>`__
|
||||
* `pytest <https://docs.pytest.org/>`__
|
||||
* `Python Packaging User Guide <https://packaging.python.org/>`__
|
||||
* `Python Developer's Guide <https://devguide.python.org/>`__
|
||||
|
||||
Documentation using a custom theme or integrated in a website
|
||||
-------------------------------------------------------------
|
||||
|
||||
* `AIOHTTP <https://docs.aiohttp.org/>`__
|
||||
* `Apache Cassandra <https://cassandra.apache.org/doc/>`__
|
||||
* `Astropy <https://docs.astropy.org/>`__
|
||||
* `Boto 3 <https://boto3.readthedocs.io/>`__
|
||||
* `CakePHP <https://book.cakephp.org/>`__
|
||||
* `Ceph <https://docs.ceph.com/docs/master/>`__
|
||||
@@ -375,10 +378,10 @@ Documentation using a custom theme or integrated in a website
|
||||
* `Heka <https://hekad.readthedocs.io/>`__
|
||||
* `Istihza (Turkish Python documentation project) <https://python-istihza.yazbel.com/>`__
|
||||
* `JupyterHub <https://jupyterhub.readthedocs.io/>`__
|
||||
* `Kombu <http://docs.kombu.me/>`__
|
||||
* `Lasso <https://lassoguide.com/>`__
|
||||
* `Kombu <https://kombu.readthedocs.io/>`__
|
||||
* `Lasso <http://www.lassoguide.com/>`__
|
||||
* `Mako <https://docs.makotemplates.org/>`__
|
||||
* `MirrorBrain <https://mirrorbrain.org/docs/>`__
|
||||
* `MirrorBrain <https://mirrorbrain-docs.readthedocs.io/>`__
|
||||
* `Mitiq <https://mitiq.readthedocs.io/>`__
|
||||
* `MongoDB <https://docs.mongodb.com/>`__
|
||||
* `Music21 <https://web.mit.edu/music21/doc/>`__
|
||||
@@ -386,11 +389,11 @@ Documentation using a custom theme or integrated in a website
|
||||
* `ndnSIM <https://ndnsim.net/current/>`__
|
||||
* `nose <https://nose.readthedocs.io/>`__
|
||||
* `ns-3 <https://www.nsnam.org/documentation/>`__
|
||||
* `ObjectListView <http://objectlistview.sourceforge.net/python/>`__
|
||||
* `ObjectListView <https://objectlistview.sourceforge.net/python/>`__
|
||||
* `OpenERP <https://doc.odoo.com/>`__
|
||||
* `OpenCV <https://docs.opencv.org/>`__
|
||||
* `OpenLayers <http://docs.openlayers.org/>`__
|
||||
* `OpenTURNS <https://openturns.github.io/openturns/master/>`__
|
||||
* `Open Dylan <https://opendylan.org/>`__
|
||||
* `OpenTURNS <https://openturns.github.io/openturns/latest/>`__
|
||||
* `Open vSwitch <https://docs.openvswitch.org/>`__
|
||||
* `PlatformIO <https://docs.platformio.org/>`__
|
||||
* `Psycopg <https://www.psycopg.org/docs/>`__
|
||||
@@ -401,27 +404,24 @@ Documentation using a custom theme or integrated in a website
|
||||
* `PyMOTW <https://pymotw.com/2/>`__
|
||||
* `python-aspectlib <https://python-aspectlib.readthedocs.io/>`__ (`sphinx_py3doc_enhanced_theme <https://pypi.org/project/sphinx_py3doc_enhanced_theme/>`__)
|
||||
* `QGIS <https://qgis.org/en/docs/index.html>`__
|
||||
* `qooxdoo <https://www.qooxdoo.org/current/>`__
|
||||
* `Roundup <https://www.roundup-tracker.org/>`__
|
||||
* `SaltStack <https://docs.saltstack.com/>`__
|
||||
* `scikit-learn <https://scikit-learn.org/stable/>`__
|
||||
* `Scrapy <https://doc.scrapy.org/>`__
|
||||
* `Seaborn <https://seaborn.pydata.org/>`__
|
||||
* `Selenium <https://docs.seleniumhq.org/docs/>`__
|
||||
* `Self <https://www.selflanguage.org/>`__
|
||||
* `Substance D <https://docs.pylonsproject.org/projects/substanced/>`__
|
||||
* `Sulu <https://docs.sulu.io/>`__
|
||||
* `SQLAlchemy <https://docs.sqlalchemy.org/>`__
|
||||
* `tinyTiM <http://tinytim.sourceforge.net/docs/2.0/>`__
|
||||
* `tinyTiM <https://tinytim.sourceforge.net/docs/2.0/>`__
|
||||
* `Twisted <https://twistedmatrix.com/documents/current/>`__
|
||||
* `Ubuntu Packaging Guide <https://packaging.ubuntu.com/html/>`__
|
||||
* `WebFaction <https://docs.webfaction.com/>`__
|
||||
* `WTForms <https://wtforms.readthedocs.io/>`__
|
||||
|
||||
Homepages and other non-documentation sites
|
||||
-------------------------------------------
|
||||
|
||||
* `Alan Crosswell's Using the Django REST Framework and DRF-JSONAPI <http://www.columbia.edu/~alan/django-jsonapi-training/>`__
|
||||
* `Alan Crosswell's Using the Django REST Framework and DRF-JSONAPI <https://www.columbia.edu/~alan/django-jsonapi-training/>`__
|
||||
* `Arizona State University PHY494/PHY598/CHM598 Simulation approaches to Bio-and Nanophysics <https://becksteinlab.physics.asu.edu/pages/courses/2013/SimBioNano/>`__ (classic)
|
||||
* `Benoit Boissinot <https://bboissin.appspot.com/>`__ (classic, customized)
|
||||
* `EBI Cloud Consultancy Team <https://tsi-ccdoc.readthedocs.io/>`__ (sphinx_rtd_theme)
|
||||
@@ -429,15 +429,12 @@ Homepages and other non-documentation sites
|
||||
* `Florian Diesch <https://www.florian-diesch.de/>`__
|
||||
* `Institute for the Design of Advanced Energy Systems (IDAES) <https://idaes-pse.readthedocs.io/>`__ (sphinx_rtd_theme)
|
||||
* `IDAES Examples <https://idaes.github.io/examples-pse/>`__ (sphinx_rtd_theme)
|
||||
* `Lei Ma's Statistical Mechanics lecture notes <http://statisticalphysics.openmetric.org/>`__ (sphinx_bootstrap_theme)
|
||||
* `Loyola University Chicago CS Academic Programs <https://academics.cs.luc.edu/index.html>`__ (sphinx_rtd_theme, customized)
|
||||
* `Lei Ma's Statistical Mechanics lecture notes <https://statisticalphysics.leima.is/>`__ (sphinx_bootstrap_theme)
|
||||
* `PyXLL <https://www.pyxll.com/>`__ (sphinx_bootstrap_theme, customized)
|
||||
* `SciPy Cookbook <https://scipy-cookbook.readthedocs.io/>`__ (sphinx_rtd_theme)
|
||||
* `Tech writer at work blog <https://blog.documatt.com/>`__ (custom theme)
|
||||
* `The Wine Cellar Book <https://www.thewinecellarbook.com/doc/en/>`__ (sphinxdoc)
|
||||
* `Thomas Cokelaer's Python, Sphinx and reStructuredText tutorials <https://thomas-cokelaer.info/tutorials/>`__ (standard)
|
||||
* `Tech writer at work blog <https://documatt.com/blog/>`__ (custom theme)
|
||||
* `UC Berkeley ME233 Advanced Control Systems II course <https://berkeley-me233.github.io/>`__ (sphinxdoc)
|
||||
* `Željko Svedružić's Biomolecular Structure and Function Laboratory (BioSFLab) <https://www.svedruziclab.com/>`__ (sphinx_bootstrap_theme)
|
||||
* `Željko Svedružić's Biomolecular Structure and Function Laboratory (BioSFLab) <https://svedruziclab.github.io/>`__ (sphinx_bootstrap_theme)
|
||||
|
||||
Books produced using Sphinx
|
||||
---------------------------
|
||||
@@ -448,12 +445,12 @@ Books produced using Sphinx
|
||||
* `"Expert Python Programming" (Japanese translation) <https://www.amazon.co.jp/dp/4048686291/>`__
|
||||
* `"Expert Python Programming 2nd Edition" (Japanese translation) <https://www.amazon.co.jp/dp/4048930613/>`__
|
||||
* `"The Hitchhiker's Guide to Python" <https://docs.python-guide.org/>`__
|
||||
* `"LassoGuide" <https://www.lassosoft.com/Lasso-Documentation>`__
|
||||
* `"LassoGuide" <http://www.lassoguide.com/>`__
|
||||
* `"Learning Sphinx" (in Japanese) <https://www.oreilly.co.jp/books/9784873116488/>`__
|
||||
* `"Learning System Programming with Go (Japanese)" <https://www.lambdanote.com/products/go>`__
|
||||
* `"Mercurial: the definitive guide (Second edition)" <https://book.mercurial-scm.org/>`__
|
||||
* `"Mithril -- The fastest clientside MVC (Japanese)" <https://www.oreilly.co.jp/books/9784873117447/>`__
|
||||
* `"Pioneers and Prominent Men of Utah" <http://pioneers.rstebbing.com/>`__
|
||||
* "Pioneers and Prominent Men of Utah"
|
||||
* `"Pomodoro Technique Illustrated" (Japanese translation) <https://www.amazon.co.jp/dp/4048689525/>`__
|
||||
* `"Professional Software Development" <https://mixmastamyk.bitbucket.io/pro_soft_dev/>`__
|
||||
* `"Python Professional Programming" (in Japanese) <https://www.amazon.co.jp/dp/4798032948/>`__
|
||||
@@ -472,8 +469,6 @@ Books produced using Sphinx
|
||||
Theses produced using Sphinx
|
||||
----------------------------
|
||||
|
||||
* `"A Web-Based System for Comparative Analysis of OpenStreetMap Data by the Use
|
||||
of CouchDB" <https://www.yumpu.com/et/document/view/11722645/masterthesis-markusmayr-0542042>`__
|
||||
* `"Content Conditioning and Distribution for Dynamic Virtual Worlds" <https://www.cs.princeton.edu/research/techreps/TR-941-12>`__
|
||||
* `"The Sphinx Thesis Resource" <https://jterrace.github.io/sphinxtr/>`__
|
||||
|
||||
67
LICENSE
@@ -1,67 +0,0 @@
|
||||
License for Sphinx
|
||||
==================
|
||||
|
||||
Unless otherwise indicated, all code in the Sphinx project is licenced under the
|
||||
two clause BSD licence below.
|
||||
|
||||
Copyright (c) 2007-2023 by the Sphinx team (see AUTHORS file).
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
Licenses for incorporated software
|
||||
==================================
|
||||
|
||||
The included implementation of NumpyDocstring._parse_numpydoc_see_also_section
|
||||
was derived from code under the following license:
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Copyright (C) 2008 Stefan van der Walt <stefan@mentat.za.net>, Pauli Virtanen <pav@iki.fi>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in
|
||||
the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
31
LICENSE.rst
Normal file
@@ -0,0 +1,31 @@
|
||||
License for Sphinx
|
||||
==================
|
||||
|
||||
Unless otherwise indicated, all code in the Sphinx project is licenced under the
|
||||
two clause BSD licence below.
|
||||
|
||||
Copyright (c) 2007-2025 by the Sphinx team (see AUTHORS file).
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
67
Makefile
@@ -1,68 +1,65 @@
|
||||
PYTHON ?= python3
|
||||
|
||||
.PHONY: all
|
||||
all: clean-pyc clean-backupfiles style-check type-check test
|
||||
all: format style-check type-check doclinter test
|
||||
|
||||
.PHONY: check
|
||||
check: style-check type-check doclinter
|
||||
|
||||
.PHONY: clean
|
||||
clean: clean-pyc clean-pycache clean-patchfiles clean-backupfiles clean-generated clean-testfiles clean-buildfiles clean-mypyfiles
|
||||
|
||||
.PHONY: clean-pyc
|
||||
clean-pyc:
|
||||
clean: clean
|
||||
# clean Python cache files:
|
||||
find . -name '*.pyc' -exec rm -f {} +
|
||||
find . -name '*.pyo' -exec rm -f {} +
|
||||
|
||||
.PHONY: clean-pycache
|
||||
clean-pycache:
|
||||
find . -name __pycache__ -exec rm -rf {} +
|
||||
|
||||
.PHONY: clean-patchfiles
|
||||
clean-patchfiles:
|
||||
find . -name '*.orig' -exec rm -f {} +
|
||||
find . -name '*.rej' -exec rm -f {} +
|
||||
|
||||
.PHONY: clean-backupfiles
|
||||
clean-backupfiles:
|
||||
# clean backup files:
|
||||
find . -name '*~' -exec rm -f {} +
|
||||
find . -name '*.bak' -exec rm -f {} +
|
||||
find . -name '*.swp' -exec rm -f {} +
|
||||
find . -name '*.swo' -exec rm -f {} +
|
||||
|
||||
.PHONY: clean-generated
|
||||
clean-generated:
|
||||
# clean generated:
|
||||
find . -name '.DS_Store' -exec rm -f {} +
|
||||
rm -rf Sphinx.egg-info/
|
||||
rm -rf dist/
|
||||
rm -rf doc/_build/
|
||||
rm -f sphinx/pycode/*.pickle
|
||||
rm -f utils/*3.py*
|
||||
rm -f utils/regression_test.js
|
||||
|
||||
.PHONY: clean-testfiles
|
||||
clean-testfiles:
|
||||
# clean rendered documentation:
|
||||
rm -rf doc/build/
|
||||
rm -rf doc/_build/
|
||||
rm -rf build/sphinx/
|
||||
|
||||
# clean caches:
|
||||
find . -name '.mypy_cache' -exec rm -rf {} +
|
||||
find . -name '.ruff_cache' -exec rm -rf {} +
|
||||
|
||||
# clean test files:
|
||||
rm -rf tests/.coverage
|
||||
rm -rf tests/build
|
||||
rm -rf .tox/
|
||||
rm -rf .cache/
|
||||
find . -name '.pytest_cache' -exec rm -rf {} +
|
||||
rm -f tests/test-server.lock
|
||||
|
||||
.PHONY: clean-buildfiles
|
||||
clean-buildfiles:
|
||||
rm -rf build
|
||||
|
||||
.PHONY: clean-mypyfiles
|
||||
clean-mypyfiles:
|
||||
find . -name '.mypy_cache' -exec rm -rf {} +
|
||||
# clean build files:
|
||||
rm -rf dist/
|
||||
rm -rf build/
|
||||
|
||||
.PHONY: style-check
|
||||
style-check:
|
||||
@flake8
|
||||
@echo '[+] running ruff' ; ruff check .
|
||||
|
||||
.PHONY: format
|
||||
format:
|
||||
@ruff format .
|
||||
|
||||
.PHONY: type-check
|
||||
type-check:
|
||||
mypy sphinx
|
||||
@mypy
|
||||
|
||||
.PHONY: doclinter
|
||||
doclinter:
|
||||
sphinx-lint --enable line-too-long --max-line-length 85 CHANGES *.rst doc/
|
||||
@sphinx-lint --enable all --disable triple-backticks --max-line-length 85 --sort-by filename,line \
|
||||
$(addprefix -i doc/, _build _static _templates _themes) \
|
||||
AUTHORS.rst CHANGES.rst CODE_OF_CONDUCT.rst CONTRIBUTING.rst README.rst doc/
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
|
||||
13
README.rst
@@ -40,7 +40,7 @@ Features
|
||||
* **Language Support**: Python, C, C++, JavaScript, mathematics, and many other
|
||||
languages through extensions.
|
||||
|
||||
For more information, refer to the `the documentation`_.
|
||||
For more information, refer to `the documentation`_.
|
||||
|
||||
Installation
|
||||
============
|
||||
@@ -48,7 +48,7 @@ Installation
|
||||
The following command installs Sphinx from the `Python Package Index`_. You will
|
||||
need a working installation of Python and pip.
|
||||
|
||||
.. code-block:: sh
|
||||
.. code-block:: shell
|
||||
|
||||
pip install -U sphinx
|
||||
|
||||
@@ -58,15 +58,6 @@ Contributing
|
||||
We appreciate all contributions! Refer to `the contributors guide`_ for
|
||||
information.
|
||||
|
||||
Release signatures
|
||||
==================
|
||||
|
||||
Releases are signed with following keys:
|
||||
|
||||
* `498D6B9E <https://pgp.mit.edu/pks/lookup?op=vindex&search=0x102C2C17498D6B9E>`_
|
||||
* `5EBA0E07 <https://pgp.mit.edu/pks/lookup?op=vindex&search=0x1425F8CE5EBA0E07>`_
|
||||
* `61F0FB52 <https://pgp.mit.edu/pks/lookup?op=vindex&search=0x52C8F72A61F0FB52>`_
|
||||
|
||||
.. _the documentation: https://www.sphinx-doc.org/
|
||||
.. _the contributors guide: https://www.sphinx-doc.org/en/master/internals/contributing.html
|
||||
.. _Python Package Index: https://pypi.org/project/Sphinx/
|
||||
|
||||
@@ -14,10 +14,13 @@ texlive-ctablestack [platform:rpm]
|
||||
texlive-gnu-freefont [platform:rpm]
|
||||
texlive-tex-gyre [platform:rpm]
|
||||
texlive-pict2e [platform:rpm]
|
||||
texlive-fontawesome5 [platform:rpm]
|
||||
texlive-xcolor [platform:rpm]
|
||||
latexmk [platform:rpm]
|
||||
|
||||
texlive-latex-recommended [platform:dpkg]
|
||||
texlive-fonts-recommended [platform:dpkg]
|
||||
texlive-fonts-extra [platform:dpkg]
|
||||
tex-gyre [platform:dpkg]
|
||||
texlive-latex-extra [platform:dpkg]
|
||||
texlive-luatex [platform:dpkg]
|
||||
|
||||
346
doc/_static/conf.py.txt
vendored
@@ -1,346 +0,0 @@
|
||||
# test documentation build configuration file, created by
|
||||
# sphinx-quickstart on Sun Jun 26 00:00:43 2016.
|
||||
#
|
||||
# This file is executed through importlib.import_module with
|
||||
# the current directory set to its containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#
|
||||
# import os
|
||||
# import sys
|
||||
# sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#
|
||||
# needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = []
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix(es) of source filenames.
|
||||
# You can specify multiple suffix as a list of string:
|
||||
#
|
||||
# source_suffix = ['.rst', '.md']
|
||||
source_suffix = '.rst'
|
||||
|
||||
# The encoding of source files.
|
||||
#
|
||||
# source_encoding = 'utf-8-sig'
|
||||
|
||||
# The master toctree document.
|
||||
root_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = 'test'
|
||||
copyright = '2016, test'
|
||||
author = 'test'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = 'test'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = 'test'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#
|
||||
# This is also used if you do content translation via gettext catalogs.
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
language = None
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#
|
||||
# today = ''
|
||||
#
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
#
|
||||
# today_fmt = '%B %d, %Y'
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# These patterns also affect html_static_path and html_extra_path
|
||||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
||||
|
||||
# The reST default role (used for this markup: `text`) to use for all
|
||||
# documents.
|
||||
#
|
||||
# default_role = None
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
#
|
||||
# add_function_parentheses = True
|
||||
|
||||
# If true, the current module name will be prepended to all description
|
||||
# unit titles (such as .. function::).
|
||||
#
|
||||
# add_module_names = True
|
||||
|
||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||
# output. They are ignored by default.
|
||||
#
|
||||
# show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
# modindex_common_prefix = []
|
||||
|
||||
# If true, keep warnings as "system message" paragraphs in the built documents.
|
||||
# keep_warnings = False
|
||||
|
||||
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
||||
todo_include_todos = False
|
||||
|
||||
|
||||
# -- Options for HTML output ----------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
#
|
||||
html_theme = 'alabaster'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#
|
||||
# html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
# html_theme_path = []
|
||||
|
||||
# The name for this set of Sphinx documents.
|
||||
# "<project> v<release> documentation" by default.
|
||||
#
|
||||
# html_title = 'test vtest'
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#
|
||||
# html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#
|
||||
# html_logo = None
|
||||
|
||||
# The name of an image file (relative to this directory) to use as a favicon of
|
||||
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#
|
||||
# html_favicon = None
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# Add any extra paths that contain custom files (such as robots.txt or
|
||||
# .htaccess) here, relative to this directory. These files are copied
|
||||
# directly to the root of the documentation.
|
||||
#
|
||||
# html_extra_path = []
|
||||
|
||||
# If not None, a 'Last updated on:' timestamp is inserted at every page
|
||||
# bottom, using the given strftime format.
|
||||
# The empty string is equivalent to '%b %d, %Y'.
|
||||
#
|
||||
# html_last_updated_fmt = None
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#
|
||||
# html_sidebars = {}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#
|
||||
# html_additional_pages = {}
|
||||
|
||||
# If false, no module index is generated.
|
||||
#
|
||||
# html_domain_indices = True
|
||||
|
||||
# If false, no index is generated.
|
||||
#
|
||||
# html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#
|
||||
# html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#
|
||||
# html_show_sourcelink = True
|
||||
|
||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||
#
|
||||
# html_show_sphinx = True
|
||||
|
||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||
#
|
||||
# html_show_copyright = True
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
# base URL from which the finished HTML is served.
|
||||
#
|
||||
# html_use_opensearch = ''
|
||||
|
||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||
# html_file_suffix = None
|
||||
|
||||
# Language to be used for generating the HTML full-text search index.
|
||||
# Sphinx supports the following languages:
|
||||
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
|
||||
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
|
||||
#
|
||||
# html_search_language = 'en'
|
||||
|
||||
# A dictionary with options for the search language support, empty by default.
|
||||
# 'ja' uses this config value.
|
||||
# 'zh' user can custom change `jieba` dictionary path.
|
||||
#
|
||||
# html_search_options = {'type': 'default'}
|
||||
|
||||
# The name of a javascript file (relative to the configuration directory) that
|
||||
# implements a search results scorer. If empty, the default will be used.
|
||||
#
|
||||
# html_search_scorer = 'scorer.js'
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'testdoc'
|
||||
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#
|
||||
# 'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#
|
||||
# 'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#
|
||||
# 'preamble': '',
|
||||
|
||||
# Latex figure (float) alignment
|
||||
#
|
||||
# 'figure_align': 'htbp',
|
||||
}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(root_doc, 'test.tex', 'test Documentation',
|
||||
'test', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
#
|
||||
# latex_logo = None
|
||||
|
||||
# If true, show page references after internal links.
|
||||
#
|
||||
# latex_show_pagerefs = False
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#
|
||||
# latex_show_urls = False
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#
|
||||
# latex_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#
|
||||
# latex_domain_indices = True
|
||||
|
||||
|
||||
# -- Options for manual page output ---------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
(root_doc, 'test', 'test Documentation',
|
||||
[author], 1)
|
||||
]
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#
|
||||
# man_show_urls = False
|
||||
|
||||
|
||||
# -- Options for Texinfo output -------------------------------------------
|
||||
|
||||
# Grouping the document tree into Texinfo files. List of tuples
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
(root_doc, 'test', 'test Documentation',
|
||||
author, 'test', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#
|
||||
# texinfo_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#
|
||||
# texinfo_domain_indices = True
|
||||
|
||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||
#
|
||||
# texinfo_show_urls = 'footnote'
|
||||
|
||||
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
||||
#
|
||||
# texinfo_no_detailmenu = False
|
||||
|
||||
# If false, do not generate in manual @ref nodes.
|
||||
#
|
||||
# texinfo_cross_references = False
|
||||
|
||||
# -- A random example -----------------------------------------------------
|
||||
|
||||
import sys, os
|
||||
sys.path.insert(0, os.path.abspath('.'))
|
||||
exclude_patterns = ['zzz']
|
||||
|
||||
numfig = True
|
||||
#language = 'ja'
|
||||
|
||||
extensions.append('sphinx.ext.todo')
|
||||
extensions.append('sphinx.ext.autodoc')
|
||||
#extensions.append('sphinx.ext.autosummary')
|
||||
extensions.append('sphinx.ext.intersphinx')
|
||||
extensions.append('sphinx.ext.mathjax')
|
||||
extensions.append('sphinx.ext.viewcode')
|
||||
extensions.append('sphinx.ext.graphviz')
|
||||
|
||||
|
||||
autosummary_generate = True
|
||||
html_theme = 'default'
|
||||
#source_suffix = ['.rst', '.txt']
|
||||
81
doc/_static/diagrams/sphinx_build_flow.dot
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
// UML for the standard Sphinx build workflow
|
||||
|
||||
digraph build {
|
||||
graph [
|
||||
rankdir=LR
|
||||
];
|
||||
node [
|
||||
shape=rect
|
||||
style=rounded
|
||||
];
|
||||
|
||||
"Sphinx" [
|
||||
shape=record
|
||||
label = "Sphinx | <init> __init__ | <build> build"
|
||||
];
|
||||
"legend" [
|
||||
shape=record
|
||||
label = <<table border="0" cellborder="0" cellspacing="0">
|
||||
<tr><td align="center"><u><b>Method types</b></u></td></tr>
|
||||
<tr><td align="left"><font color="darkorange">Final</font></td></tr>
|
||||
<tr><td align="left"><font color="darkblue">Overridable</font></td></tr>
|
||||
<tr><td align="left"><font color="darkgreen">Abstract</font></td></tr>
|
||||
</table>>
|
||||
];
|
||||
{rank=same; "Sphinx" "legend" };
|
||||
|
||||
"Builder.init" [color=darkblue];
|
||||
"Builder.build_all" [color=darkorange];
|
||||
"Builder.build_specific" [color=darkorange];
|
||||
"Builder.build_update" [color=darkorange];
|
||||
|
||||
"Sphinx":init -> "Builder.init";
|
||||
"Sphinx":build -> "Builder.build_all";
|
||||
"Sphinx":build -> "Builder.build_specific";
|
||||
"Sphinx":build -> "Builder.build_update";
|
||||
|
||||
"Builder.get_outdated_docs" [color=darkgreen];
|
||||
"Builder.build_update" -> "Builder.get_outdated_docs";
|
||||
|
||||
"Builder.build" [color=darkorange];
|
||||
|
||||
"Builder.build_all" -> "Builder.build";
|
||||
"Builder.build_specific" -> "Builder.build";
|
||||
"Builder.build_update":p1 -> "Builder.build";
|
||||
|
||||
"Builder.read" [color=darkorange];
|
||||
"Builder.write" [color=darkorange];
|
||||
"Builder.finish" [color=darkblue];
|
||||
|
||||
"Builder.build" -> "Builder.read";
|
||||
"Builder.build" -> "Builder.write";
|
||||
"Builder.build" -> "Builder.finish";
|
||||
|
||||
"Builder.read_doc" [color=darkorange];
|
||||
"Builder.write_doctree" [color=darkorange];
|
||||
|
||||
"Builder.read" -> "Builder.read_doc";
|
||||
"Builder.read_doc" -> "Builder.write_doctree";
|
||||
|
||||
"Builder.prepare_writing" [color=darkblue];
|
||||
"Builder.copy_assets" [color=darkblue];
|
||||
"Builder.write_documents" [color=darkblue];
|
||||
|
||||
"Builder.write":p1 -> "Builder.prepare_writing";
|
||||
"Builder.write":p1 -> "Builder.copy_assets";
|
||||
"Builder.write_documents" [
|
||||
shape=record
|
||||
label = "<p1> Builder.write_documents | Builder._write_serial | Builder._write_parallel"
|
||||
];
|
||||
"Builder.write":p1 -> "Builder.write_documents";
|
||||
|
||||
"Builder.write_doc" [color=darkgreen];
|
||||
"Builder.get_relative_uri" [color=darkblue];
|
||||
|
||||
"Builder.write_documents":p1 -> "Builder.write_doc";
|
||||
"Builder.write_doc" -> "Builder.get_relative_uri";
|
||||
|
||||
"Builder.get_target_uri" [color=darkgreen];
|
||||
|
||||
"Builder.get_relative_uri" -> "Builder.get_target_uri";
|
||||
}
|
||||
18
doc/_static/diagrams/sphinx_build_phases.dot
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
digraph phases {
|
||||
|
||||
graph [
|
||||
rankdir = LR
|
||||
]
|
||||
|
||||
node [
|
||||
shape = rect;
|
||||
style = filled;
|
||||
fillcolor ="#f7f7f7";
|
||||
fontcolor = "#0a507a"
|
||||
]
|
||||
|
||||
Initialization -> Reading;
|
||||
Reading -> "Consistency checks";
|
||||
"Consistency checks" -> Resolving;
|
||||
Resolving -> Writing;
|
||||
}
|
||||
125
doc/_static/diagrams/sphinx_core_events_flow.dot
vendored
Normal file
@@ -0,0 +1,125 @@
|
||||
// A flow graph of the Sphinx build process, highlighting event callbacks
|
||||
|
||||
digraph events {
|
||||
graph [
|
||||
rankdir=TB
|
||||
];
|
||||
node [
|
||||
shape=rect
|
||||
style=rounded
|
||||
];
|
||||
"Sphinx" [
|
||||
shape=record
|
||||
label = "<init> Sphinx.__init__() | <build> Sphinx.build()"
|
||||
];
|
||||
|
||||
// During initialization
|
||||
"config-inited"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Sphinx":init -> "config-inited";
|
||||
"builder-inited"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Sphinx":init -> "builder-inited";
|
||||
|
||||
// During build
|
||||
"Builder" [label = "Builder.build()"]
|
||||
"Sphinx":build -> "Builder";
|
||||
"Builder.build" [
|
||||
shape=record
|
||||
label = "
|
||||
<before_read> before read |
|
||||
<read> read |
|
||||
<after_read> after read |
|
||||
<write> write |
|
||||
<finalize> finalize"
|
||||
];
|
||||
"Builder" -> "Builder.build";
|
||||
|
||||
"env-get-outdated"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Builder.build":before_read -> "env-get-outdated";
|
||||
remove_each_doc [shape="ellipse", label="for removed"];
|
||||
"Builder.build":before_read -> "remove_each_doc";
|
||||
"env-purge-doc"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"remove_each_doc" -> "env-purge-doc";
|
||||
"env-before-read-docs"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Builder.build":before_read -> "env-before-read-docs";
|
||||
|
||||
// during read phase
|
||||
"Builder.read" [label = "Builder.read()"]
|
||||
"Builder.build":read -> "Builder.read";
|
||||
read_each_doc [shape="ellipse", label="for added | changed"];
|
||||
"Builder.read" -> "read_each_doc";
|
||||
merge_each_process [
|
||||
shape="ellipse", label="for each process\n(parallel only)"
|
||||
];
|
||||
"Builder.read" -> merge_each_process;
|
||||
"env-updated"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Builder.read" -> "env-updated"
|
||||
|
||||
// during read phase, for each document/process
|
||||
"env-purge-doc"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"read_each_doc" -> "env-purge-doc";
|
||||
"source-read"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"read_each_doc" -> "source-read";
|
||||
"Include" [label="Include\ndirective"]
|
||||
"read_each_doc" -> "Include";
|
||||
"include-read"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Include" -> "include-read";
|
||||
"ObjectDescription" [label="ObjectDescription\ndirective"]
|
||||
"read_each_doc" -> "ObjectDescription";
|
||||
"object-description-transform"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"ObjectDescription" -> "object-description-transform";
|
||||
"doctree-read"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"read_each_doc" -> "doctree-read";
|
||||
"env-merge-info"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"merge_each_process" -> "env-merge-info";
|
||||
|
||||
// after read phase
|
||||
"env-get-updated"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Builder.build":after_read -> "env-get-updated";
|
||||
if_read_changes [shape="diamond", label="if changed\ndocuments"];
|
||||
"Builder.build":after_read -> if_read_changes;
|
||||
if_read_changes -> "cache the\nBuild.Environment";
|
||||
"env-check-consistency"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
if_read_changes -> "env-check-consistency";
|
||||
|
||||
// during write phase
|
||||
"write-started"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Builder.write" [label = "Builder.write()"]
|
||||
"Builder.build":write -> "Builder.write";
|
||||
"Builder.write" -> "write-started";
|
||||
write_each_doc [shape="ellipse", label="for updated"];
|
||||
"Builder.write" -> write_each_doc;
|
||||
"ReferenceResolver" [
|
||||
label="ReferenceResolver\nPost-transform"
|
||||
]
|
||||
write_each_doc -> "ReferenceResolver";
|
||||
"missing-reference"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
ReferenceResolver -> "missing-reference";
|
||||
"warn-missing-reference"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
ReferenceResolver -> "warn-missing-reference";
|
||||
"HyperlinkCollector" [
|
||||
label="HyperlinkCollector\nPost-transform"
|
||||
]
|
||||
write_each_doc -> "HyperlinkCollector";
|
||||
"linkcheck-process-uri"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
HyperlinkCollector -> "linkcheck-process-uri";
|
||||
"doctree-resolved"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
write_each_doc -> "doctree-resolved";
|
||||
"html-page-context"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
write_each_doc -> "html-page-context";
|
||||
|
||||
// html only
|
||||
"html-collect-pages"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Builder.build":finalize -> "html-collect-pages";
|
||||
|
||||
// finalize build
|
||||
"build-finished"[style=filled fillcolor="#D5FFFF" color=blue penwidth=2];
|
||||
"Builder.build":finalize -> "build-finished";
|
||||
|
||||
// constrain layout ordering
|
||||
{rank=same "config-inited" "builder-inited"};
|
||||
{rank=same; "env-get-outdated" "env-before-read-docs" "env-get-updated"};
|
||||
{rank=same; "env-purge-doc" "source-read" "doctree-read", "merge_each_process"};
|
||||
{rank=same; "env-updated" "env-check-consistency"};
|
||||
{rank=same; "env-merge-info" "Builder.write"};
|
||||
{rank=max; "build-finished"};
|
||||
}
|
||||
BIN
doc/_static/jupyter-logo.png
vendored
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
doc/_static/linux-logo.png
vendored
Normal file
|
After Width: | Height: | Size: 602 KiB |
BIN
doc/_static/more.png
vendored
|
Before Width: | Height: | Size: 1.3 KiB |
BIN
doc/_static/python-logo.png
vendored
Normal file
|
After Width: | Height: | Size: 183 KiB |
32
doc/_static/translation.svg
vendored
@@ -13,22 +13,22 @@ link .pot to .po--><path d="M406.62,48.5 C427.03,48.5 456.51,48.5 477.68,48.5 "
|
||||
link .po to .mo--><path d="M491.03,71.06 C476.38,95.43 452.52,135.09 436.8,161.24 " fill="none" id=".po->.mo" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="434.15,165.63,442.2104,159.9705,436.7225,161.3425,435.3505,155.8546,434.15,165.63" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="50" x="462" y="132.0669">msgfmt</text><!--MD5=[02fa75427086f2cebad4a5f1b2dd96dd]
|
||||
reverse link TranslatedBuild to .mo--><path d="M346.94,188.5 C363.88,188.5 380.82,188.5 397.76,188.5 " fill="none" id="TranslatedBuild<-.mo" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="341.68,188.5,350.68,192.5,346.68,188.5,350.68,184.5,341.68,188.5" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[e72b6258a50343d4926d984a36170cf2]
|
||||
link .rst to TranslatedBuild--><path d="M188.71,66.7 C207.27,91.8 241.75,138.46 262,165.86 " fill="none" id=".rst->TranslatedBuild" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#A80036" points="265.13,170.08,262.9905,160.4663,262.1552,166.0612,256.5604,165.226,265.13,170.08" style="stroke: #A80036; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="165" x="241" y="132.0669">sphinx-build -Dlanguage=</text><!--MD5=[30dba34f254541587149d90abdb00688]
|
||||
@startuml
|
||||
file "SphinxProject"
|
||||
file ".rst"
|
||||
database ".pot"
|
||||
database ".po"
|
||||
database ".mo"
|
||||
actor translator
|
||||
file TranslatedBuild
|
||||
translator -l-> .po
|
||||
SphinxProject -r-> .rst
|
||||
.rst -r-> .pot : sphinx-build gettext
|
||||
.pot -r-> .po : Pootle
|
||||
.po -d-> .mo : msgfmt
|
||||
.mo -l-> TranslatedBuild
|
||||
.rst -d-> TranslatedBuild : "sphinx-build -Dlanguage="
|
||||
@enduml
|
||||
@startuml
|
||||
file "SphinxProject"
|
||||
file ".rst"
|
||||
database ".pot"
|
||||
database ".po"
|
||||
database ".mo"
|
||||
actor translator
|
||||
file TranslatedBuild
|
||||
translator -l-> .po
|
||||
SphinxProject -r-> .rst
|
||||
.rst -r-> .pot : sphinx-build gettext
|
||||
.pot -r-> .po : Pootle
|
||||
.po -d-> .mo : msgfmt
|
||||
.mo -l-> TranslatedBuild
|
||||
.rst -d-> TranslatedBuild : "sphinx-build -Dlanguage="
|
||||
@enduml
|
||||
|
||||
PlantUML version 1.2020.00(Sat Jan 11 12:30:53 GMT 2020)
|
||||
(GPL source distribution)
|
||||
|
||||
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
BIN
doc/_static/tutorial/lumache-autosummary.png
vendored
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 20 KiB |
BIN
doc/_static/tutorial/lumache-first-light.png
vendored
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 35 KiB |
BIN
doc/_static/tutorial/lumache-furo.png
vendored
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 39 KiB |
BIN
doc/_static/tutorial/lumache-py-function-full.png
vendored
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 56 KiB |
BIN
doc/_static/tutorial/lumache-py-function.png
vendored
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 32 KiB |
2
doc/_templates/contents.html
vendored
@@ -2,5 +2,7 @@
|
||||
{% set title = _('Sphinx documentation contents') %}
|
||||
{% block body %}
|
||||
<h1>{{ _('Sphinx documentation contents') }}</h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
{{ toctree(includehidden=True, collapse=False, maxdepth=3) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
96
doc/_themes/sphinx13/layout.html
vendored
@@ -3,24 +3,33 @@
|
||||
|
||||
{% block extrahead %}
|
||||
{{ super() }}
|
||||
{%- if not embedded and pagename == 'index' %}
|
||||
{%- if not embedded and pagename == root_doc %}
|
||||
<style>.related { display: none; }</style>
|
||||
{%- endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block header %}
|
||||
{{ svgs() }}
|
||||
<div class="pageheader">
|
||||
<a href="{{ pathto('index') }}">
|
||||
<img src="{{ pathto('_static/sphinxheader.png', 1) }}" alt="SPHINX" />
|
||||
</a>
|
||||
<div class="brand">
|
||||
<a href="{{ pathto(root_doc)|e }}">
|
||||
<img src="{{ pathto('_static/sphinx-logo.svg', resource=True) }}" alt="logo" />
|
||||
<span>Sphinx</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="icons">
|
||||
<a href="https://github.com/sphinx-doc/sphinx" title="{{ _('Source Code') }}" target="_blank">
|
||||
<svg><use href="#github"></use></svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{%- block relbar1 %}
|
||||
<div class="related" role="navigation" aria-label="related navigation">
|
||||
<div class="related" role="navigation" aria-label="Related">
|
||||
<h3>{{ _('Navigation') }}</h3>
|
||||
<ul>
|
||||
<li><a href="{{ pathto('index') }}">Documentation</a> »</li>
|
||||
<li><a href="{{ pathto(root_doc)|e }}">Documentation</a> »</li>
|
||||
{%- for parent in parents %}
|
||||
<li class="nav-item nav-item-{{ loop.index }}"><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li>
|
||||
{%- endfor %}
|
||||
@@ -31,20 +40,22 @@
|
||||
|
||||
{%- block content %}
|
||||
<div class="document">
|
||||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
||||
{%- include "searchbox.html" %}
|
||||
<div class="sphinxsidebar-navigation__contents">
|
||||
<h3>{{ _('On this page') }}</h3>
|
||||
{{ toc }}
|
||||
</div>
|
||||
<div class="sphinxsidebar" role="navigation" aria-label="Main">
|
||||
{%- include "searchfield.html" %}
|
||||
{%- if display_toc %}
|
||||
<div class="sphinxsidebar-navigation__contents">
|
||||
<h3>{{ _('On this page') }}</h3>
|
||||
{{ toc }}
|
||||
</div>
|
||||
{%- endif %}
|
||||
<div class="sphinxsidebar-navigation__pages">
|
||||
<h3>{{ _('Site navigation') }}</h3>
|
||||
{{ toctree(includehidden=True, maxdepth=3, titles_only=True) }}
|
||||
</div>
|
||||
</div>
|
||||
{%- block document %}
|
||||
<div class="body" role="main">
|
||||
{% block body %}{% endblock %}
|
||||
{{ prev_next() }}
|
||||
</div>
|
||||
{%- endblock %}
|
||||
</div>
|
||||
@@ -54,7 +65,64 @@
|
||||
|
||||
{%- block footer %}
|
||||
<div class="footer" role="contentinfo">
|
||||
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
|
||||
{{ copyright_block() }}
|
||||
{% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
|
||||
</div>
|
||||
{%- endblock %}
|
||||
|
||||
{% macro prev_next() %}
|
||||
<div class="related-pages" role="navigation" aria-label="Related">
|
||||
{% if prev -%}
|
||||
<a class="prev-page" href="{{ prev.link }}">
|
||||
<svg><use href="#svg-arrow-right"></use></svg>
|
||||
<div class="page-info">
|
||||
<div class="context">
|
||||
<span>{{ _("Previous") }}</span>
|
||||
</div>
|
||||
{% if prev.link == pathto(root_doc) %}
|
||||
<div class="title">{{ _("Home") }}</div>
|
||||
{% else %}
|
||||
<div class="title">{{ prev.title }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</a>
|
||||
{%- else %}
|
||||
<div></div>
|
||||
{%- endif %}
|
||||
{% if next -%}
|
||||
<a class="next-page" href="{{ next.link }}">
|
||||
<div class="page-info">
|
||||
<div class="context">
|
||||
<span>{{ _("Next") }}</span>
|
||||
</div>
|
||||
<div class="title">{{ next.title }}</div>
|
||||
</div>
|
||||
<svg><use href="#svg-arrow-right"></use></svg>
|
||||
</a>
|
||||
{%- endif %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro svgs() %}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
<symbol id="github" viewBox="0 0 16 16">
|
||||
<title>GitHub</title>
|
||||
<svg
|
||||
stroke="currentColor"
|
||||
fill="currentColor"
|
||||
stroke-width="0"
|
||||
viewBox="0 0 16 16"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
|
||||
></path>
|
||||
</svg>
|
||||
<symbol id="svg-arrow-right" viewBox="0 0 24 24">
|
||||
<title>Expand</title>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather-chevron-right">
|
||||
<polyline points="9 18 15 12 9 6"></polyline>
|
||||
</svg>
|
||||
</symbol>
|
||||
</svg>
|
||||
{% endmacro %}
|
||||
|
||||
@@ -1,134 +0,0 @@
|
||||
/*
|
||||
* _sphinx_javascript_frameworks_compat.js
|
||||
* ~~~~~~~~~~
|
||||
*
|
||||
* Compatibility shim for jQuery and underscores.js.
|
||||
*
|
||||
* WILL BE REMOVED IN Sphinx 6.0
|
||||
* xref RemovedInSphinx60Warning
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* select a different prefix for underscore
|
||||
*/
|
||||
$u = _.noConflict();
|
||||
|
||||
|
||||
/**
|
||||
* small helper function to urldecode strings
|
||||
*
|
||||
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
|
||||
*/
|
||||
jQuery.urldecode = function(x) {
|
||||
if (!x) {
|
||||
return x
|
||||
}
|
||||
return decodeURIComponent(x.replace(/\+/g, ' '));
|
||||
};
|
||||
|
||||
/**
|
||||
* small helper function to urlencode strings
|
||||
*/
|
||||
jQuery.urlencode = encodeURIComponent;
|
||||
|
||||
/**
|
||||
* This function returns the parsed url parameters of the
|
||||
* current request. Multiple values per key are supported,
|
||||
* it will always return arrays of strings for the value parts.
|
||||
*/
|
||||
jQuery.getQueryParameters = function(s) {
|
||||
if (typeof s === 'undefined')
|
||||
s = document.location.search;
|
||||
var parts = s.substr(s.indexOf('?') + 1).split('&');
|
||||
var result = {};
|
||||
for (var i = 0; i < parts.length; i++) {
|
||||
var tmp = parts[i].split('=', 2);
|
||||
var key = jQuery.urldecode(tmp[0]);
|
||||
var value = jQuery.urldecode(tmp[1]);
|
||||
if (key in result)
|
||||
result[key].push(value);
|
||||
else
|
||||
result[key] = [value];
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
/**
|
||||
* highlight a given string on a jquery object by wrapping it in
|
||||
* span elements with the given class name.
|
||||
*/
|
||||
jQuery.fn.highlightText = function(text, className) {
|
||||
function highlight(node, addItems) {
|
||||
if (node.nodeType === 3) {
|
||||
var val = node.nodeValue;
|
||||
var pos = val.toLowerCase().indexOf(text);
|
||||
if (pos >= 0 &&
|
||||
!jQuery(node.parentNode).hasClass(className) &&
|
||||
!jQuery(node.parentNode).hasClass("nohighlight")) {
|
||||
var span;
|
||||
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
|
||||
if (isInSVG) {
|
||||
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
||||
} else {
|
||||
span = document.createElement("span");
|
||||
span.className = className;
|
||||
}
|
||||
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
|
||||
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
|
||||
document.createTextNode(val.substr(pos + text.length)),
|
||||
node.nextSibling));
|
||||
node.nodeValue = val.substr(0, pos);
|
||||
if (isInSVG) {
|
||||
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
||||
var bbox = node.parentElement.getBBox();
|
||||
rect.x.baseVal.value = bbox.x;
|
||||
rect.y.baseVal.value = bbox.y;
|
||||
rect.width.baseVal.value = bbox.width;
|
||||
rect.height.baseVal.value = bbox.height;
|
||||
rect.setAttribute('class', className);
|
||||
addItems.push({
|
||||
"parent": node.parentNode,
|
||||
"target": rect});
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!jQuery(node).is("button, select, textarea")) {
|
||||
jQuery.each(node.childNodes, function() {
|
||||
highlight(this, addItems);
|
||||
});
|
||||
}
|
||||
}
|
||||
var addItems = [];
|
||||
var result = this.each(function() {
|
||||
highlight(this, addItems);
|
||||
});
|
||||
for (var i = 0; i < addItems.length; ++i) {
|
||||
jQuery(addItems[i].parent).before(addItems[i].target);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
/*
|
||||
* backward compatibility for jQuery.browser
|
||||
* This will be supported until firefox bug is fixed.
|
||||
*/
|
||||
if (!jQuery.browser) {
|
||||
jQuery.uaMatch = function(ua) {
|
||||
ua = ua.toLowerCase();
|
||||
|
||||
var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(msie) ([\w.]+)/.exec(ua) ||
|
||||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
|
||||
[];
|
||||
|
||||
return {
|
||||
browser: match[ 1 ] || "",
|
||||
version: match[ 2 ] || "0"
|
||||
};
|
||||
};
|
||||
jQuery.browser = {};
|
||||
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
|
||||
}
|
||||
4
doc/_themes/sphinx13/static/sphinx-logo.svg
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 7">
|
||||
<path d="M8.12 3.27c.45-.32 1.06-.46 1.78-.73l-.31-.7c-1.28.23-2.43-.53-3.68-.7C4 .75 2.24 1.9.36 2.04v.76c1.87.41 3.64 1.26 5.6 1.02-1.21 1.21-2.84 2.64-4.69 2.07C.63 5.77.35 4.87.96 4.6c.27 1.04 1.57.3 1-.52C1.57 3.6.54 3.82.24 4.3c-.87 1.65.84 2.56 2.31 2.32 1.86-.25 3.29-1.71 4.53-3.02-.02.61.18 1.96-.41 2.5l.01.9c.43-.34.8-1.07.92-1.56.16-.63.04-1.02.1-1.53.05-.23.1-.41.42-.64zM1.9 2.39c.77-.23 1.58-.58 2.39-.66-.42 1.38 1.81 1.54 1.56 0 .64.16 1 .3 1.94.7-2.06 1.02-4.05.56-5.89-.04z"/>
|
||||
<path d="M.36 1.81v-.8c.23 0 .84-.18 1.44-.35C2.8.36 4.05 0 4.95 0c1 0 2.05.34 2.82.58l.91.25c.62.07.98-.08.98-.08l.34.73c-.06.02-.56.24-1.41.15-.27-.03-.62-.14-1.06-.29C6.77 1.1 5.82.8 4.95.8c-.79 0-1.97.35-2.92.63-.74.21-1.32.38-1.67.38z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 807 B |
402
doc/_themes/sphinx13/static/sphinx13.css
vendored
@@ -2,21 +2,90 @@
|
||||
|
||||
/* Set master colours */
|
||||
:root {
|
||||
--fonts-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
||||
--fonts-sans-serif: system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
--colour-sphinx-blue: #0A507A;
|
||||
--colour-text: #333;
|
||||
--colour-links-light: #057;
|
||||
--admonition-radius: 3px;
|
||||
|
||||
/* colours for admonition titles */
|
||||
--color-admonition-bg: hsl(0, 0%, 90%);
|
||||
--color-admonition-fg: hsl(0, 0%, 50%);
|
||||
--colour-warning-bg: hsl(28.5, 74%, 90%);
|
||||
--colour-warning-fg: hsl(28.5, 74%, 50%);
|
||||
--colour-note-bg: hsl(219.5, 84%, 90%);
|
||||
--colour-note-fg: hsl(219.5, 84%, 50%);
|
||||
--colour-success-bg: hsl(150, 36.7%, 90%);
|
||||
--colour-success-fg: hsl(150, 36.7%, 50%);
|
||||
--colour-error-bg: hsl(0, 37%, 90%);
|
||||
--colour-error-fg: hsl(0, 37%, 50%);
|
||||
--colour-todo-bg: hsl(266.8, 100%, 90%);
|
||||
--colour-todo-fg: hsl(266.8, 100%, 50%);
|
||||
|
||||
/* icons used for admonition titles */
|
||||
--icon-pencil: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"/></svg>');
|
||||
--icon-abstract: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 5h16v2H4V5m0 4h16v2H4V9m0 4h16v2H4v-2m0 4h10v2H4v-2z"/></svg>');
|
||||
--icon-info: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 002 12a10 10 0 0010 10 10 10 0 0010-10A10 10 0 0012 2z"/></svg>');
|
||||
--icon-flame: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.55 11.2c-.23-.3-.5-.56-.76-.82-.65-.6-1.4-1.03-2.03-1.66C13.3 7.26 13 4.85 13.91 3c-.91.23-1.75.75-2.45 1.32-2.54 2.08-3.54 5.75-2.34 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.22.1-.46.04-.64-.12a.83.83 0 01-.15-.17c-1.1-1.43-1.28-3.48-.53-5.12C5.89 10 5 12.3 5.14 14.47c.04.5.1 1 .27 1.5.14.6.4 1.2.72 1.73 1.04 1.73 2.87 2.97 4.84 3.22 2.1.27 4.35-.12 5.96-1.6 1.8-1.66 2.45-4.32 1.5-6.6l-.13-.26c-.2-.46-.47-.87-.8-1.25l.05-.01m-3.1 6.3c-.28.24-.73.5-1.08.6-1.1.4-2.2-.16-2.87-.82 1.19-.28 1.89-1.16 2.09-2.05.17-.8-.14-1.46-.27-2.23-.12-.74-.1-1.37.18-2.06.17.38.37.76.6 1.06.76 1 1.95 1.44 2.2 2.8.04.14.06.28.06.43.03.82-.32 1.72-.92 2.27h.01z"/></svg>');
|
||||
--icon-question: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.07 11.25l-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 00-2-2 2 2 0 00-2 2H8a4 4 0 014-4 4 4 0 014 4 3.2 3.2 0 01-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 002 12a10 10 0 0010 10 10 10 0 0010-10c0-5.53-4.5-10-10-10z"/></svg>');
|
||||
--icon-warning: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2v-4h2m0 8h-2v-2h2M1 21h22L12 2 1 21z"/></svg>');
|
||||
--icon-failure: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12 6.47 2 12 2m3.59 5L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41 15.59 7z"/></svg>');
|
||||
--icon-spark: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.5 20l4.86-9.73H13V4l-5 9.73h3.5V20M12 2c2.75 0 5.1 1 7.05 2.95C21 6.9 22 9.25 22 12s-1 5.1-2.95 7.05C17.1 21 14.75 22 12 22s-5.1-1-7.05-2.95C3 17.1 2 14.75 2 12s1-5.1 2.95-7.05C6.9 3 9.25 2 12 2z"/></svg>');
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--fonts-sans-serif);
|
||||
margin: 0 auto;
|
||||
color: var(--colour-text);
|
||||
color: var(var(--colour-text));
|
||||
}
|
||||
|
||||
.pageheader {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 99;
|
||||
height: 3rem;
|
||||
display: flex;
|
||||
column-gap: 1em;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
background-color: var(--colour-sphinx-blue);
|
||||
padding: 10px 15px;
|
||||
padding: 10px 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.pageheader .brand {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
column-gap: 1em;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.pageheader .brand img {
|
||||
width: 2em;
|
||||
filter: invert(1) drop-shadow(1px 1px 2px black);
|
||||
}
|
||||
|
||||
.pageheader .brand span {
|
||||
color: white;
|
||||
margin-left: 0.4em;
|
||||
font-weight: 400;
|
||||
font-size: 2em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.pageheader .icons a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.pageheader .icons a:hover {
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
.pageheader .icons svg {
|
||||
height: 1.6em;
|
||||
width: 1.6em;
|
||||
}
|
||||
|
||||
div.document {
|
||||
@@ -33,6 +102,9 @@ div.body {
|
||||
}
|
||||
|
||||
div.related {
|
||||
position: sticky;
|
||||
top: 3rem;
|
||||
z-index: 99;
|
||||
display: flex;
|
||||
color: white;
|
||||
background-color: var(--colour-sphinx-blue);
|
||||
@@ -60,19 +132,31 @@ div.sphinxsidebarwrapper {
|
||||
|
||||
div.sphinxsidebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
top: 4.6rem;
|
||||
align-self: flex-start;
|
||||
height: 100vh;
|
||||
height: calc(100vh - 4.6rem);
|
||||
width: 250px;
|
||||
min-width: 150px;
|
||||
overflow-y: auto;
|
||||
overflow-wrap: break-word;
|
||||
margin: 0;
|
||||
padding-right: 15px;
|
||||
padding: 0.5em 15px 0.5em 10px;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* horizontal line between sidebar components */
|
||||
div.sphinxsidebar div:not(:first-child) {
|
||||
border-top: 1px solid var(--colour-sphinx-blue);
|
||||
}
|
||||
|
||||
/* overwrite color from basic theme */
|
||||
div.sphinxsidebar input {
|
||||
border: 1px solid var(--colour-sphinx-blue);
|
||||
}
|
||||
|
||||
div.sphinxsidebar h3 {
|
||||
font-size: 1.5em;
|
||||
font-size: 1.2em;
|
||||
font-weight: 300;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.5em;
|
||||
padding-top: 0.5em;
|
||||
@@ -127,6 +211,20 @@ div.sphinxsidebar li.current > a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.sphinxsidebar #searchbox {
|
||||
margin: 12px 0 20px 0;
|
||||
}
|
||||
|
||||
div.sphinxsidebar #searchbox input[type="text"] {
|
||||
border-radius: var(--admonition-radius) 0 0 var(--admonition-radius);
|
||||
}
|
||||
|
||||
div.sphinxsidebar #searchbox input[type="submit"] {
|
||||
border-radius: 0 var(--admonition-radius) var(--admonition-radius) 0;
|
||||
color: white;
|
||||
background: var(--colour-sphinx-blue);
|
||||
}
|
||||
|
||||
div.footer {
|
||||
background-color: var(--colour-sphinx-blue);
|
||||
color: #ccc;
|
||||
@@ -143,8 +241,14 @@ div.footer a {
|
||||
|
||||
/* -- body styles ----------------------------------------------------------- */
|
||||
|
||||
.body :target {
|
||||
/* ensure targets are not obscured by top-bar when they are navigated to */
|
||||
scroll-margin-top: 6.5rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.8em 0 0.5em 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -160,7 +264,7 @@ h1 {
|
||||
margin: 10px 0 0 0;
|
||||
font-size: 2.4em;
|
||||
color: var(--colour-sphinx-blue);
|
||||
font-weight: 300;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
h1 span.pre {
|
||||
@@ -172,7 +276,7 @@ h1 span.pre {
|
||||
h2 {
|
||||
margin: 1em 0 0.2em 0;
|
||||
font-size: 1.5em;
|
||||
font-weight: 300;
|
||||
font-weight: 400;
|
||||
padding: 0;
|
||||
color: #174967;
|
||||
}
|
||||
@@ -180,7 +284,7 @@ h2 {
|
||||
h3 {
|
||||
margin: 1em 0 -0.3em 0;
|
||||
font-size: 1.3em;
|
||||
font-weight: 300;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
div.body h1 a, div.body h2 a, div.body h3 a, div.body h4 a, div.body h5 a, div.body h6 a {
|
||||
@@ -217,6 +321,13 @@ cite, code, tt {
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
div.body code.literal {
|
||||
background-color: #f3f4f5;
|
||||
border: 1px solid #d1d5da;
|
||||
border-radius: 0.25rem;
|
||||
padding: .1rem .2rem;
|
||||
}
|
||||
|
||||
table.deprecated code.literal {
|
||||
word-break: break-all;
|
||||
}
|
||||
@@ -285,6 +396,10 @@ aside.topic {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
p.topic-title {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
margin: 0 -0.5em 0 -0.5em;
|
||||
@@ -298,7 +413,7 @@ div.admonition, div.warning {
|
||||
font-size: 0.9em;
|
||||
margin: 1em 0 1em 0;
|
||||
border: 1px solid #86989B;
|
||||
border-radius: 2px;
|
||||
border-radius: var(--admonition-radius);
|
||||
background-color: #f7f7f7;
|
||||
padding: 1rem;
|
||||
}
|
||||
@@ -312,13 +427,120 @@ div.admonition > pre, div.warning > pre {
|
||||
margin: 0.4em 1em 0.4em 1em;
|
||||
}
|
||||
|
||||
div.admonition > p.admonition-title,
|
||||
div.warning > p.admonition-title {
|
||||
font-weight: bold;
|
||||
div.admonition > p.admonition-title {
|
||||
position: relative;
|
||||
font-weight: 500;
|
||||
background-color: var(--color-admonition-bg);
|
||||
margin: -1rem -1rem 0.8rem -1rem;
|
||||
padding: 0.3rem 1rem 0.3rem 2rem;
|
||||
border-radius: var(--admonition-radius) var(--admonition-radius) 0 0;
|
||||
}
|
||||
|
||||
div.attention > p.admonition-title,
|
||||
div.danger > p.admonition-title,
|
||||
div.error > p.admonition-title {
|
||||
background-color: var(--colour-error-bg);
|
||||
}
|
||||
|
||||
div.important > p.admonition-title,
|
||||
div.caution > p.admonition-title,
|
||||
div.warning > p.admonition-title {
|
||||
background-color: var(--colour-warning-bg);
|
||||
}
|
||||
|
||||
div.note > p.admonition-title {
|
||||
background-color: var(--colour-note-bg);
|
||||
}
|
||||
|
||||
div.hint > p.admonition-title,
|
||||
div.tip > p.admonition-title,
|
||||
div.seealso > p.admonition-title {
|
||||
background-color: var(--colour-success-bg);
|
||||
}
|
||||
|
||||
div.admonition-todo > p.admonition-title {
|
||||
background-color: var(--colour-todo-bg);
|
||||
}
|
||||
|
||||
p.admonition-title::before {
|
||||
content: "";
|
||||
height: 1rem;
|
||||
left: .5rem;
|
||||
top: .5rem;
|
||||
position: absolute;
|
||||
width: 1rem;
|
||||
background-color: #5f5f5f;
|
||||
}
|
||||
|
||||
div.admonition > p.admonition-title::before {
|
||||
background-color: var(--color-admonition-fg);
|
||||
-webkit-mask-image: var(--icon-abstract);
|
||||
mask-image: var(--icon-abstract);
|
||||
}
|
||||
div.attention > p.admonition-title::before {
|
||||
background-color: var(--colour-error-fg);
|
||||
-webkit-mask-image: var(--icon-warning);
|
||||
mask-image: var(--icon-warning);
|
||||
}
|
||||
div.caution > p.admonition-title::before {
|
||||
background-color: var(--colour-warning-fg);
|
||||
-webkit-mask-image: var(--icon-spark);
|
||||
mask-image: var(--icon-spark);
|
||||
}
|
||||
div.danger > p.admonition-title::before {
|
||||
background-color: var(--colour-error-fg);
|
||||
-webkit-mask-image: var(--icon-spark);
|
||||
mask-image: var(--icon-spark);
|
||||
}
|
||||
div.error > p.admonition-title::before {
|
||||
background-color: var(--colour-error-fg);
|
||||
-webkit-mask-image: var(--icon-failure);
|
||||
mask-image: var(--icon-failure);
|
||||
}
|
||||
div.hint > p.admonition-title::before {
|
||||
background-color: var(--colour-success-fg);
|
||||
-webkit-mask-image: var(--icon-question);
|
||||
mask-image: var(--icon-question);
|
||||
}
|
||||
div.important > p.admonition-title::before {
|
||||
background-color: var(--colour-warning-fg);
|
||||
-webkit-mask-image: var(--icon-flame);
|
||||
mask-image: var(--icon-flame);
|
||||
}
|
||||
div.note > p.admonition-title::before {
|
||||
background-color: var(--colour-note-fg);
|
||||
-webkit-mask-image: var(--icon-pencil);
|
||||
mask-image: var(--icon-pencil);
|
||||
}
|
||||
div.seealso > p.admonition-title::before {
|
||||
background-color: var(--colour-success-fg);
|
||||
-webkit-mask-image: var(--icon-info);
|
||||
mask-image: var(--icon-info);
|
||||
}
|
||||
div.tip > p.admonition-title::before {
|
||||
background-color: var(--colour-success-fg);
|
||||
-webkit-mask-image: var(--icon-info);
|
||||
mask-image: var(--icon-info);
|
||||
}
|
||||
div.admonition-todo > p.admonition-title::before {
|
||||
background-color: var(--colour-todo-fg);
|
||||
-webkit-mask-image: var(--icon-pencil);
|
||||
mask-image: var(--icon-pencil);
|
||||
}
|
||||
div.warning > p.admonition-title::before {
|
||||
background-color: var(--colour-warning-fg);
|
||||
-webkit-mask-image: var(--icon-warning);
|
||||
mask-image: var(--icon-warning);
|
||||
}
|
||||
div.caution,
|
||||
div.important,
|
||||
div.warning {
|
||||
border: 1px solid #940000;
|
||||
border-color: var(--colour-warning-fg);
|
||||
}
|
||||
div.attention,
|
||||
div.danger,
|
||||
div.error {
|
||||
border-color: var(--colour-error-fg);
|
||||
}
|
||||
|
||||
div.admonition > ul,
|
||||
@@ -347,11 +569,159 @@ div.viewcode-block:target {
|
||||
/* media queries */
|
||||
|
||||
/* Reduce padding & margins for smaller screens */
|
||||
@media (max-width: 750px) {
|
||||
@media (max-width: 768px) {
|
||||
.sphinxsidebar {
|
||||
display: none;
|
||||
}
|
||||
div.body {
|
||||
border-left: none;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
/* Next/previous content footer */
|
||||
.related-pages {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-top: 2rem;
|
||||
font-size: smaller;
|
||||
}
|
||||
.related-pages .next-page {
|
||||
text-align: right;
|
||||
}
|
||||
.related-pages a.prev-page,
|
||||
.related-pages a.next-page {
|
||||
flex: 1 1 0%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: .25rem;
|
||||
padding: .25rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
.related-pages a.prev-page {
|
||||
justify-content: flex-start;
|
||||
padding-left: 0;
|
||||
}
|
||||
.related-pages a.next-page {
|
||||
justify-content: flex-end;
|
||||
padding-right: 0;
|
||||
}
|
||||
.related-pages a:hover {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
.related-pages a .context {
|
||||
font-size: small;
|
||||
color: #5f5f5f;
|
||||
}
|
||||
.related-pages svg {
|
||||
height: .75rem;
|
||||
width: .75rem;
|
||||
margin: 0 .5rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.related-pages .prev-page svg {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
/* ReadtheDocs docs selector */
|
||||
/* see https://docs.readthedocs.io/en/stable/flyout-menu.html */
|
||||
.rst-versions.rst-badge {
|
||||
background-color: #f7f7f7;
|
||||
border: 1px solid var(--colour-sphinx-blue);
|
||||
border-radius: var(--admonition-radius);
|
||||
color: var(--colour-sphinx-blue);
|
||||
}
|
||||
.rst-versions .rst-current-version {
|
||||
background-color: #f7f7f7;
|
||||
border-radius: var(--admonition-radius);
|
||||
color: var(--colour-sphinx-blue);
|
||||
}
|
||||
.rst-versions .rst-current-version .fa {
|
||||
color: var(--colour-sphinx-blue);
|
||||
}
|
||||
.rst-versions .rst-other-versions {
|
||||
border-radius: 0 0 var(--admonition-radius) var(--admonition-radius);
|
||||
border-top: 1px solid var(--colour-sphinx-blue);
|
||||
background-color: #f7f7f7;
|
||||
color: var(--colour-text);
|
||||
}
|
||||
.rst-versions .rst-other-versions dd a {
|
||||
color: var(--colour-sphinx-blue);
|
||||
}
|
||||
|
||||
|
||||
/* Landing page */
|
||||
.sphinx-tagline * {
|
||||
hyphens: none !important;
|
||||
font-style: italic !important;
|
||||
}
|
||||
/* By default align the sphinx-features one per-row and center them,
|
||||
then for larger screens align them two per-row. */
|
||||
.sphinx-features {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
}
|
||||
.sphinx-feature {
|
||||
flex: 1 1 100%;
|
||||
margin: 0 !important;
|
||||
background-color: white !important;
|
||||
}
|
||||
.sphinx-feature p {
|
||||
hyphens: none !important;
|
||||
}
|
||||
div.sphinx-feature > p.admonition-title {
|
||||
background-color: #f7f7f7 !important;
|
||||
padding-left: 1rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.sphinx-feature > p.admonition-title::before {
|
||||
display: none;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.sphinx-feature {
|
||||
flex: 0 0 auto;
|
||||
box-sizing: border-box;
|
||||
width: 48%;
|
||||
}
|
||||
}
|
||||
.sphinx-users {
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
}
|
||||
.sphinx-users-logos {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.sphinx-users-logos .headerlink {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* -- search results -------------------------------------------------------- */
|
||||
|
||||
ul.search {
|
||||
padding-left: 30px;
|
||||
}
|
||||
ul.search li {
|
||||
padding: 5px 0 5px 10px;
|
||||
}
|
||||
|
||||
/* note: these rules apply to search results from the built-in Sphinx HTML/JS search engine
|
||||
and only take effect in dev builds. The released docs use the ReadTheDocs search engine and are not affected. */
|
||||
ul.search li.kind-index {
|
||||
list-style-type: "\1F4D1"; /* Unicode: Bookmark Tabs */
|
||||
}
|
||||
ul.search li.kind-object {
|
||||
list-style-type: "\1F4E6"; /* Unicode: Package */
|
||||
}
|
||||
ul.search li.kind-title {
|
||||
list-style-type: "\1F4C4"; /* Unicode: Page Facing Up */
|
||||
}
|
||||
ul.search li.kind-text {
|
||||
list-style-type: "\1F4C4"; /* Unicode: Page Facing Up */
|
||||
}
|
||||
|
||||
BIN
doc/_themes/sphinx13/static/sphinxheader.png
vendored
|
Before Width: | Height: | Size: 11 KiB |
4
doc/_themes/sphinx13/theme.conf
vendored
@@ -1,4 +0,0 @@
|
||||
[theme]
|
||||
inherit = basic
|
||||
pygments_style = default
|
||||
sidebars =
|
||||
4
doc/_themes/sphinx13/theme.toml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
[theme]
|
||||
inherit = "basic"
|
||||
pygments_style = { default = "default" }
|
||||
sidebars = []
|
||||
@@ -6,4 +6,4 @@
|
||||
Sphinx authors
|
||||
==============
|
||||
|
||||
.. include:: ../AUTHORS
|
||||
.. include:: ../AUTHORS.rst
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
:tocdepth: 1
|
||||
|
||||
.. default-role:: any
|
||||
|
||||
.. _changes:
|
||||
|
||||
=========
|
||||
Changelog
|
||||
=========
|
||||
|
||||
.. raw:: latex
|
||||
|
||||
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}%
|
||||
\makeatletter
|
||||
\addtocontents{toc}%
|
||||
{\def\string\l@section{\string\@dottedtocline{1}{1.5em}{3.3em}}}
|
||||
\addtocontents{toc}%
|
||||
{\def\string\l@subsection{\string\@dottedtocline{2}{4.8em}{4em}}}
|
||||
\makeatother
|
||||
|
||||
|
||||
.. include:: ../CHANGES
|
||||
94
doc/changes/0.1.rst
Normal file
@@ -0,0 +1,94 @@
|
||||
==========
|
||||
Sphinx 0.1
|
||||
==========
|
||||
|
||||
|
||||
Release 0.1.61950 (Mar 26, 2008)
|
||||
================================
|
||||
|
||||
* sphinx.quickstart: Fix format string for Makefile.
|
||||
|
||||
|
||||
Release 0.1.61945 (Mar 26, 2008)
|
||||
================================
|
||||
|
||||
* sphinx.htmlwriter, sphinx.latexwriter: Support the ``.. image::``
|
||||
directive by copying image files to the output directory.
|
||||
|
||||
* sphinx.builder: Consistently name "special" HTML output directories
|
||||
with a leading underscore; this means ``_sources`` and ``_static``.
|
||||
|
||||
* sphinx.environment: Take dependent files into account when collecting
|
||||
the set of outdated sources.
|
||||
|
||||
* sphinx.directives: Record files included with ``.. literalinclude::``
|
||||
as dependencies.
|
||||
|
||||
* sphinx.ext.autodoc: Record files from which docstrings are included
|
||||
as dependencies.
|
||||
|
||||
* sphinx.builder: Rebuild all HTML files in case of a template change.
|
||||
|
||||
* sphinx.builder: Handle unavailability of TOC relations (previous/
|
||||
next chapter) more gracefully in the HTML builder.
|
||||
|
||||
* sphinx.latexwriter: Include fncychap.sty which doesn't seem to be
|
||||
very common in TeX distributions. Add a ``clean`` target in the
|
||||
latex Makefile. Really pass the correct paper and size options
|
||||
to the LaTeX document class.
|
||||
|
||||
* setup: On Python 2.4, don't egg-depend on Docutils if a Docutils is
|
||||
already installed -- else it will be overwritten.
|
||||
|
||||
|
||||
Release 0.1.61843 (Mar 24, 2008)
|
||||
================================
|
||||
|
||||
* sphinx.quickstart: Really don't create a makefile if the user
|
||||
doesn't want one.
|
||||
|
||||
* setup: Don't install scripts twice, via setuptools entry points
|
||||
and distutils scripts. Only install via entry points.
|
||||
|
||||
* sphinx.builder: Don't recognize the HTML builder's copied source
|
||||
files (under ``_sources``) as input files if the source suffix is
|
||||
``.txt``.
|
||||
|
||||
* sphinx.highlighting: Generate correct markup for LaTeX Verbatim
|
||||
environment escapes even if Pygments is not installed.
|
||||
|
||||
* sphinx.builder: The WebHTMLBuilder is now called PickleHTMLBuilder.
|
||||
|
||||
* sphinx.htmlwriter: Make parsed-literal blocks work as expected,
|
||||
not highlighting them via Pygments.
|
||||
|
||||
* sphinx.environment: Don't error out on reading an empty source file.
|
||||
|
||||
|
||||
Release 0.1.61798 (Mar 23, 2008)
|
||||
================================
|
||||
|
||||
* sphinx: Work with Docutils SVN snapshots as well as 0.4.
|
||||
|
||||
* sphinx.ext.doctest: Make the group in which doctest blocks are
|
||||
placed selectable, and default to ``'default'``.
|
||||
|
||||
* sphinx.ext.doctest: Replace ``<BLANKLINE>`` in doctest blocks by
|
||||
real blank lines for presentation output, and remove doctest
|
||||
options given inline.
|
||||
|
||||
* sphinx.environment: Move doctest_blocks out of block_quotes to
|
||||
support indented doctest blocks.
|
||||
|
||||
* sphinx.ext.autodoc: Render ``.. automodule::`` docstrings in a
|
||||
section node, so that module docstrings can contain proper
|
||||
sectioning.
|
||||
|
||||
* sphinx.ext.autodoc: Use the module's encoding for decoding
|
||||
docstrings, rather than requiring ASCII.
|
||||
|
||||
|
||||
Release 0.1.61611 (Mar 21, 2008)
|
||||
================================
|
||||
|
||||
* First public release.
|
||||
114
doc/changes/0.2.rst
Normal file
@@ -0,0 +1,114 @@
|
||||
==========
|
||||
Sphinx 0.2
|
||||
==========
|
||||
|
||||
|
||||
Release 0.2 (Apr 27, 2008)
|
||||
==========================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Jinja, the template engine used for the default HTML templates, is now
|
||||
no longer shipped with Sphinx. If it is not installed automatically for
|
||||
you (it is now listed as a dependency in ``setup.py``), install it manually
|
||||
from PyPI. This will also be needed if you're using Sphinx from a SVN
|
||||
checkout; in that case please also remove the ``sphinx/jinja`` directory
|
||||
that may be left over from old revisions.
|
||||
|
||||
* The clumsy handling of the ``index.html`` template was removed. The config
|
||||
value ``html_index`` is gone, and ``html_additional_pages`` should be used
|
||||
instead. If you need it, the old ``index.html`` template is still there,
|
||||
called ``defindex.html``, and you can port your html_index template, using
|
||||
Jinja inheritance, by changing your template::
|
||||
|
||||
{% extends "defindex.html" %}
|
||||
{% block tables %}
|
||||
... old html_index template content ...
|
||||
{% endblock %}
|
||||
|
||||
and putting ``'index': name of your template`` in ``html_additional_pages``.
|
||||
|
||||
* In the layout template, redundant ``block``\s were removed; you should use
|
||||
Jinja's standard ``{{ super() }}`` mechanism instead, as explained in the
|
||||
(newly written) templating docs.
|
||||
|
||||
New features added
|
||||
------------------
|
||||
|
||||
* Extension API (Application object):
|
||||
|
||||
- Support a new method, ``add_crossref_type``. It works like
|
||||
``add_description_unit`` but the directive will only create a target
|
||||
and no output.
|
||||
- Support a new method, ``add_transform``. It takes a standard Docutils
|
||||
``Transform`` subclass which is then applied by Sphinx's reader on
|
||||
parsing reST document trees.
|
||||
- Add support for other template engines than Jinja, by adding an
|
||||
abstraction called a "template bridge". This class handles rendering
|
||||
of templates and can be changed using the new configuration value
|
||||
"template_bridge".
|
||||
- The config file itself can be an extension (if it provides a ``setup()``
|
||||
function).
|
||||
|
||||
* Markup:
|
||||
|
||||
- New directive, ``currentmodule``. It can be used to indicate the module
|
||||
name of the following documented things without creating index entries.
|
||||
- Allow giving a different title to documents in the toctree.
|
||||
- Allow giving multiple options in a ``cmdoption`` directive.
|
||||
- Fix display of class members without explicit class name given.
|
||||
|
||||
* Templates (HTML output):
|
||||
|
||||
- ``index.html`` renamed to ``defindex.html``, see above.
|
||||
- There's a new config value, ``html_title``, that controls the overall
|
||||
"title" of the set of Sphinx docs. It is used instead everywhere instead of
|
||||
"Projectname vX.Y documentation" now.
|
||||
- All references to "documentation" in the templates have been removed, so
|
||||
that it is now easier to use Sphinx for non-documentation documents with
|
||||
the default templates.
|
||||
- Templates now have an XHTML doctype, to be consistent with Docutils'
|
||||
HTML output.
|
||||
- You can now create an OpenSearch description file with the
|
||||
``html_use_opensearch`` config value.
|
||||
- You can now quickly include a logo in the sidebar, using the ``html_logo``
|
||||
config value.
|
||||
- There are new blocks in the sidebar, so that you can easily insert content
|
||||
into the sidebar.
|
||||
|
||||
* LaTeX output:
|
||||
|
||||
- The ``sphinx.sty`` package was cleaned of unused stuff.
|
||||
- You can include a logo in the title page with the ``latex_logo`` config
|
||||
value.
|
||||
- You can define the link colors and a border and background color for
|
||||
verbatim environments.
|
||||
|
||||
Thanks to Jacob Kaplan-Moss, Talin, Jeroen Ruigrok van der Werven and Sebastian
|
||||
Wiesner for suggestions.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* sphinx.ext.autodoc: Don't check ``__module__`` for explicitly given
|
||||
members. Remove "self" in class constructor argument list.
|
||||
|
||||
* sphinx.htmlwriter: Don't use os.path for joining image HREFs.
|
||||
|
||||
* sphinx.htmlwriter: Don't use SmartyPants for HTML attribute values.
|
||||
|
||||
* sphinx.latexwriter: Implement option lists. Also, some other changes
|
||||
were made to ``sphinx.sty`` in order to enhance compatibility and
|
||||
remove old unused stuff. Thanks to Gael Varoquaux for that!
|
||||
|
||||
* sphinx.roles: Fix referencing glossary terms with explicit targets.
|
||||
|
||||
* sphinx.environment: Don't swallow TOC entries when resolving subtrees.
|
||||
|
||||
* sphinx.quickstart: Create a sensible default latex_documents setting.
|
||||
|
||||
* sphinx.builder, sphinx.environment: Gracefully handle some user error
|
||||
cases.
|
||||
|
||||
* sphinx.util: Follow symbolic links when searching for documents.
|
||||
63
doc/changes/0.3.rst
Normal file
@@ -0,0 +1,63 @@
|
||||
==========
|
||||
Sphinx 0.3
|
||||
==========
|
||||
|
||||
|
||||
Release 0.3 (May 6, 2008)
|
||||
=========================
|
||||
|
||||
New features added
|
||||
------------------
|
||||
|
||||
* The ``toctree`` directive now supports a ``glob`` option that allows
|
||||
glob-style entries in the content.
|
||||
|
||||
* If the ``pygments_style`` config value contains a dot it's treated as the
|
||||
import path of a custom Pygments style class.
|
||||
|
||||
* A new config value, ``exclude_dirs``, can be used to exclude whole
|
||||
directories from the search for source files.
|
||||
|
||||
* The configuration directory (containing ``conf.py``) can now be set
|
||||
independently from the source directory. For that, a new command-line
|
||||
option ``-c`` has been added.
|
||||
|
||||
* A new directive ``tabularcolumns`` can be used to give a tabular column
|
||||
specification for LaTeX output. Tables now use the ``tabulary`` package.
|
||||
Literal blocks can now be placed in tables, with several caveats.
|
||||
|
||||
* A new config value, ``latex_use_parts``, can be used to enable parts in LaTeX
|
||||
documents.
|
||||
|
||||
* Autodoc now skips inherited members for classes, unless you give the
|
||||
new ``inherited-members`` option.
|
||||
|
||||
* A new config value, ``autoclass_content``, selects if the docstring of the
|
||||
class' ``__init__`` method is added to the directive's body.
|
||||
|
||||
* Support for C++ class names (in the style ``Class::Function``) in C function
|
||||
descriptions.
|
||||
|
||||
* Support for a ``toctree_only`` item in items for the ``latex_documents``
|
||||
config value. This only includes the documents referenced by TOC trees in the
|
||||
output, not the rest of the file containing the directive.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* sphinx.htmlwriter: Correctly write the TOC file for any structure of the
|
||||
master document. Also encode non-ASCII characters as entities in TOC
|
||||
and index file. Remove two remaining instances of hard-coded
|
||||
"documentation".
|
||||
|
||||
* sphinx.ext.autodoc: descriptors are detected properly now.
|
||||
|
||||
* sphinx.latexwriter: implement all reST admonitions, not just ``note``
|
||||
and ``warning``.
|
||||
|
||||
* Lots of little fixes to the LaTeX output and style.
|
||||
|
||||
* Fix OpenSearch template and make template URL absolute. The
|
||||
``html_use_opensearch`` config value now must give the base URL.
|
||||
|
||||
* Some unused files are now stripped from the HTML help file build.
|
||||
225
doc/changes/0.4.rst
Normal file
@@ -0,0 +1,225 @@
|
||||
==========
|
||||
Sphinx 0.4
|
||||
==========
|
||||
|
||||
|
||||
Release 0.4.3 (Oct 8, 2008)
|
||||
===========================
|
||||
|
||||
* Fix a bug in autodoc with directly given autodoc members.
|
||||
|
||||
* Fix a bug in autodoc that would import a module twice, once as
|
||||
"module", once as "module.".
|
||||
|
||||
* Fix a bug in the HTML writer that created duplicate ``id``
|
||||
attributes for section titles with Docutils 0.5.
|
||||
|
||||
* Properly call ``super()`` in overridden blocks in templates.
|
||||
|
||||
* Add a fix when using XeTeX.
|
||||
|
||||
* Unify handling of LaTeX escaping.
|
||||
|
||||
* Rebuild everything when the ``extensions`` config value changes.
|
||||
|
||||
* Don't try to remove a nonexisting static directory.
|
||||
|
||||
* Fix an indentation problem in production lists.
|
||||
|
||||
* Fix encoding handling for literal include files: ``literalinclude``
|
||||
now has an ``encoding`` option that defaults to UTF-8.
|
||||
|
||||
* Fix the handling of non-ASCII characters entered in quickstart.
|
||||
|
||||
* Fix a crash with nonexisting image URIs.
|
||||
|
||||
|
||||
Release 0.4.2 (Jul 29, 2008)
|
||||
============================
|
||||
|
||||
* Fix rendering of the ``samp`` role in HTML.
|
||||
|
||||
* Fix a bug with LaTeX links to headings leading to a wrong page.
|
||||
|
||||
* Reread documents with globbed toctrees when source files are
|
||||
added or removed.
|
||||
|
||||
* Add a missing parameter to PickleHTMLBuilder.handle_page().
|
||||
|
||||
* Put inheritance info always on its own line.
|
||||
|
||||
* Don't automatically enclose code with whitespace in it in quotes;
|
||||
only do this for the ``samp`` role.
|
||||
|
||||
* autodoc now emits a more precise error message when a module
|
||||
can't be imported or an attribute can't be found.
|
||||
|
||||
* The JavaScript search now uses the correct file name suffix when
|
||||
referring to found items.
|
||||
|
||||
* The automodule directive now accepts the ``inherited-members``
|
||||
and ``show-inheritance`` options again.
|
||||
|
||||
* You can now rebuild the docs normally after relocating the source
|
||||
and/or doctree directory.
|
||||
|
||||
|
||||
Release 0.4.1 (Jul 5, 2008)
|
||||
===========================
|
||||
|
||||
* Added sub-/superscript node handling to TextBuilder.
|
||||
|
||||
* Label names in references are now case-insensitive, since reST
|
||||
label names are always lowercased.
|
||||
|
||||
* Fix linkcheck builder crash for malformed URLs.
|
||||
|
||||
* Add compatibility for admonitions and Docutils 0.5.
|
||||
|
||||
* Remove the silly restriction on "rubric" in the LaTeX writer: you
|
||||
can now write arbitrary "rubric" directives, and only those with
|
||||
a title of "Footnotes" will be ignored.
|
||||
|
||||
* Copy the HTML logo to the output ``_static`` directory.
|
||||
|
||||
* Fix LaTeX code for modules with underscores in names and platforms.
|
||||
|
||||
* Fix a crash with nonlocal image URIs.
|
||||
|
||||
* Allow the usage of :noindex: in ``automodule`` directives, as
|
||||
documented.
|
||||
|
||||
* Fix the ``delete()`` docstring processor function in autodoc.
|
||||
|
||||
* Fix warning message for nonexisting images.
|
||||
|
||||
* Fix JavaScript search in Internet Explorer.
|
||||
|
||||
|
||||
Release 0.4 (Jun 23, 2008)
|
||||
==========================
|
||||
|
||||
New features added
|
||||
------------------
|
||||
|
||||
* ``tocdepth`` can be given as a file-wide metadata entry, and
|
||||
specifies the maximum depth of a TOC of this file.
|
||||
|
||||
* The new config value ``default_role`` can be used to select the
|
||||
default role for all documents.
|
||||
|
||||
* Sphinx now interprets field lists with fields like ``:param foo:``
|
||||
in description units.
|
||||
|
||||
* The new ``staticmethod`` directive can be used to mark methods as
|
||||
static methods.
|
||||
|
||||
* HTML output:
|
||||
|
||||
- The "previous" and "next" links have a more logical structure, so
|
||||
that by following "next" links you can traverse the entire TOC
|
||||
tree.
|
||||
|
||||
- The new event ``html-page-context`` can be used to include custom
|
||||
values into the context used when rendering an HTML template.
|
||||
|
||||
- Document metadata is now in the default template context, under
|
||||
the name ``metadata``.
|
||||
|
||||
- The new config value ``html_favicon`` can be used to set a favicon
|
||||
for the HTML output. Thanks to Sebastian Wiesner.
|
||||
|
||||
- The new config value ``html_use_index`` can be used to switch index
|
||||
generation in HTML documents off.
|
||||
|
||||
- The new config value ``html_split_index`` can be used to create
|
||||
separate index pages for each letter, to be used when the complete
|
||||
index is too large for one page.
|
||||
|
||||
- The new config value ``html_short_title`` can be used to set a
|
||||
shorter title for the documentation which is then used in the
|
||||
navigation bar.
|
||||
|
||||
- The new config value ``html_show_sphinx`` can be used to control
|
||||
whether a link to Sphinx is added to the HTML footer.
|
||||
|
||||
- The new config value ``html_file_suffix`` can be used to set the
|
||||
HTML file suffix to e.g. ``.xhtml``.
|
||||
|
||||
- The directories in the ``html_static_path`` can now contain
|
||||
subdirectories.
|
||||
|
||||
- The module index now isn't collapsed if the number of submodules
|
||||
is larger than the number of toplevel modules.
|
||||
|
||||
* The image directive now supports specifying the extension as ``.*``,
|
||||
which makes the builder select the one that matches best. Thanks to
|
||||
Sebastian Wiesner.
|
||||
|
||||
* The new config value ``exclude_trees`` can be used to exclude whole
|
||||
subtrees from the search for source files.
|
||||
|
||||
* Defaults for configuration values can now be callables, which allows
|
||||
dynamic defaults.
|
||||
|
||||
* The new TextBuilder creates plain-text output.
|
||||
|
||||
* Python 3-style signatures, giving a return annotation via ``->``,
|
||||
are now supported.
|
||||
|
||||
* Extensions:
|
||||
|
||||
- The autodoc extension now offers a much more flexible way to
|
||||
manipulate docstrings before including them into the output, via
|
||||
the new ``autodoc-process-docstring`` event.
|
||||
|
||||
- The ``autodoc`` extension accepts signatures for functions, methods
|
||||
and classes now that override the signature got via introspection
|
||||
from Python code.
|
||||
|
||||
- The ``autodoc`` extension now offers a ``show-inheritance`` option
|
||||
for autoclass that inserts a list of bases after the signature.
|
||||
|
||||
- The autodoc directives now support the ``noindex`` flag option.
|
||||
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Correctly report the source location for docstrings included with
|
||||
autodoc.
|
||||
|
||||
* Fix the LaTeX output of description units with multiple signatures.
|
||||
|
||||
* Handle the figure directive in LaTeX output.
|
||||
|
||||
* Handle raw admonitions in LaTeX output.
|
||||
|
||||
* Fix determination of the title in HTML help output.
|
||||
|
||||
* Handle project names containing spaces.
|
||||
|
||||
* Don't write SSI-like comments in HTML output.
|
||||
|
||||
* Rename the "sidebar" class to "sphinxsidebar" in order to stay different
|
||||
from reST sidebars.
|
||||
|
||||
* Use a binary TOC in HTML help generation to fix issues links without
|
||||
explicit anchors.
|
||||
|
||||
* Fix behavior of references to functions/methods with an explicit title.
|
||||
|
||||
* Support citation, subscript and superscript nodes in LaTeX writer.
|
||||
|
||||
* Provide the standard "class" directive as "cssclass"; else it is
|
||||
shadowed by the Sphinx-defined directive.
|
||||
|
||||
* Fix the handling of explicit module names given to autoclass directives.
|
||||
They now show up with the correct module name in the generated docs.
|
||||
|
||||
* Enable autodoc to process Unicode docstrings.
|
||||
|
||||
* The LaTeX writer now translates line blocks with ``\raggedright``,
|
||||
which plays nicer with tables.
|
||||
|
||||
* Fix bug with directories in the HTML builder static path.
|
||||
297
doc/changes/0.5.rst
Normal file
@@ -0,0 +1,297 @@
|
||||
==========
|
||||
Sphinx 0.5
|
||||
==========
|
||||
|
||||
|
||||
Release 0.5.2 (Mar 24, 2009)
|
||||
============================
|
||||
|
||||
* Properly escape ``|`` in LaTeX output.
|
||||
|
||||
* #71: If a decoding error occurs in source files, print a
|
||||
warning and replace the characters by "?".
|
||||
|
||||
* Fix a problem in the HTML search if the index takes too long
|
||||
to load.
|
||||
|
||||
* Don't output system messages while resolving, because they
|
||||
would stay in the doctrees even if keep_warnings is false.
|
||||
|
||||
* #82: Determine the correct path for dependencies noted by
|
||||
docutils. This fixes behavior where a source with dependent
|
||||
files was always reported as changed.
|
||||
|
||||
* Recognize toctree directives that are not on section toplevel,
|
||||
but within block items, such as tables.
|
||||
|
||||
* Use a new RFC base URL, since rfc.org seems down.
|
||||
|
||||
* Fix a crash in the todolist directive when no todo items are
|
||||
defined.
|
||||
|
||||
* Don't call LaTeX or dvipng over and over again if it was not
|
||||
found once, and use text-only latex as a substitute in that case.
|
||||
|
||||
* Fix problems with footnotes in the LaTeX output.
|
||||
|
||||
* Prevent double hyphens becoming en-dashes in literal code in
|
||||
the LaTeX output.
|
||||
|
||||
* Open literalinclude files in universal newline mode to allow
|
||||
arbitrary newline conventions.
|
||||
|
||||
* Actually make the ``-Q`` option work.
|
||||
|
||||
* #86: Fix explicit document titles in toctrees.
|
||||
|
||||
* #81: Write environment and search index in a manner that is safe
|
||||
from exceptions that occur during dumping.
|
||||
|
||||
* #80: Fix UnicodeErrors when a locale is set with setlocale().
|
||||
|
||||
|
||||
Release 0.5.1 (Dec 15, 2008)
|
||||
============================
|
||||
|
||||
* #67: Output warnings about failed doctests in the doctest extension
|
||||
even when running in quiet mode.
|
||||
|
||||
* #72: In pngmath, make it possible to give a full path to LaTeX and
|
||||
dvipng on Windows. For that to work, the ``pngmath_latex`` and
|
||||
``pngmath_dvipng`` options are no longer split into command and
|
||||
additional arguments; use ``pngmath_latex_args`` and
|
||||
``pngmath_dvipng_args`` to give additional arguments.
|
||||
|
||||
* Don't crash on failing doctests with non-ASCII characters.
|
||||
|
||||
* Don't crash on writing status messages and warnings containing
|
||||
unencodable characters.
|
||||
|
||||
* Warn if a doctest extension block doesn't contain any code.
|
||||
|
||||
* Fix the handling of ``:param:`` and ``:type:`` doc fields when
|
||||
they contain markup (especially cross-referencing roles).
|
||||
|
||||
* #65: Fix storage of depth information for PNGs generated by the
|
||||
pngmath extension.
|
||||
|
||||
* Fix autodoc crash when automethod is used outside a class context.
|
||||
|
||||
* #68: Fix LaTeX writer output for images with specified height.
|
||||
|
||||
* #60: Fix wrong generated image path when including images in sources
|
||||
in subdirectories.
|
||||
|
||||
* Fix the JavaScript search when html_copy_source is off.
|
||||
|
||||
* Fix an indentation problem in autodoc when documenting classes
|
||||
with the option ``autoclass_content = "both"`` set.
|
||||
|
||||
* Don't crash on empty index entries, only emit a warning.
|
||||
|
||||
* Fix a typo in the search JavaScript code, leading to unusable
|
||||
search function in some setups.
|
||||
|
||||
|
||||
Release 0.5 (Nov 23, 2008) -- Birthday release!
|
||||
===============================================
|
||||
|
||||
New features added
|
||||
------------------
|
||||
|
||||
* Markup features:
|
||||
|
||||
- Citations are now global: all citation defined in any file can be
|
||||
referenced from any file. Citations are collected in a bibliography
|
||||
for LaTeX output.
|
||||
|
||||
- Footnotes are now properly handled in the LaTeX builder: they appear
|
||||
at the location of the footnote reference in text, not at the end of
|
||||
a section. Thanks to Andrew McNamara for the initial patch.
|
||||
|
||||
- "System Message" warnings are now automatically removed from the
|
||||
built documentation, and only written to stderr. If you want the
|
||||
old behavior, set the new config value ``keep_warnings`` to ``True``.
|
||||
|
||||
- Glossary entries are now automatically added to the index.
|
||||
|
||||
- Figures with captions can now be referred to like section titles,
|
||||
using the ``:ref:`` role without an explicit link text.
|
||||
|
||||
- Added ``cmember`` role for consistency.
|
||||
|
||||
- Lists enumerated by letters or roman numerals are now handled like in
|
||||
standard reST.
|
||||
|
||||
- The ``seealso`` directive can now also be given arguments, as a short
|
||||
form.
|
||||
|
||||
- You can now document several programs and their options with the
|
||||
new ``program`` directive.
|
||||
|
||||
* HTML output and templates:
|
||||
|
||||
- Incompatible change: The "root" relation link (top left in the
|
||||
relbar) now points to the ``master_doc`` by default, no longer to a
|
||||
document called "index". The old behavior, while useful in some
|
||||
situations, was somewhat unexpected. Override the "rootrellink"
|
||||
block in the template to customize where it refers to.
|
||||
|
||||
- The JavaScript search now searches for objects before searching in
|
||||
the full text.
|
||||
|
||||
- TOC tree entries now have CSS classes that make it possible to
|
||||
style them depending on their depth.
|
||||
|
||||
- Highlighted code blocks now have CSS classes that make it possible
|
||||
to style them depending on their language.
|
||||
|
||||
- HTML ``<meta>`` tags via the Docutils :dudir:`meta` directive are now
|
||||
supported.
|
||||
|
||||
- ``SerializingHTMLBuilder`` was added as new abstract builder that
|
||||
can be subclassed to serialize build HTML in a specific format. The
|
||||
``PickleHTMLBuilder`` is a concrete subclass of it that uses pickle
|
||||
as serialization implementation.
|
||||
|
||||
- ``JSONHTMLBuilder`` was added as another ``SerializingHTMLBuilder``
|
||||
subclass that dumps the generated HTML into JSON files for further
|
||||
processing.
|
||||
|
||||
- The ``rellinks`` block in the layout template is now called
|
||||
``linktags`` to avoid confusion with the relbar links.
|
||||
|
||||
- The HTML builders have two additional attributes now that can be
|
||||
used to disable the anchor-link creation after headlines and
|
||||
definition links.
|
||||
|
||||
- Only generate a module index if there are some modules in the
|
||||
documentation.
|
||||
|
||||
* New and changed config values:
|
||||
|
||||
- Added support for internationalization in generated text with the
|
||||
``language`` and ``locale_dirs`` config values. Many thanks to
|
||||
language contributors:
|
||||
|
||||
* Horst Gutmann -- German
|
||||
* Pavel Kosina -- Czech
|
||||
* David Larlet -- French
|
||||
* Michał Kandulski -- Polish
|
||||
* Yasushi Masuda -- Japanese
|
||||
* Guillem Borrell -- Spanish
|
||||
* Luc Saffre and Peter Bertels -- Dutch
|
||||
* Fred Lin -- Traditional Chinese
|
||||
* Roger Demetrescu -- Brazilian Portuguese
|
||||
* Rok Garbas -- Slovenian
|
||||
|
||||
- The new config value ``highlight_language`` set a global default for
|
||||
highlighting. When ``'python3'`` is selected, console output blocks
|
||||
are recognized like for ``'python'``.
|
||||
|
||||
- Exposed Pygments' lexer guessing as a highlight "language" ``guess``.
|
||||
|
||||
- The new config value ``latex_elements`` allows to override all LaTeX
|
||||
snippets that Sphinx puts into the generated .tex file by default.
|
||||
|
||||
- Added ``exclude_dirnames`` config value that can be used to exclude
|
||||
e.g. CVS directories from source file search.
|
||||
|
||||
- Added ``source_encoding`` config value to select input encoding.
|
||||
|
||||
* Extensions:
|
||||
|
||||
- The new extensions ``sphinx.ext.jsmath`` and ``sphinx.ext.pngmath``
|
||||
provide math support for both HTML and LaTeX builders.
|
||||
|
||||
- The new extension ``sphinx.ext.intersphinx`` half-automatically
|
||||
creates links to Sphinx documentation of Python objects in other
|
||||
projects.
|
||||
|
||||
- The new extension ``sphinx.ext.todo`` allows the insertion of
|
||||
"To do" directives whose visibility in the output can be toggled.
|
||||
It also adds a directive to compile a list of all todo items.
|
||||
|
||||
- sphinx.ext.autodoc has a new event ``autodoc-process-signature``
|
||||
that allows tuning function signature introspection.
|
||||
|
||||
- sphinx.ext.autodoc has a new event ``autodoc-skip-member`` that allows
|
||||
tuning which members are included in the generated content.
|
||||
|
||||
- Respect ``__all__`` when autodocumenting module members.
|
||||
|
||||
- The ``automodule`` directive now supports the ``synopsis``,
|
||||
``deprecated`` and ``platform`` options.
|
||||
|
||||
* Extension API:
|
||||
|
||||
- ``Sphinx.add_node()`` now takes optional visitor methods for the
|
||||
HTML, LaTeX and text translators; this prevents having to manually
|
||||
patch the classes.
|
||||
|
||||
- Added ``Sphinx.add_javascript()`` that adds scripts to load in the
|
||||
default HTML template.
|
||||
|
||||
- Added new events: ``source-read``, ``env-updated``,
|
||||
``env-purge-doc``, ``missing-reference``, ``build-finished``.
|
||||
|
||||
* Other changes:
|
||||
|
||||
- Added a command-line switch ``-Q``: it will suppress warnings.
|
||||
|
||||
- Added a command-line switch ``-A``: it can be used to supply
|
||||
additional values into the HTML templates.
|
||||
|
||||
- Added a command-line switch ``-C``: if it is given, no configuration
|
||||
file ``conf.py`` is required.
|
||||
|
||||
- Added a distutils command ``build_sphinx``: When Sphinx is installed,
|
||||
you can call ``python setup.py build_sphinx`` for projects that have
|
||||
Sphinx documentation, which will build the docs and place them in
|
||||
the standard distutils build directory.
|
||||
|
||||
- In quickstart, if the selected root path already contains a Sphinx
|
||||
project, complain and abort.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #51: Escape configuration values placed in HTML templates.
|
||||
|
||||
* #44: Fix small problems in HTML help index generation.
|
||||
|
||||
* Fix LaTeX output for line blocks in tables.
|
||||
|
||||
* #38: Fix "illegal unit" error when using pixel image widths/heights.
|
||||
|
||||
* Support table captions in LaTeX output.
|
||||
|
||||
* #39: Work around a bug in Jinja that caused "<generator ...>" to be
|
||||
emitted in HTML output.
|
||||
|
||||
* Fix a problem with module links not being generated in LaTeX output.
|
||||
|
||||
* Fix the handling of images in different directories.
|
||||
|
||||
* #29: Support option lists in the text writer. Make sure that dashes
|
||||
introducing long option names are not contracted to en-dashes.
|
||||
|
||||
* Support the "scale" option for images in HTML output.
|
||||
|
||||
* #25: Properly escape quotes in HTML help attribute values.
|
||||
|
||||
* Fix LaTeX build for some description environments with ``:noindex:``.
|
||||
|
||||
* #24: Don't crash on uncommon casing of role names (like ``:Class:``).
|
||||
|
||||
* Only output ANSI colors on color terminals.
|
||||
|
||||
* Update to newest fncychap.sty, to fix problems with non-ASCII
|
||||
characters at the start of chapter titles.
|
||||
|
||||
* Fix a problem with index generation in LaTeX output, caused by
|
||||
hyperref not being included last.
|
||||
|
||||
* Don't disregard return annotations for functions without any parameters.
|
||||
|
||||
* Don't throw away labels for code blocks.
|
||||
474
doc/changes/0.6.rst
Normal file
@@ -0,0 +1,474 @@
|
||||
==========
|
||||
Sphinx 0.6
|
||||
==========
|
||||
|
||||
|
||||
Release 0.6.7 (Jun 05, 2010)
|
||||
============================
|
||||
|
||||
* #440: Remove usage of a Python >= 2.5 API in the ``literalinclude``
|
||||
directive.
|
||||
|
||||
* Fix a bug that prevented some references being generated in the
|
||||
LaTeX builder.
|
||||
|
||||
* #428: Add some missing CSS styles for standard Docutils classes.
|
||||
|
||||
* #432: Fix UnicodeErrors while building LaTeX in translated locale.
|
||||
|
||||
|
||||
Release 0.6.6 (May 25, 2010)
|
||||
============================
|
||||
|
||||
* Handle raw nodes in the ``text`` writer.
|
||||
|
||||
* Fix a problem the Qt help project generated by the ``qthelp``
|
||||
builder that would lead to no content being displayed in the Qt
|
||||
Assistant.
|
||||
|
||||
* #393: Fix the usage of Unicode characters in mathematic formulas
|
||||
when using the ``pngmath`` extension.
|
||||
|
||||
* #404: Make ``\and`` work properly in the author field of the
|
||||
``latex_documents`` setting.
|
||||
|
||||
* #409: Make the ``highlight_language`` config value work properly
|
||||
in the LaTeX builder.
|
||||
|
||||
* #418: Allow relocation of the translation JavaScript files to
|
||||
the system directory on Unix systems.
|
||||
|
||||
* #414: Fix handling of Windows newlines in files included with
|
||||
the ``literalinclude`` directive.
|
||||
|
||||
* #377: Fix crash in linkcheck builder.
|
||||
|
||||
* #387: Fix the display of search results in ``dirhtml`` output.
|
||||
|
||||
* #376: In autodoc, fix display of parameter defaults containing
|
||||
backslashes.
|
||||
|
||||
* #370: Fix handling of complex list item labels in LaTeX output.
|
||||
|
||||
* #374: Make the ``doctest_path`` config value of the doctest
|
||||
extension actually work.
|
||||
|
||||
* Fix the handling of multiple toctrees when creating the global
|
||||
TOC for the ``toctree()`` template function.
|
||||
|
||||
* Fix the handling of hidden toctrees when creating the global TOC
|
||||
for the ``toctree()`` template function.
|
||||
|
||||
* Fix the handling of nested lists in the text writer.
|
||||
|
||||
* #362: In autodoc, check for the existence of ``__self__`` on
|
||||
function objects before accessing it.
|
||||
|
||||
* #353: Strip leading and trailing whitespace when extracting
|
||||
search words in the search function.
|
||||
|
||||
|
||||
Release 0.6.5 (Mar 01, 2010)
|
||||
============================
|
||||
|
||||
* In autodoc, fix the omission of some module members explicitly
|
||||
documented using documentation comments.
|
||||
|
||||
* #345: Fix cropping of sidebar scroll bar with ``stickysidebar``
|
||||
option of the default theme.
|
||||
|
||||
* #341: Always generate UNIX newlines in the quickstart Makefile.
|
||||
|
||||
* #338: Fix running with ``-C`` under Windows.
|
||||
|
||||
* In autodoc, allow customizing the signature of an object where
|
||||
the built-in mechanism fails.
|
||||
|
||||
* #331: Fix output for enumerated lists with start values in LaTeX.
|
||||
|
||||
* Make the ``start-after`` and ``end-before`` options to the
|
||||
``literalinclude`` directive work correctly if not used together.
|
||||
|
||||
* #321: Fix link generation in the LaTeX builder.
|
||||
|
||||
|
||||
Release 0.6.4 (Jan 12, 2010)
|
||||
============================
|
||||
|
||||
* Improve the handling of non-Unicode strings in the configuration.
|
||||
|
||||
* #316: Catch OSErrors occurring when calling graphviz with
|
||||
arguments it doesn't understand.
|
||||
|
||||
* Restore compatibility with Pygments >= 1.2.
|
||||
|
||||
* #295: Fix escaping of hyperref targets in LaTeX output.
|
||||
|
||||
* #302: Fix links generated by the ``:doc:`` role for LaTeX output.
|
||||
|
||||
* #286: collect todo nodes after the whole document has been read;
|
||||
this allows placing substitution references in todo items.
|
||||
|
||||
* #294: do not ignore an explicit ``today`` config value in a
|
||||
LaTeX build.
|
||||
|
||||
* The ``alt`` text of inheritance diagrams is now much cleaner.
|
||||
|
||||
* Ignore images in section titles when generating link captions.
|
||||
|
||||
* #310: support exception messages in the ``testoutput`` blocks of
|
||||
the ``doctest`` extension.
|
||||
|
||||
* #293: line blocks are styled properly in HTML output.
|
||||
|
||||
* #285: make the ``locale_dirs`` config value work again.
|
||||
|
||||
* #303: ``html_context`` values given on the command line via ``-A``
|
||||
should not override other values given in conf.py.
|
||||
|
||||
* Fix a bug preventing incremental rebuilds for the ``dirhtml``
|
||||
builder.
|
||||
|
||||
* #299: Fix the mangling of quotes in some literal blocks.
|
||||
|
||||
* #292: Fix path to the search index for the ``dirhtml`` builder.
|
||||
|
||||
* Fix a Jython compatibility issue: make the dependence on the
|
||||
``parser`` module optional.
|
||||
|
||||
* #238: In autodoc, catch all errors that occur on module import,
|
||||
not just ``ImportError``.
|
||||
|
||||
* Fix the handling of non-data, but non-method descriptors in autodoc.
|
||||
|
||||
* When copying file times, ignore OSErrors raised by ``os.utime()``.
|
||||
|
||||
|
||||
Release 0.6.3 (Sep 03, 2009)
|
||||
============================
|
||||
|
||||
* Properly add C module filenames as dependencies in autodoc.
|
||||
|
||||
* #253: Ignore graphviz directives without content instead of
|
||||
raising an unhandled exception.
|
||||
|
||||
* #241: Fix a crash building LaTeX output for documents that contain
|
||||
a todolist directive.
|
||||
|
||||
* #252: Make it easier to change the build dir in the Makefiles
|
||||
generated by quickstart.
|
||||
|
||||
* #220: Fix CSS so that displaymath really is centered.
|
||||
|
||||
* #222: Allow the "Footnotes" header to be translated.
|
||||
|
||||
* #225: Don't add whitespace in generated HTML after inline tags.
|
||||
|
||||
* #227: Make ``literalinclude`` work when the document's path
|
||||
name contains non-ASCII characters.
|
||||
|
||||
* #229: Fix autodoc failures with members that raise errors
|
||||
on ``getattr()``.
|
||||
|
||||
* #205: When copying files, don't copy full stat info, only
|
||||
modification times.
|
||||
|
||||
* #232: Support non-ASCII metadata in Qt help builder.
|
||||
|
||||
* Properly format bullet lists nested in definition lists for LaTeX.
|
||||
|
||||
* Section titles are now allowed inside ``only`` directives.
|
||||
|
||||
* #201: Make ``centered`` directive work in LaTeX output.
|
||||
|
||||
* #206: Refuse to overwrite an existing master document in
|
||||
sphinx-quickstart.
|
||||
|
||||
* #208: Use MS-sanctioned locale settings, determined by the
|
||||
``language`` config option, in the HTML help builder.
|
||||
|
||||
* #210: Fix nesting of HTML tags for displayed math from pngmath
|
||||
extension.
|
||||
|
||||
* #213: Fix centering of images in LaTeX output.
|
||||
|
||||
* #211: Fix compatibility with Docutils 0.5.
|
||||
|
||||
|
||||
Release 0.6.2 (Jun 16, 2009)
|
||||
============================
|
||||
|
||||
* #130: Fix obscure IndexError in doctest extension.
|
||||
|
||||
* #167: Make glossary sorting case-independent.
|
||||
|
||||
* #196: Add a warning if an extension module doesn't have a
|
||||
``setup()`` function.
|
||||
|
||||
* #158: Allow '..' in template names, and absolute template paths;
|
||||
Jinja 2 by default disables both.
|
||||
|
||||
* When highlighting Python code, ignore extra indentation before
|
||||
trying to parse it as Python.
|
||||
|
||||
* #191: Don't escape the tilde in URIs in LaTeX.
|
||||
|
||||
* Don't consider contents of source comments for the search index.
|
||||
|
||||
* Set the default encoding to ``utf-8-sig`` to handle files with a
|
||||
UTF-8 BOM correctly.
|
||||
|
||||
* #178: apply ``add_function_parentheses`` config value to C
|
||||
functions as promised.
|
||||
|
||||
* #173: Respect the Docutils ``title`` directive.
|
||||
|
||||
* #172: The ``obj`` role now links to modules as promised.
|
||||
|
||||
* #19: Tables now can have a "longtable" class, in order to get
|
||||
correctly broken into pages in LaTeX output.
|
||||
|
||||
* Look for Sphinx message catalogs in the system default path before
|
||||
trying ``sphinx/locale``.
|
||||
|
||||
* Fix the search for methods via "classname.methodname".
|
||||
|
||||
* #155: Fix Python 2.4 compatibility: exceptions are old-style
|
||||
classes there.
|
||||
|
||||
* #150: Fix display of the "sphinxdoc" theme on Internet Explorer
|
||||
versions 6 and 7.
|
||||
|
||||
* #146: Don't fail to generate LaTeX when the user has an active
|
||||
``.docutils`` configuration.
|
||||
|
||||
* #29: Don't generate visible "-{-}" in option lists in LaTeX.
|
||||
|
||||
* Fix cross-reference roles when put into substitutions.
|
||||
|
||||
* Don't put image "alt" text into table-of-contents entries.
|
||||
|
||||
* In the LaTeX writer, do not raise an exception on too many section
|
||||
levels, just use the "subparagraph" level for all of them.
|
||||
|
||||
* #145: Fix autodoc problem with automatic members that refuse to be
|
||||
getattr()'d from their parent.
|
||||
|
||||
* If specific filenames to build are given on the command line,
|
||||
check that they are within the source directory.
|
||||
|
||||
* Fix autodoc crash for objects without a ``__name__``.
|
||||
|
||||
* Fix intersphinx for installations without urllib2.HTTPSHandler.
|
||||
|
||||
* #134: Fix pending_xref leftover nodes when using the todolist
|
||||
directive from the todo extension.
|
||||
|
||||
|
||||
Release 0.6.1 (Mar 26, 2009)
|
||||
============================
|
||||
|
||||
* #135: Fix problems with LaTeX output and the graphviz extension.
|
||||
|
||||
* #132: Include the autosummary "module" template in the distribution.
|
||||
|
||||
|
||||
Release 0.6 (Mar 24, 2009)
|
||||
==========================
|
||||
|
||||
New features added
|
||||
------------------
|
||||
|
||||
* Incompatible changes:
|
||||
|
||||
- Templating now requires the Jinja2 library, which is an enhanced
|
||||
version of the old Jinja1 engine. Since the syntax and semantic
|
||||
is largely the same, very few fixes should be necessary in
|
||||
custom templates.
|
||||
|
||||
- The "document" div tag has been moved out of the ``layout.html``
|
||||
template's "document" block, because the closing tag was already
|
||||
outside. If you overwrite this block, you need to remove your
|
||||
"document" div tag as well.
|
||||
|
||||
- The ``autodoc_skip_member`` event now also gets to decide
|
||||
whether to skip members whose name starts with underscores.
|
||||
Previously, these members were always automatically skipped.
|
||||
Therefore, if you handle this event, add something like this
|
||||
to your event handler to restore the old behavior::
|
||||
|
||||
if name.startswith('_'):
|
||||
return True
|
||||
|
||||
* Theming support, see the new section in the documentation.
|
||||
|
||||
* Markup:
|
||||
|
||||
- Due to popular demand, added a ``:doc:`` role which directly
|
||||
links to another document without the need of creating a
|
||||
label to which a ``:ref:`` could link to.
|
||||
|
||||
- #4: Added a ``:download:`` role that marks a non-document file
|
||||
for inclusion into the HTML output and links to it.
|
||||
|
||||
- Added an ``only`` directive that can selectively include text
|
||||
based on enabled "tags". Tags can be given on the command
|
||||
line. Also, the current builder output format (e.g. "html" or
|
||||
"latex") is always a defined tag.
|
||||
|
||||
- #10: Added HTML section numbers, enabled by giving a
|
||||
``:numbered:`` flag to the ``toctree`` directive.
|
||||
|
||||
- #114: Added an ``abbr`` role to markup abbreviations and
|
||||
acronyms.
|
||||
|
||||
- The ``literalinclude`` directive now supports several more
|
||||
options, to include only parts of a file.
|
||||
|
||||
- The ``toctree`` directive now supports a ``:hidden:`` flag,
|
||||
which will prevent links from being generated in place of
|
||||
the directive -- this allows you to define your document
|
||||
structure, but place the links yourself.
|
||||
|
||||
- #123: The ``glossary`` directive now supports a ``:sorted:``
|
||||
flag that sorts glossary entries alphabetically.
|
||||
|
||||
- Paths to images, literal include files and download files
|
||||
can now be absolute (like ``/images/foo.png``). They are
|
||||
treated as relative to the top source directory.
|
||||
|
||||
- #52: There is now a ``hlist`` directive, creating a compact
|
||||
list by placing distributing items into multiple columns.
|
||||
|
||||
- #77: If a description environment with info field list only
|
||||
contains one ``:param:`` entry, no bullet list is generated.
|
||||
|
||||
- #6: Don't generate redundant ``<ul>`` for top-level TOC tree
|
||||
items, which leads to a visual separation of TOC entries.
|
||||
|
||||
- #23: Added a ``classmethod`` directive along with ``method``
|
||||
and ``staticmethod``.
|
||||
|
||||
- Scaled images now get a link to the unscaled version.
|
||||
|
||||
- SVG images are now supported in HTML (via ``<object>`` and
|
||||
``<embed>`` tags).
|
||||
|
||||
- Added a ``toctree`` callable to the templates, and the ability
|
||||
to include external links in toctrees. The 'collapse' keyword
|
||||
argument indicates whether or not to only display subitems of
|
||||
the current page. (Defaults to ``True``.)
|
||||
|
||||
* Configuration:
|
||||
|
||||
- The new config value ``rst_epilog`` can contain reST that is
|
||||
appended to each source file that is read. This is the right
|
||||
place for global substitutions.
|
||||
|
||||
- The new ``html_add_permalinks`` config value can be used to
|
||||
switch off the generated "paragraph sign" permalinks for each
|
||||
heading and definition environment.
|
||||
|
||||
- The new ``html_show_sourcelink`` config value can be used to
|
||||
switch off the links to the reST sources in the sidebar.
|
||||
|
||||
- The default value for ``htmlhelp_basename`` is now the project
|
||||
title, cleaned up as a filename.
|
||||
|
||||
- The new ``modindex_common_prefix`` config value can be used to
|
||||
ignore certain package names for module index sorting.
|
||||
|
||||
- The new ``trim_footnote_reference_space`` config value mirrors
|
||||
the Docutils config value of the same name and removes the
|
||||
space before a footnote reference that is necessary for reST
|
||||
to recognize the reference.
|
||||
|
||||
- The new ``latex_additional_files`` config value can be used to
|
||||
copy files (that Sphinx doesn't copy automatically, e.g. if they
|
||||
are referenced in custom LaTeX added in ``latex_elements``) to
|
||||
the build directory.
|
||||
|
||||
* Builders:
|
||||
|
||||
- The HTML builder now stores a small file named ``.buildinfo`` in
|
||||
its output directory. It stores a hash of config values that
|
||||
can be used to determine if a full rebuild needs to be done (e.g.
|
||||
after changing ``html_theme``).
|
||||
|
||||
- New builder for Qt help collections, by Antonio Valentino.
|
||||
|
||||
- The new ``DirectoryHTMLBuilder`` (short name ``dirhtml``) creates
|
||||
a separate directory for every page, and places the page there
|
||||
in a file called ``index.html``. Therefore, page URLs and links
|
||||
don't need to contain ``.html``.
|
||||
|
||||
- The new ``html_link_suffix`` config value can be used to select
|
||||
the suffix of generated links between HTML files.
|
||||
|
||||
- #96: The LaTeX builder now supports figures wrapped by text, when
|
||||
using the ``figwidth`` option and right/left alignment.
|
||||
|
||||
* New translations:
|
||||
|
||||
- Italian by Sandro Dentella.
|
||||
- Ukrainian by Petro Sasnyk.
|
||||
- Finnish by Jukka Inkeri.
|
||||
- Russian by Alexander Smishlajev.
|
||||
|
||||
* Extensions and API:
|
||||
|
||||
- New ``graphviz`` extension to embed graphviz graphs.
|
||||
|
||||
- New ``inheritance_diagram`` extension to embed... inheritance
|
||||
diagrams!
|
||||
|
||||
- New ``autosummary`` extension that generates summaries of
|
||||
modules and automatic documentation of modules.
|
||||
|
||||
- Autodoc now has a reusable Python API, which can be used to
|
||||
create custom types of objects to auto-document (e.g. Zope
|
||||
interfaces). See also ``Sphinx.add_autodocumenter()``.
|
||||
|
||||
- Autodoc now handles documented attributes.
|
||||
|
||||
- Autodoc now handles inner classes and their methods.
|
||||
|
||||
- Autodoc can document classes as functions now if explicitly
|
||||
marked with ``autofunction``.
|
||||
|
||||
- Autodoc can now exclude single members from documentation
|
||||
via the ``exclude-members`` option.
|
||||
|
||||
- Autodoc can now order members either alphabetically (like
|
||||
previously) or by member type; configurable either with the
|
||||
config value ``autodoc_member_order`` or a ``member-order``
|
||||
option per directive.
|
||||
|
||||
- The function ``Sphinx.add_directive()`` now also supports
|
||||
Docutils 0.5-style directive classes. If they inherit from
|
||||
``sphinx.util.compat.Directive``, they also work with
|
||||
Docutils 0.4.
|
||||
|
||||
- There is now a ``Sphinx.add_lexer()`` method to be able to use
|
||||
custom Pygments lexers easily.
|
||||
|
||||
- There is now ``Sphinx.add_generic_role()`` to mirror the
|
||||
Docutils' own function.
|
||||
|
||||
* Other changes:
|
||||
|
||||
- Config overrides for single dict keys can now be given on the
|
||||
command line.
|
||||
|
||||
- There is now a ``doctest_global_setup`` config value that can
|
||||
be used to give setup code for all doctests in the documentation.
|
||||
|
||||
- Source links in HTML are now generated with ``rel="nofollow"``.
|
||||
|
||||
- Quickstart can now generate a Windows ``make.bat`` file.
|
||||
|
||||
- #62: There is now a ``-w`` option for sphinx-build that writes
|
||||
warnings to a file, in addition to stderr.
|
||||
|
||||
- There is now a ``-W`` option for sphinx-build that turns warnings
|
||||
into errors.
|
||||
441
doc/changes/1.0.rst
Normal file
@@ -0,0 +1,441 @@
|
||||
==========
|
||||
Sphinx 1.0
|
||||
==========
|
||||
|
||||
|
||||
Release 1.0.8 (Sep 23, 2011)
|
||||
============================
|
||||
|
||||
* #627: Fix tracebacks for AttributeErrors in autosummary generation.
|
||||
|
||||
* Fix the ``abbr`` role when the abbreviation has newlines in it.
|
||||
|
||||
* #727: Fix the links to search results with custom object types.
|
||||
|
||||
* #648: Fix line numbers reported in warnings about undefined
|
||||
references.
|
||||
|
||||
* #696, #666: Fix C++ array definitions and template arguments
|
||||
that are not type names.
|
||||
|
||||
* #633: Allow footnotes in section headers in LaTeX output.
|
||||
|
||||
* #616: Allow keywords to be linked via intersphinx.
|
||||
|
||||
* #613: Allow Unicode characters in production list token names.
|
||||
|
||||
* #720: Add dummy visitors for graphviz nodes for text and man.
|
||||
|
||||
* #704: Fix image file duplication bug.
|
||||
|
||||
* #677: Fix parsing of multiple signatures in C++ domain.
|
||||
|
||||
* #637: Ignore Emacs lock files when looking for source files.
|
||||
|
||||
* #544: Allow .pyw extension for importable modules in autodoc.
|
||||
|
||||
* #700: Use ``$(MAKE)`` in quickstart-generated Makefiles.
|
||||
|
||||
* #734: Make sidebar search box width consistent in browsers.
|
||||
|
||||
* #644: Fix spacing of centered figures in HTML output.
|
||||
|
||||
* #767: Safely encode SphinxError messages when printing them to
|
||||
sys.stderr.
|
||||
|
||||
* #611: Fix LaTeX output error with a document with no sections but
|
||||
a link target.
|
||||
|
||||
* Correctly treat built-in method descriptors as methods in autodoc.
|
||||
|
||||
* #706: Stop monkeypatching the Python textwrap module.
|
||||
|
||||
* #657: viewcode now works correctly with source files that have
|
||||
non-ASCII encoding.
|
||||
|
||||
* #669: Respect the ``noindex`` flag option in py:module directives.
|
||||
|
||||
* #675: Fix IndexErrors when including nonexisting lines with
|
||||
``literalinclude``.
|
||||
|
||||
* #676: Respect custom function/method parameter separator strings.
|
||||
|
||||
* #682: Fix JS incompatibility with jQuery >= 1.5.
|
||||
|
||||
* #693: Fix double encoding done when writing HTMLHelp .hhk files.
|
||||
|
||||
* #647: Do not apply SmartyPants in parsed-literal blocks.
|
||||
|
||||
* C++ domain now supports array definitions.
|
||||
|
||||
|
||||
Release 1.0.7 (Jan 15, 2011)
|
||||
============================
|
||||
|
||||
* #347: Fix wrong generation of directives of static methods in
|
||||
autosummary.
|
||||
|
||||
* #599: Import PIL as ``from PIL import Image``.
|
||||
|
||||
* #558: Fix longtables with captions in LaTeX output.
|
||||
|
||||
* Make token references work as hyperlinks again in LaTeX output.
|
||||
|
||||
* #572: Show warnings by default when reference labels cannot be
|
||||
found.
|
||||
|
||||
* #536: Include line number when complaining about missing reference
|
||||
targets in nitpicky mode.
|
||||
|
||||
* #590: Fix inline display of graphviz diagrams in LaTeX output.
|
||||
|
||||
* #589: Build using app.build() in setup command.
|
||||
|
||||
* Fix a bug in the inheritance diagram exception that caused base
|
||||
classes to be skipped if one of them is a builtin.
|
||||
|
||||
* Fix general index links for C++ domain objects.
|
||||
|
||||
* #332: Make admonition boundaries in LaTeX output visible.
|
||||
|
||||
* #573: Fix KeyErrors occurring on rebuild after removing a file.
|
||||
|
||||
* Fix a traceback when removing files with globbed toctrees.
|
||||
|
||||
* If an autodoc object cannot be imported, always re-read the
|
||||
document containing the directive on next build.
|
||||
|
||||
* If an autodoc object cannot be imported, show the full traceback
|
||||
of the import error.
|
||||
|
||||
* Fix a bug where the removal of download files and images wasn't
|
||||
noticed.
|
||||
|
||||
* #571: Implement ``~`` cross-reference prefix for the C domain.
|
||||
|
||||
* Fix regression of LaTeX output with the fix of #556.
|
||||
|
||||
* #568: Fix lookup of class attribute documentation on descriptors
|
||||
so that comment documentation now works.
|
||||
|
||||
* Fix traceback with ``only`` directives preceded by targets.
|
||||
|
||||
* Fix tracebacks occurring for duplicate C++ domain objects.
|
||||
|
||||
* Fix JavaScript domain links to objects with ``$`` in their name.
|
||||
|
||||
|
||||
Release 1.0.6 (Jan 04, 2011)
|
||||
============================
|
||||
|
||||
* #581: Fix traceback in Python domain for empty cross-reference
|
||||
targets.
|
||||
|
||||
* #283: Fix literal block display issues on Chrome browsers.
|
||||
|
||||
* #383, #148: Support sorting a limited range of accented characters
|
||||
in the general index and the glossary.
|
||||
|
||||
* #570: Try decoding ``-D`` and ``-A`` command-line arguments with
|
||||
the locale's preferred encoding.
|
||||
|
||||
* #528: Observe ``locale_dirs`` when looking for the JS
|
||||
translations file.
|
||||
|
||||
* #574: Add special code for better support of Japanese documents
|
||||
in the LaTeX builder.
|
||||
|
||||
* Regression of #77: If there is only one parameter given with
|
||||
``:param:`` markup, the bullet list is now suppressed again.
|
||||
|
||||
* #556: Fix missing paragraph breaks in LaTeX output in certain
|
||||
situations.
|
||||
|
||||
* #567: Emit the ``autodoc-process-docstring`` event even for objects
|
||||
without a docstring so that it can add content.
|
||||
|
||||
* #565: In the LaTeX builder, not only literal blocks require different
|
||||
table handling, but also quite a few other list-like block elements.
|
||||
|
||||
* #515: Fix tracebacks in the viewcode extension for Python objects
|
||||
that do not have a valid signature.
|
||||
|
||||
* Fix strange reports of line numbers for warnings generated from
|
||||
autodoc-included docstrings, due to different behavior depending
|
||||
on Docutils version.
|
||||
|
||||
* Several fixes to the C++ domain.
|
||||
|
||||
|
||||
Release 1.0.5 (Nov 12, 2010)
|
||||
============================
|
||||
|
||||
* #557: Add CSS styles required by Docutils 0.7 for aligned images
|
||||
and figures.
|
||||
|
||||
* In the Makefile generated by LaTeX output, do not delete pdf files
|
||||
on clean; they might be required images.
|
||||
|
||||
* #535: Fix LaTeX output generated for line blocks.
|
||||
|
||||
* #544: Allow ``.pyw`` as a source file extension.
|
||||
|
||||
|
||||
Release 1.0.4 (Sep 17, 2010)
|
||||
============================
|
||||
|
||||
* #524: Open intersphinx inventories in binary mode on Windows,
|
||||
since version 2 contains zlib-compressed data.
|
||||
|
||||
* #513: Allow giving non-local URIs for JavaScript files, e.g.
|
||||
in the JSMath extension.
|
||||
|
||||
* #512: Fix traceback when ``intersphinx_mapping`` is empty.
|
||||
|
||||
|
||||
Release 1.0.3 (Aug 23, 2010)
|
||||
============================
|
||||
|
||||
* #495: Fix internal vs. external link distinction for links coming
|
||||
from a Docutils table-of-contents.
|
||||
|
||||
* #494: Fix the ``maxdepth`` option for the ``toctree()`` template
|
||||
callable when used with ``collapse=True``.
|
||||
|
||||
* #507: Fix crash parsing Python argument lists containing brackets
|
||||
in string literals.
|
||||
|
||||
* #501: Fix regression when building LaTeX docs with figures that
|
||||
don't have captions.
|
||||
|
||||
* #510: Fix inheritance diagrams for classes that are not picklable.
|
||||
|
||||
* #497: Introduce separate background color for the sidebar collapse
|
||||
button, making it easier to see.
|
||||
|
||||
* #502, #503, #496: Fix small layout bugs in several builtin themes.
|
||||
|
||||
|
||||
Release 1.0.2 (Aug 14, 2010)
|
||||
============================
|
||||
|
||||
* #490: Fix cross-references to objects of types added by the
|
||||
:func:`~sphinx.application.Sphinx.add_object_type` API function.
|
||||
|
||||
* Fix handling of doc field types for different directive types.
|
||||
|
||||
* Allow breaking long signatures, continuing with backlash-escaped
|
||||
newlines.
|
||||
|
||||
* Fix unwanted styling of C domain references (because of a namespace
|
||||
clash with Pygments styles).
|
||||
|
||||
* Allow references to PEPs and RFCs with explicit anchors.
|
||||
|
||||
* #471: Fix LaTeX references to figures.
|
||||
|
||||
* #482: When doing a non-exact search, match only the given type
|
||||
of object.
|
||||
|
||||
* #481: Apply non-exact search for Python reference targets with
|
||||
``.name`` for modules too.
|
||||
|
||||
* #484: Fix crash when duplicating a parameter in an info field list.
|
||||
|
||||
* #487: Fix setting the default role to one provided by the
|
||||
``oldcmarkup`` extension.
|
||||
|
||||
* #488: Fix crash when json-py is installed, which provides a
|
||||
``json`` module but is incompatible to simplejson.
|
||||
|
||||
* #480: Fix handling of target naming in intersphinx.
|
||||
|
||||
* #486: Fix removal of ``!`` for all cross-reference roles.
|
||||
|
||||
|
||||
Release 1.0.1 (Jul 27, 2010)
|
||||
============================
|
||||
|
||||
* #470: Fix generated target names for reST domain objects; they
|
||||
are not in the same namespace.
|
||||
|
||||
* #266: Add Bengali language.
|
||||
|
||||
* #473: Fix a bug in parsing JavaScript object names.
|
||||
|
||||
* #474: Fix building with SingleHTMLBuilder when there is no toctree.
|
||||
|
||||
* Fix display names for objects linked to by intersphinx with
|
||||
explicit targets.
|
||||
|
||||
* Fix building with the JSON builder.
|
||||
|
||||
* Fix hyperrefs in object descriptions for LaTeX.
|
||||
|
||||
|
||||
Release 1.0 (Jul 23, 2010)
|
||||
==========================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Support for domains has been added. A domain is a collection of
|
||||
directives and roles that all describe objects belonging together,
|
||||
e.g. elements of a programming language. A few builtin domains are
|
||||
provided:
|
||||
|
||||
- Python
|
||||
- C
|
||||
- C++
|
||||
- JavaScript
|
||||
- reStructuredText
|
||||
|
||||
* The old markup for defining and linking to C directives is now
|
||||
deprecated. It will not work anymore in future versions without
|
||||
activating the ``oldcmarkup`` extension; in Sphinx
|
||||
1.0, it is activated by default.
|
||||
|
||||
* Removed support for old dependency versions; requirements are now:
|
||||
|
||||
- Docutils >= 0.5
|
||||
- Jinja2 >= 2.2
|
||||
|
||||
* Removed deprecated elements:
|
||||
|
||||
- ``exclude_dirs`` config value
|
||||
- ``sphinx.builder`` module
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* General:
|
||||
|
||||
- Added a "nitpicky" mode that emits warnings for all missing
|
||||
references. It is activated by the :option:`sphinx-build -n` command-line
|
||||
switch or the :confval:`nitpicky` config value.
|
||||
- Added ``latexpdf`` target in quickstart Makefile.
|
||||
|
||||
* Markup:
|
||||
|
||||
- The ``menuselection`` and ``guilabel`` roles now
|
||||
support ampersand accelerators.
|
||||
- New more compact doc field syntax is now recognized: ``:param type
|
||||
name: description``.
|
||||
- Added ``tab-width`` option to ``literalinclude`` directive.
|
||||
- Added ``titlesonly`` option to :rst:dir:`toctree` directive.
|
||||
- Added the ``prepend`` and ``append`` options to the
|
||||
``literalinclude`` directive.
|
||||
- #284: All docinfo metadata is now put into the document metadata, not
|
||||
just the author.
|
||||
- The ``ref`` role can now also reference tables by caption.
|
||||
- The :dudir:`include` directive now supports absolute paths, which
|
||||
are interpreted as relative to the source directory.
|
||||
- In the Python domain, references like ``:func:`.name``` now look for
|
||||
matching names with any prefix if no direct match is found.
|
||||
|
||||
* Configuration:
|
||||
|
||||
- Added ``rst_prolog`` config value.
|
||||
- Added ``html_secnumber_suffix`` config value to control
|
||||
section numbering format.
|
||||
- Added ``html_compact_lists`` config value to control
|
||||
Docutils' compact lists feature.
|
||||
- The ``html_sidebars`` config value can now contain patterns
|
||||
as keys, and the values can be lists that explicitly select which
|
||||
sidebar templates should be rendered. That means that the builtin
|
||||
sidebar contents can be included only selectively.
|
||||
- ``html_static_path`` can now contain single file entries.
|
||||
- The new universal config value ``exclude_patterns`` makes the
|
||||
old ``unused_docs``, ``exclude_trees`` and
|
||||
``exclude_dirnames`` obsolete.
|
||||
- Added ``html_output_encoding`` config value.
|
||||
- Added the ``latex_docclass`` config value and made the
|
||||
"twoside" documentclass option overridable by "oneside".
|
||||
- Added the ``trim_doctest_flags`` config value, which is true
|
||||
by default.
|
||||
- Added ``html_show_copyright`` config value.
|
||||
- Added ``latex_show_pagerefs``` and ``latex_show_urls``
|
||||
config values.
|
||||
- The behavior of ``html_file_suffix``` changed slightly: the
|
||||
empty string now means "no suffix" instead of "default suffix", use
|
||||
``None`` for "default suffix".
|
||||
|
||||
* New builders:
|
||||
|
||||
- Added a builder for the Epub format.
|
||||
- Added a builder for manual pages.
|
||||
- Added a single-file HTML builder.
|
||||
|
||||
* HTML output:
|
||||
|
||||
- Inline roles now get a CSS class with their name, allowing styles to
|
||||
customize their appearance. Domain-specific roles get two classes,
|
||||
``domain`` and ``domain-rolename``.
|
||||
- References now get the class ``internal`` if they are internal to
|
||||
the whole project, as opposed to internal to the current page.
|
||||
- External references can be styled differently with the new
|
||||
``externalrefs`` theme option for the default theme.
|
||||
- In the default theme, the sidebar can experimentally now be made
|
||||
collapsible using the new ``collapsiblesidebar`` theme option.
|
||||
- #129: Toctrees are now wrapped in a ``div`` tag with class
|
||||
``toctree-wrapper`` in HTML output.
|
||||
- The :data:`toctree` callable in templates now has a ``maxdepth``
|
||||
keyword argument to control the depth of the generated tree.
|
||||
- The :data:`toctree` callable in templates now accepts a
|
||||
``titles_only`` keyword argument.
|
||||
- Added ``htmltitle`` block in layout template.
|
||||
- In the JavaScript search, allow searching for object names including
|
||||
the module name, like ``sys.argv``.
|
||||
- Added new theme ``haiku``, inspired by the Haiku OS user guide.
|
||||
- Added new theme ``nature``.
|
||||
- Added new theme ``agogo``, created by Andi Albrecht.
|
||||
- Added new theme ``scrolls``, created by Armin Ronacher.
|
||||
- #193: Added a ``visitedlinkcolor`` theme option to the default
|
||||
theme.
|
||||
- #322: Improved responsiveness of the search page by loading the
|
||||
search index asynchronously.
|
||||
|
||||
* Extension API:
|
||||
|
||||
- Added :event:`html-collect-pages`.
|
||||
- Added ``needs_sphinx`` config value and
|
||||
:meth:`~sphinx.application.Sphinx.require_sphinx` application API
|
||||
method.
|
||||
- #200: Added :meth:`!add_stylesheet`
|
||||
application API method.
|
||||
|
||||
* Extensions:
|
||||
|
||||
- Added the :mod:`~sphinx.ext.viewcode` extension.
|
||||
- Added the :mod:`~sphinx.ext.extlinks` extension.
|
||||
- Added support for source ordering of members in autodoc, with
|
||||
``autodoc_member_order = 'bysource'``.
|
||||
- Added ``autodoc_default_flags`` config value, which can be
|
||||
used to select default flags for all autodoc directives.
|
||||
- Added a way for intersphinx to refer to named labels in other
|
||||
projects, and to specify the project you want to link to.
|
||||
- #280: Autodoc can now document instance attributes assigned in
|
||||
``__init__`` methods.
|
||||
- Many improvements and fixes to the :mod:`~sphinx.ext.autosummary`
|
||||
extension, thanks to Pauli Virtanen.
|
||||
- #309: The :mod:`~sphinx.ext.graphviz` extension can now output SVG
|
||||
instead of PNG images, controlled by the
|
||||
``graphviz_output_format`` config value.
|
||||
- Added ``alt`` option to :rst:dir:`graphviz` extension directives.
|
||||
- Added ``exclude`` argument to :func:`.autodoc.between`.
|
||||
|
||||
* Translations:
|
||||
|
||||
- Added Croatian translation, thanks to Bojan Mihelač.
|
||||
- Added Turkish translation, thanks to Firat Ozgul.
|
||||
- Added Catalan translation, thanks to Pau Fernández.
|
||||
- Added simplified Chinese translation.
|
||||
- Added Danish translation, thanks to Hjorth Larsen.
|
||||
- Added Lithuanian translation, thanks to Dalius Dobravolskas.
|
||||
|
||||
* Bugs fixed:
|
||||
|
||||
- #445: Fix links to result pages when using the search function
|
||||
of HTML built with the ``dirhtml`` builder.
|
||||
- #444: In templates, properly re-escape values treated with the
|
||||
"striptags" Jinja filter.
|
||||
206
doc/changes/1.1.rst
Normal file
@@ -0,0 +1,206 @@
|
||||
==========
|
||||
Sphinx 1.1
|
||||
==========
|
||||
|
||||
|
||||
Release 1.1.3 (Mar 10, 2012)
|
||||
============================
|
||||
|
||||
* PR#40: Fix ``safe_repr`` function to decode bytestrings with non-ASCII
|
||||
characters correctly.
|
||||
|
||||
* PR#37: Allow configuring sphinx-apidoc via ``SPHINX_APIDOC_OPTIONS``.
|
||||
|
||||
* PR#34: Restore Python 2.4 compatibility.
|
||||
|
||||
* PR#36: Make the "bibliography to TOC" fix in LaTeX output specific to
|
||||
the document class.
|
||||
|
||||
* #695: When the highlight language "python" is specified explicitly,
|
||||
do not try to parse the code to recognize non-Python snippets.
|
||||
|
||||
* #859: Fix exception under certain circumstances when not finding
|
||||
appropriate objects to link to.
|
||||
|
||||
* #860: Do not crash when encountering invalid doctest examples, just
|
||||
emit a warning.
|
||||
|
||||
* #864: Fix crash with some settings of :confval:`modindex_common_prefix`.
|
||||
|
||||
* #862: Fix handling of ``-D`` and ``-A`` options on Python 3.
|
||||
|
||||
* #851: Recognize and warn about circular toctrees, instead of running
|
||||
into recursion errors.
|
||||
|
||||
* #853: Restore compatibility with Docutils trunk.
|
||||
|
||||
* #852: Fix HtmlHelp index entry links again.
|
||||
|
||||
* #854: Fix inheritance_diagram raising attribute errors on builtins.
|
||||
|
||||
* #832: Fix crashes when putting comments or lone terms in a glossary.
|
||||
|
||||
* #834, #818: Fix HTML help language/encoding mapping for all Sphinx
|
||||
supported languages.
|
||||
|
||||
* #844: Fix crashes when dealing with Unicode output in doctest extension.
|
||||
|
||||
* #831: Provide ``--project`` flag in setup_command as advertised.
|
||||
|
||||
* #875: Fix reading config files under Python 3.
|
||||
|
||||
* #876: Fix quickstart test under Python 3.
|
||||
|
||||
* #870: Fix spurious KeyErrors when removing documents.
|
||||
|
||||
* #892: Fix single-HTML builder misbehaving with the master document in a
|
||||
subdirectory.
|
||||
|
||||
* #873: Fix assertion errors with empty ``only`` directives.
|
||||
|
||||
* #816: Fix encoding issues in the Qt help builder.
|
||||
|
||||
|
||||
Release 1.1.2 (Nov 1, 2011) -- 1.1.1 is a silly version number anyway!
|
||||
======================================================================
|
||||
|
||||
* #809: Include custom fixers in the source distribution.
|
||||
|
||||
|
||||
Release 1.1.1 (Nov 1, 2011)
|
||||
===========================
|
||||
|
||||
* #791: Fix QtHelp, DevHelp and HtmlHelp index entry links.
|
||||
|
||||
* #792: Include "sphinx-apidoc" in the source distribution.
|
||||
|
||||
* #797: Don't crash on a misformatted glossary.
|
||||
|
||||
* #801: Make intersphinx work properly without SSL support.
|
||||
|
||||
* #805: Make the ``Sphinx.add_index_to_domain`` method work correctly.
|
||||
|
||||
* #780: Fix Python 2.5 compatibility.
|
||||
|
||||
|
||||
Release 1.1 (Oct 9, 2011)
|
||||
=========================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* The ``py:module`` directive doesn't output its ``platform`` option
|
||||
value anymore. (It was the only thing that the directive did output, and
|
||||
therefore quite inconsistent.)
|
||||
|
||||
* Removed support for old dependency versions; requirements are now:
|
||||
|
||||
- Pygments >= 1.2
|
||||
- Docutils >= 0.7
|
||||
- Jinja2 >= 2.3
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Added Python 3.x support.
|
||||
|
||||
* New builders and subsystems:
|
||||
|
||||
- Added a Texinfo builder.
|
||||
- Added i18n support for content, a ``gettext`` builder and related
|
||||
utilities.
|
||||
- Added the ``websupport`` library and builder.
|
||||
- #98: Added a ``sphinx-apidoc`` script that autogenerates a hierarchy
|
||||
of source files containing autodoc directives to document modules
|
||||
and packages.
|
||||
- #273: Add an API for adding full-text search support for languages
|
||||
other than English. Add support for Japanese.
|
||||
|
||||
* Markup:
|
||||
|
||||
- #138: Added an :rst:role:`index` role, to make inline index entries.
|
||||
- #454: Added more index markup capabilities: marking see/seealso entries,
|
||||
and main entries for a given key.
|
||||
- #460: Allowed limiting the depth of section numbers for HTML using the
|
||||
:rst:dir:`toctree`\'s ``numbered`` option.
|
||||
- #586: Implemented improved :rst:dir:`glossary` markup which allows
|
||||
multiple terms per definition.
|
||||
- #478: Added ``py:decorator`` directive to describe decorators.
|
||||
- C++ domain now supports array definitions.
|
||||
- C++ domain now supports doc fields (``:param x:`` inside directives).
|
||||
- Section headings in :rst:dir:`only` directives are now correctly
|
||||
handled.
|
||||
- Added ``emphasize-lines`` option to source code directives.
|
||||
- #678: C++ domain now supports superclasses.
|
||||
|
||||
* HTML builder:
|
||||
|
||||
- Added ``pyramid`` theme.
|
||||
- #559: ``html_add_permalinks`` is now a string giving the
|
||||
text to display in permalinks.
|
||||
- #259: HTML table rows now have even/odd CSS classes to enable
|
||||
"Zebra styling".
|
||||
- #554: Add theme option ``sidebarwidth`` to the basic theme.
|
||||
|
||||
* Other builders:
|
||||
|
||||
- #516: Added new value of the :confval:`latex_show_urls` option to
|
||||
show the URLs in footnotes.
|
||||
- #209: Added :confval:`text_newlines` and :confval:`text_sectionchars`
|
||||
config values.
|
||||
- Added :confval:`man_show_urls` config value.
|
||||
- #472: linkcheck builder: Check links in parallel, use HTTP HEAD
|
||||
requests and allow configuring the timeout. New config values:
|
||||
:confval:`linkcheck_timeout` and :confval:`linkcheck_workers`.
|
||||
- #521: Added :confval:`linkcheck_ignore` config value.
|
||||
- #28: Support row/colspans in tables in the LaTeX builder.
|
||||
|
||||
* Configuration and extensibility:
|
||||
|
||||
- #537: Added :confval:`nitpick_ignore`.
|
||||
- #306: Added :event:`env-get-outdated` event.
|
||||
- :meth:`!Application.add_stylesheet` now accepts full URIs.
|
||||
|
||||
* Autodoc:
|
||||
|
||||
- #564: Add :confval:`autodoc_docstring_signature`. When enabled (the
|
||||
default), autodoc retrieves the signature from the first line of the
|
||||
docstring, if it is found there.
|
||||
- #176: Provide ``private-members`` option for autodoc directives.
|
||||
- #520: Provide ``special-members`` option for autodoc directives.
|
||||
- #431: Doc comments for attributes can now be given on the same line
|
||||
as the assignment.
|
||||
- #437: autodoc now shows values of class data attributes.
|
||||
- autodoc now supports documenting the signatures of
|
||||
``functools.partial`` objects.
|
||||
|
||||
* Other extensions:
|
||||
|
||||
- Added the :mod:`sphinx.ext.mathjax` extension.
|
||||
- #443: Allow referencing external graphviz files.
|
||||
- Added ``inline`` option to graphviz directives, and fixed the
|
||||
default (block-style) in LaTeX output.
|
||||
- #590: Added ``caption`` option to graphviz directives.
|
||||
- #553: Added ``testcleanup`` blocks in the doctest extension.
|
||||
- #594: ``trim_doctest_flags`` now also removes ``<BLANKLINE>``
|
||||
indicators.
|
||||
- #367: Added automatic exclusion of hidden members in inheritance
|
||||
diagrams, and an option to selectively enable it.
|
||||
- Added ``pngmath_add_tooltips``.
|
||||
- The math extension displaymath directives now support ``name`` in
|
||||
addition to ``label`` for giving the equation label, for compatibility
|
||||
with Docutils.
|
||||
|
||||
* New locales:
|
||||
|
||||
- #221: Added Swedish locale.
|
||||
- #526: Added Iranian locale.
|
||||
- #694: Added Latvian locale.
|
||||
- Added Nepali locale.
|
||||
- #714: Added Korean locale.
|
||||
- #766: Added Estonian locale.
|
||||
|
||||
* Bugs fixed:
|
||||
|
||||
- #778: Fix "hide search matches" link on pages linked by search.
|
||||
- Fix the source positions referenced by the "viewcode" extension.
|
||||
550
doc/changes/1.2.rst
Normal file
@@ -0,0 +1,550 @@
|
||||
==========
|
||||
Sphinx 1.2
|
||||
==========
|
||||
|
||||
|
||||
Release 1.2.3 (released Sep 1, 2014)
|
||||
====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #1518: ``sphinx-apidoc`` command now has a ``--version`` option to show
|
||||
version information and exit
|
||||
* New locales: Hebrew, European Portuguese, Vietnamese.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #636: Keep straight single quotes in literal blocks in the LaTeX build.
|
||||
* #1419: Generated i18n sphinx.js files are missing message catalog entries
|
||||
from '.js_t' and '.html'. The issue was introduced from Sphinx 1.1
|
||||
* #1363: Fix i18n: missing python domain's cross-references with currentmodule
|
||||
directive or currentclass directive.
|
||||
* #1444: autosummary does not create the description from attributes docstring.
|
||||
* #1457: In python3 environment, make linkcheck cause "Can't convert 'bytes'
|
||||
object to str implicitly" error when link target url has a hash part.
|
||||
Thanks to Jorge_C.
|
||||
* #1467: Exception on Python3 if nonexistent method is specified by automethod
|
||||
* #1441: autosummary can't handle nested classes correctly.
|
||||
* #1499: With non-callable ``setup`` in a conf.py, now sphinx-build emits
|
||||
a user-friendly error message.
|
||||
* #1502: In autodoc, fix display of parameter defaults containing backslashes.
|
||||
* #1226: autodoc, autosummary: importing setup.py by automodule will invoke
|
||||
setup process and execute ``sys.exit()``. Now Sphinx avoids SystemExit
|
||||
exception and emits warnings without unexpected termination.
|
||||
* #1503: py:function directive generate incorrectly signature when specifying
|
||||
a default parameter with an empty list ``[]``. Thanks to Geert Jansen.
|
||||
* #1508: Non-ASCII filename raise exception on make singlehtml, latex, man,
|
||||
texinfo and changes.
|
||||
* #1531: On Python3 environment, docutils.conf with 'source_link=true' in the
|
||||
general section cause type error.
|
||||
* PR#270, #1533: Non-ASCII docstring cause UnicodeDecodeError when uses with
|
||||
inheritance-diagram directive. Thanks to WAKAYAMA shirou.
|
||||
* PR#281, PR#282, #1509: TODO extension not compatible with websupport. Thanks
|
||||
to Takeshi Komiya.
|
||||
* #1477: gettext does not extract nodes.line in a table or list.
|
||||
* #1544: ``make text`` generates wrong table when it has empty table cells.
|
||||
* #1522: Footnotes from table get displayed twice in LaTeX. This problem has
|
||||
been appeared from Sphinx 1.2.1 by #949.
|
||||
* #508: Sphinx every time exit with zero when is invoked from setup.py command.
|
||||
ex. ``python setup.py build_sphinx -b doctest`` return zero even if doctest
|
||||
failed.
|
||||
|
||||
Release 1.2.2 (released Mar 2, 2014)
|
||||
====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* PR#211: When checking for existence of the ``html_logo`` file, check
|
||||
the full relative path and not the basename.
|
||||
* PR#212: Fix traceback with autodoc and ``__init__`` methods without docstring.
|
||||
* PR#213: Fix a missing import in the setup command.
|
||||
* #1357: Option names documented by :rst:dir:`option` are now again allowed to
|
||||
not start with a dash or slash, and referencing them will work correctly.
|
||||
* #1358: Fix handling of image paths outside of the source directory when using
|
||||
the "wildcard" style reference.
|
||||
* #1374: Fix for autosummary generating overly-long summaries if first line
|
||||
doesn't end with a period.
|
||||
* #1383: Fix Python 2.5 compatibility of sphinx-apidoc.
|
||||
* #1391: Actually prevent using "pngmath" and "mathjax" extensions at the same
|
||||
time in sphinx-quickstart.
|
||||
* #1386: Fix bug preventing more than one theme being added by the entry point
|
||||
mechanism.
|
||||
* #1370: Ignore "toctree" nodes in text writer, instead of raising.
|
||||
* #1364: Fix 'make gettext' fails when the '.. todolist::' directive is present.
|
||||
* #1367: Fix a change of PR#96 that break sphinx.util.docfields.Field.make_field
|
||||
interface/behavior for ``item`` argument usage.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
* Extended the :ref:`documentation about building extensions <dev-extensions>`.
|
||||
|
||||
|
||||
Release 1.2.1 (released Jan 19, 2014)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #1335: Fix autosummary template overloading with exclamation prefix like
|
||||
``{% extends "!autosummary/class.rst" %}`` cause infinite recursive function
|
||||
call. This was caused by PR#181.
|
||||
* #1337: Fix autodoc with ``autoclass_content="both"`` uses useless
|
||||
``object.__init__`` docstring when class does not have ``__init__``.
|
||||
This was caused by a change for #1138.
|
||||
* #1340: Can't search alphabetical words on the HTML quick search generated
|
||||
with language='ja'.
|
||||
* #1319: Do not crash if the ``html_logo`` file does not exist.
|
||||
* #603: Do not use the HTML-ized title for building the search index (that
|
||||
resulted in "literal" being found on every page with a literal in the
|
||||
title).
|
||||
* #751: Allow production lists longer than a page in LaTeX by using longtable.
|
||||
* #764: Always look for stopwords lowercased in JS search.
|
||||
* #814: autodoc: Guard against strange type objects that don't have
|
||||
``__bases__``.
|
||||
* #932: autodoc: Do not crash if ``__doc__`` is not a string.
|
||||
* #933: Do not crash if an :rst:role:`option` value is malformed (contains
|
||||
spaces but no option name).
|
||||
* #908: On Python 3, handle error messages from LaTeX correctly in the pngmath
|
||||
extension.
|
||||
* #943: In autosummary, recognize "first sentences" to pull from the docstring
|
||||
if they contain uppercase letters.
|
||||
* #923: Take the entire LaTeX document into account when caching
|
||||
pngmath-generated images. This rebuilds them correctly when
|
||||
``pngmath_latex_preamble`` changes.
|
||||
* #901: Emit a warning when using Docutils' new "math" markup without a Sphinx
|
||||
math extension active.
|
||||
* #845: In code blocks, when the selected lexer fails, display line numbers
|
||||
nevertheless if configured.
|
||||
* #929: Support parsed-literal blocks in LaTeX output correctly.
|
||||
* #949: Update the tabulary.sty packed with Sphinx.
|
||||
* #1050: Add anonymous labels into ``objects.inv`` to be referenced via
|
||||
:mod:`~sphinx.ext.intersphinx`.
|
||||
* #1095: Fix print-media stylesheet being included always in the "scrolls"
|
||||
theme.
|
||||
* #1085: Fix current classname not getting set if class description has
|
||||
``:noindex:`` set.
|
||||
* #1181: Report option errors in autodoc directives more gracefully.
|
||||
* #1155: Fix autodocumenting C-defined methods as attributes in Python 3.
|
||||
* #1233: Allow finding both Python classes and exceptions with the "class" and
|
||||
"exc" roles in intersphinx.
|
||||
* #1198: Allow "image" for the "figwidth" option of the :dudir:`figure`
|
||||
directive as documented by docutils.
|
||||
* #1152: Fix pycode parsing errors of Python 3 code by including two grammar
|
||||
versions for Python 2 and 3, and loading the appropriate version for the
|
||||
running Python version.
|
||||
* #1017: Be helpful and tell the user when the argument to :rst:dir:`option`
|
||||
does not match the required format.
|
||||
* #1345: Fix two bugs with ``nitpick_ignore``; now you don't have to
|
||||
remove the store environment for changes to have effect.
|
||||
* #1072: In the JS search, fix issues searching for upper-cased words by
|
||||
lowercasing words before stemming.
|
||||
* #1299: Make behavior of the :rst:dir:`math` directive more consistent and
|
||||
avoid producing empty environments in LaTeX output.
|
||||
* #1308: Strip HTML tags from the content of "raw" nodes before feeding it
|
||||
to the search indexer.
|
||||
* #1249: Fix duplicate LaTeX page numbering for manual documents.
|
||||
* #1292: In the linkchecker, retry HEAD requests when denied by HTTP 405.
|
||||
Also make the redirect code apparent and tweak the output a bit to be
|
||||
more obvious.
|
||||
* #1285: Avoid name clashes between C domain objects and section titles.
|
||||
* #848: Always take the newest code in incremental rebuilds with the
|
||||
:mod:`sphinx.ext.viewcode` extension.
|
||||
* #979, #1266: Fix exclude handling in ``sphinx-apidoc``.
|
||||
* #1302: Fix regression in :mod:`sphinx.ext.inheritance_diagram` when
|
||||
documenting classes that can't be pickled.
|
||||
* #1316: Remove hard-coded ``font-face`` resources from epub theme.
|
||||
* #1329: Fix traceback with empty translation msgstr in .po files.
|
||||
* #1300: Fix references not working in translated documents in some instances.
|
||||
* #1283: Fix a bug in the detection of changed files that would try to access
|
||||
doctrees of deleted documents.
|
||||
* #1330: Fix ``exclude_patterns`` behavior with subdirectories in the
|
||||
``html_static_path``.
|
||||
* #1323: Fix emitting empty ``<ul>`` tags in the HTML writer, which is not
|
||||
valid HTML.
|
||||
* #1147: Don't emit a sidebar search box in the "singlehtml" builder.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
* #1325: Added a "Intersphinx" tutorial section. (:file:`doc/tutorial.rst`)
|
||||
|
||||
|
||||
Release 1.2 (released Dec 10, 2013)
|
||||
===================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Added ``sphinx.version_info`` tuple for programmatic checking of the Sphinx
|
||||
version.
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Removed the ``sphinx.ext.refcounting`` extension -- it is very specific to
|
||||
CPython and has no place in the main distribution.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Restore ``versionmodified`` CSS class for versionadded/changed and deprecated
|
||||
directives.
|
||||
|
||||
* PR#181: Fix ``html_theme_path = ['.']`` is a trigger of rebuild all documents
|
||||
always (This change keeps the current "theme changes cause a rebuild"
|
||||
feature).
|
||||
|
||||
* #1296: Fix invalid charset in HTML help generated HTML files for default
|
||||
locale.
|
||||
|
||||
* PR#190: Fix gettext does not extract figure caption and rubric title inside
|
||||
other blocks. Thanks to Michael Schlenker.
|
||||
|
||||
* PR#176: Make sure setup_command test can always import Sphinx. Thanks to
|
||||
Dmitry Shachnev.
|
||||
|
||||
* #1311: Fix test_linkcode.test_html fails with C locale and Python 3.
|
||||
|
||||
* #1269: Fix ResourceWarnings with Python 3.2 or later.
|
||||
|
||||
* #1138: Fix: When ``autodoc_docstring_signature = True`` and
|
||||
``autoclass_content = 'init'`` or ``'both'``, __init__ line should be
|
||||
removed from class documentation.
|
||||
|
||||
|
||||
Release 1.2 beta3 (released Oct 3, 2013)
|
||||
========================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* The Sphinx error log files will now include a list of the loaded extensions
|
||||
for help in debugging.
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* PR#154: Remove "sphinx" prefix from LaTeX class name except 'sphinxmanual'
|
||||
and 'sphinxhowto'. Now you can use your custom document class without
|
||||
'sphinx' prefix. Thanks to Erik B.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #1265: Fix i18n: crash when translating a section name that is pointed to from
|
||||
a named target.
|
||||
* A wrong condition broke the search feature on first page that is usually
|
||||
index.rst. This issue was introduced in 1.2b1.
|
||||
* #703: When Sphinx can't decode filenames with non-ASCII characters, Sphinx now
|
||||
catches UnicodeError and will continue if possible instead of raising the
|
||||
exception.
|
||||
|
||||
|
||||
Release 1.2 beta2 (released Sep 17, 2013)
|
||||
=========================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* ``apidoc`` now ignores "_private" modules by default, and has an option ``-P``
|
||||
to include them.
|
||||
* ``apidoc`` now has an option to not generate headings for packages and
|
||||
modules, for the case that the module docstring already includes a reST
|
||||
heading.
|
||||
* PR#161: ``apidoc`` can now write each module to a standalone page instead of
|
||||
combining all modules in a package on one page.
|
||||
* Builders: rebuild i18n target document when catalog updated.
|
||||
* Support docutils.conf 'writers' and 'html4css1 writer' section in the HTML
|
||||
writer. The latex, manpage and texinfo writers also support their respective
|
||||
'writers' sections.
|
||||
* The new ``html_extra_path`` config value allows to specify directories
|
||||
with files that should be copied directly to the HTML output directory.
|
||||
* Autodoc directives for module data and attributes now support an
|
||||
``annotation`` option, so that the default display of the data/attribute
|
||||
value can be overridden.
|
||||
* PR#136: Autodoc directives now support an ``imported-members`` option to
|
||||
include members imported from different modules.
|
||||
* New locales: Macedonian, Sinhala, Indonesian.
|
||||
* Theme package collection by using setuptools plugin mechanism.
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* PR#144, #1182: Force timezone offset to LocalTimeZone on POT-Creation-Date
|
||||
that was generated by gettext builder. Thanks to masklinn and Jakub Wilk.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* PR#132: Updated jQuery version to 1.8.3.
|
||||
* PR#141, #982: Avoid crash when writing PNG file using Python 3. Thanks to
|
||||
Marcin Wojdyr.
|
||||
* PR#145: In parallel builds, Sphinx drops second document file to write.
|
||||
Thanks to tychoish.
|
||||
* PR#151: Some styling updates to tables in LaTeX.
|
||||
* PR#153: The "extensions" config value can now be overridden.
|
||||
* PR#155: Added support for some C++11 function qualifiers.
|
||||
* Fix: 'make gettext' caused UnicodeDecodeError when templates contain utf-8
|
||||
encoded strings.
|
||||
* #828: use inspect.getfullargspec() to be able to document functions with
|
||||
keyword-only arguments on Python 3.
|
||||
* #1090: Fix i18n: multiple cross references (term, ref, doc) in the same line
|
||||
return the same link.
|
||||
* #1157: Combination of 'globaltoc.html' and hidden toctree caused exception.
|
||||
* #1159: fix wrong generation of objects inventory for Python modules, and
|
||||
add a workaround in intersphinx to fix handling of affected inventories.
|
||||
* #1160: Citation target missing caused an AssertionError.
|
||||
* #1162, PR#139: singlehtml builder didn't copy images to _images/.
|
||||
* #1173: Adjust setup.py dependencies because Jinja2 2.7 discontinued
|
||||
compatibility with Python < 3.3 and Python < 2.6. Thanks to Alexander Dupuy.
|
||||
* #1185: Don't crash when a Python module has a wrong or no encoding declared,
|
||||
and non-ASCII characters are included.
|
||||
* #1188: sphinx-quickstart raises UnicodeEncodeError if "Project version"
|
||||
includes non-ASCII characters.
|
||||
* #1189: "Title underline is too short" WARNING is given when using fullwidth
|
||||
characters to "Project name" on quickstart.
|
||||
* #1190: Output TeX/texinfo/man filename has no basename (only extension)
|
||||
when using non-ASCII characters in the "Project name" on quickstart.
|
||||
* #1192: Fix escaping problem for hyperlinks in the manpage writer.
|
||||
* #1193: Fix i18n: multiple link references in the same line return the same
|
||||
link.
|
||||
* #1176: Fix i18n: footnote reference number missing for auto numbered named
|
||||
footnote and auto symbol footnote.
|
||||
* PR#146,#1172: Fix ZeroDivisionError in parallel builds. Thanks to tychoish.
|
||||
* #1204: Fix wrong generation of links to local intersphinx targets.
|
||||
* #1206: Fix i18n: gettext did not translate admonition directive's title.
|
||||
* #1232: Sphinx generated broken ePub files on Windows.
|
||||
* #1259: Guard the debug output call when emitting events; to prevent the
|
||||
repr() implementation of arbitrary objects causing build failures.
|
||||
* #1142: Fix NFC/NFD normalizing problem of rst filename on Mac OS X.
|
||||
* #1234: Ignoring the string consists only of white-space characters.
|
||||
|
||||
|
||||
Release 1.2 beta1 (released Mar 31, 2013)
|
||||
=========================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Removed ``sphinx.util.compat.directive_dwim()`` and
|
||||
``sphinx.roles.xfileref_role()`` which were deprecated since version 1.0.
|
||||
* PR#122: the files given in ``latex_additional_files`` now override TeX
|
||||
files included by Sphinx, such as ``sphinx.sty``.
|
||||
* PR#124: the node generated by ``versionadded``,
|
||||
``versionchanged`` and ``deprecated`` directives now includes
|
||||
all added markup (such as "New in version X") as child nodes, and no
|
||||
additional text must be generated by writers.
|
||||
* PR#99: the :rst:dir:`seealso` directive now generates admonition nodes instead
|
||||
of the custom ``seealso`` node.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Markup
|
||||
|
||||
- The :rst:dir:`toctree` directive and the ``toctree()`` template function now
|
||||
have an ``includehidden`` option that includes hidden toctree entries (bugs
|
||||
#790 and #1047). A bug in the ``maxdepth`` option for the ``toctree()``
|
||||
template function has been fixed (bug #1046).
|
||||
- PR#99: Strip down seealso directives to normal admonitions. This removes
|
||||
their unusual CSS classes (admonition-see-also), inconsistent LaTeX
|
||||
admonition title ("See Also" instead of "See also"), and spurious
|
||||
indentation in the text builder.
|
||||
|
||||
* HTML builder
|
||||
|
||||
- #783: Create a link to full size image if it is scaled with width or height.
|
||||
- #1067: Improve the ordering of the JavaScript search results: matches in
|
||||
titles come before matches in full text, and object results are better
|
||||
categorized. Also implement a pluggable search scorer.
|
||||
- #1053: The "rightsidebar" and "collapsiblesidebar" HTML theme options now
|
||||
work together.
|
||||
- Update to jQuery 1.7.1 and Underscore.js 1.3.1.
|
||||
|
||||
* Texinfo builder
|
||||
|
||||
- An "Index" node is no longer added when there are no entries.
|
||||
- "deffn" categories are no longer capitalized if they contain capital
|
||||
letters.
|
||||
- ``desc_annotation`` nodes are now rendered.
|
||||
- ``strong`` and ``emphasis`` nodes are now formatted like
|
||||
``literal``\s. The reason for this is because the standard Texinfo markup
|
||||
(``*strong*`` and ``_emphasis_``) resulted in confusing output due to the
|
||||
common usage of using these constructs for documenting parameter names.
|
||||
- Field lists formatting has been tweaked to better display
|
||||
"Info field lists".
|
||||
- ``system_message`` and ``problematic`` nodes are now formatted in a similar
|
||||
fashion as done by the text builder.
|
||||
- "en-dash" and "em-dash" conversion of hyphens is no longer performed in
|
||||
option directive signatures.
|
||||
- ``@ref`` is now used instead of ``@pxref`` for cross-references which
|
||||
prevents the word "see" from being added before the link (does not affect
|
||||
the Info output).
|
||||
- The ``@finalout`` command has been added for better TeX output.
|
||||
- ``transition`` nodes are now formatted using underscores ("_") instead of
|
||||
asterisks ("*").
|
||||
- The default value for the ``paragraphindent`` has been changed from 2 to 0
|
||||
meaning that paragraphs are no longer indented by default.
|
||||
- #1110: A new configuration value ``texinfo_no_detailmenu`` has been
|
||||
added for controlling whether a ``@detailmenu`` is added in the "Top"
|
||||
node's menu.
|
||||
- Detailed menus are no longer created except for the "Top" node.
|
||||
- Fixed an issue where duplicate domain indices would result in invalid
|
||||
output.
|
||||
|
||||
* LaTeX builder:
|
||||
|
||||
- PR#115: Add ``'transition'`` item in ``latex_elements`` for
|
||||
customizing how transitions are displayed. Thanks to Jeff Klukas.
|
||||
- PR#114: The LaTeX writer now includes the "cmap" package by default. The
|
||||
``'cmappkg'`` item in ``latex_elements`` can be used to control this.
|
||||
Thanks to Dmitry Shachnev.
|
||||
- The ``'fontpkg'`` item in ``latex_elements`` now defaults to ``''``
|
||||
when the :confval:`language` uses the Cyrillic script. Suggested by Dmitry
|
||||
Shachnev.
|
||||
- The ``latex_documents``, ``texinfo_documents``, and
|
||||
``man_pages`` configuration values will be set to default values based
|
||||
on the :confval:`master_doc` if not explicitly set in :file:`conf.py`.
|
||||
Previously, if these values were not set, no output would be generated by
|
||||
their respective builders.
|
||||
|
||||
* Internationalization:
|
||||
|
||||
- Add i18n capabilities for custom templates. For example: The Sphinx
|
||||
reference documentation in doc directory provides a ``sphinx.pot`` file with
|
||||
message strings from ``doc/_templates/*.html`` when using ``make gettext``.
|
||||
|
||||
- PR#61,#703: Add support for non-ASCII filename handling.
|
||||
|
||||
* Other builders:
|
||||
|
||||
- Added the Docutils-native XML and pseudo-XML builders. See
|
||||
:class:`~sphinx.builders.xml.XMLBuilder` and
|
||||
:class:`~sphinx.builders.xml.PseudoXMLBuilder`.
|
||||
- PR#45: The linkcheck builder now checks ``#anchor``\ s for existence.
|
||||
- PR#123, #1106: Add ``epub_use_index`` configuration value. If
|
||||
provided, it will be used instead of ``html_use_index`` for epub
|
||||
builder.
|
||||
- PR#126: Add ``epub_tocscope`` configuration value. The setting
|
||||
controls the generation of the epub toc. The user can now also include
|
||||
hidden toc entries.
|
||||
- PR#112: Add ``epub_show_urls`` configuration value.
|
||||
|
||||
* Extensions:
|
||||
|
||||
- PR#52: ``special_members`` flag to autodoc now behaves like ``members``.
|
||||
- PR#47: Added :mod:`sphinx.ext.linkcode` extension.
|
||||
- PR#25: In inheritance diagrams, the first line of the class docstring
|
||||
is now the tooltip for the class.
|
||||
|
||||
* Command-line interfaces:
|
||||
|
||||
- PR#75: Added ``--follow-links`` option to sphinx-apidoc.
|
||||
- #869: sphinx-build now has the option ``-T`` for printing the full
|
||||
traceback after an unhandled exception.
|
||||
- sphinx-build now supports the standard ``--help`` and ``--version`` options.
|
||||
- sphinx-build now provides more specific error messages when called with
|
||||
invalid options or arguments.
|
||||
- sphinx-build now has a verbose option ``-v`` which can be repeated for
|
||||
greater effect. A single occurrence provides a slightly more verbose output
|
||||
than normal. Two or more occurrences of this option provides more detailed
|
||||
output which may be useful for debugging.
|
||||
|
||||
* Locales:
|
||||
|
||||
- PR#74: Fix some Russian translation.
|
||||
- PR#54: Added Norwegian bokmaal translation.
|
||||
- PR#35: Added Slovak translation.
|
||||
- PR#28: Added Hungarian translation.
|
||||
- #1113: Add Hebrew locale.
|
||||
- #1097: Add Basque locale.
|
||||
- #1037: Fix typos in Polish translation. Thanks to Jakub Wilk.
|
||||
- #1012: Update Estonian translation.
|
||||
|
||||
* Optimizations:
|
||||
|
||||
- Speed up building the search index by caching the results of the word
|
||||
stemming routines. Saves about 20 seconds when building the Python
|
||||
documentation.
|
||||
- PR#108: Add experimental support for parallel building with a new
|
||||
:option:`sphinx-build -j` option.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
* PR#88: Added the "Sphinx Developer's Guide" (:file:`doc/devguide.rst`)
|
||||
which outlines the basic development process of the Sphinx project.
|
||||
* Added a detailed "Installing Sphinx" document (:file:`doc/install.rst`).
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* PR#124: Fix paragraphs in versionmodified are ignored when it has no
|
||||
dangling paragraphs. Fix wrong html output (nested ``<p>`` tag). Fix
|
||||
versionmodified is not translatable. Thanks to Nozomu Kaneko.
|
||||
* PR#111: Respect add_autodoc_attrgetter() even when inherited-members is set.
|
||||
Thanks to A. Jesse Jiryu Davis.
|
||||
* PR#97: Fix footnote handling in translated documents.
|
||||
* Fix text writer not handling visit_legend for figure directive contents.
|
||||
* Fix text builder not respecting wide/fullwidth characters: title underline
|
||||
width, table layout width and text wrap width.
|
||||
* Fix leading space in LaTeX table header cells.
|
||||
* #1132: Fix LaTeX table output for multi-row cells in the first column.
|
||||
* #1128: Fix Unicode errors when trying to format time strings with a
|
||||
non-standard locale.
|
||||
* #1127: Fix traceback when autodoc tries to tokenize a non-Python file.
|
||||
* #1126: Fix double-hyphen to en-dash conversion in wrong places such as
|
||||
command-line option names in LaTeX.
|
||||
* #1123: Allow whitespaces in filenames given to ``literalinclude``.
|
||||
* #1120: Added improvements about i18n for themes "basic", "haiku" and
|
||||
"scrolls" that Sphinx built-in. Thanks to Leonardo J. Caballero G.
|
||||
* #1118: Updated Spanish translation. Thanks to Leonardo J. Caballero G.
|
||||
* #1117: Handle .pyx files in sphinx-apidoc.
|
||||
* #1112: Avoid duplicate download files when referenced from documents in
|
||||
different ways (absolute/relative).
|
||||
* #1111: Fix failure to find uppercase words in search when
|
||||
``html_search_language`` is 'ja'. Thanks to Tomo Saito.
|
||||
* #1108: The text writer now correctly numbers enumerated lists with
|
||||
non-default start values (based on patch by Ewan Edwards).
|
||||
* #1102: Support multi-context "with" statements in autodoc.
|
||||
* #1090: Fix gettext not extracting glossary terms.
|
||||
* #1074: Add environment version info to the generated search index to avoid
|
||||
compatibility issues with old builds.
|
||||
* #1070: Avoid un-pickling issues when running Python 3 and the saved
|
||||
environment was created under Python 2.
|
||||
* #1069: Fixed error caused when autodoc would try to format signatures of
|
||||
"partial" functions without keyword arguments (patch by Artur Gaspar).
|
||||
* #1062: sphinx.ext.autodoc use __init__ method signature for class signature.
|
||||
* #1055: Fix web support with relative path to source directory.
|
||||
* #1043: Fix sphinx-quickstart asking again for yes/no questions because
|
||||
``input()`` returns values with an extra '\r' on Python 3.2.0 +
|
||||
Windows. Thanks to Régis Décamps.
|
||||
* #1041: Fix failure of the cpp domain parser to parse a const type with a
|
||||
modifier.
|
||||
* #1038: Fix failure of the cpp domain parser to parse C+11 "static constexpr"
|
||||
declarations. Thanks to Jakub Wilk.
|
||||
* #1029: Fix intersphinx_mapping values not being stable if the mapping has
|
||||
plural key/value set with Python 3.3.
|
||||
* #1028: Fix line block output in the text builder.
|
||||
* #1024: Improve Makefile/make.bat error message if Sphinx is not found. Thanks
|
||||
to Anatoly Techtonik.
|
||||
* #1018: Fix "container" directive handling in the text builder.
|
||||
* #1015: Stop overriding jQuery contains() in the JavaScript.
|
||||
* #1010: Make pngmath images transparent by default; IE7+ should handle it.
|
||||
* #1008: Fix test failures with Python 3.3.
|
||||
* #995: Fix table-of-contents and page numbering for the LaTeX "howto" class.
|
||||
* #976: Fix gettext does not extract index entries.
|
||||
* PR#72: #975: Fix gettext not extracting definition terms before Docutils 0.10.
|
||||
* #961: Fix LaTeX output for triple quotes in code snippets.
|
||||
* #958: Do not preserve ``environment.pickle`` after a failed build.
|
||||
* #955: Fix i18n transformation.
|
||||
* #940: Fix gettext does not extract figure caption.
|
||||
* #920: Fix PIL packaging issue that allowed to import ``Image`` without PIL
|
||||
namespace. Thanks to Marc Schlaich.
|
||||
* #723: Fix the search function on local files in WebKit based browsers.
|
||||
* #440: Fix coarse timestamp resolution in some filesystem generating a wrong
|
||||
list of outdated files.
|
||||
576
doc/changes/1.3.rst
Normal file
@@ -0,0 +1,576 @@
|
||||
==========
|
||||
Sphinx 1.3
|
||||
==========
|
||||
|
||||
|
||||
Release 1.3.6 (released Feb 29, 2016)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #1873, #1876, #2278: Add ``page_source_suffix`` html context variable. This
|
||||
should be introduced with :confval:`!source_parsers` feature. Thanks for Eric
|
||||
Holscher.
|
||||
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #2265: Fix babel is used in spite of disabling it on ``latex_elements``
|
||||
* #2295: Avoid mutating dictionary errors while enumerating members in autodoc
|
||||
with Python 3
|
||||
* #2291: Fix pdflatex "Counter too large" error from footnotes inside tables of
|
||||
contents
|
||||
* #2292: Fix some footnotes disappear from LaTeX output
|
||||
* #2287: ``sphinx.transforms.Locale`` always uses rst parser. Sphinx i18n
|
||||
feature should support parsers that specified source_parsers.
|
||||
* #2290: Fix ``sphinx.ext.mathbase`` use of amsfonts may break user choice of
|
||||
math fonts
|
||||
* #2324: Print a hint how to increase the recursion limit when it is hit.
|
||||
* #1565, #2229: Revert new warning; the new warning will be triggered from
|
||||
version 1.4 on.
|
||||
* #2329: Refresh environment forcedly if source directory has changed.
|
||||
* #2019: Fix the domain objects in search result are not escaped
|
||||
|
||||
Release 1.3.5 (released Jan 24, 2016)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Fix line numbers was not shown on warnings in LaTeX and texinfo builders
|
||||
* Fix filenames were not shown on warnings of citations
|
||||
* Fix line numbers was not shown on warnings in LaTeX and texinfo builders
|
||||
* Fix line numbers was not shown on warnings of indices
|
||||
* #2026: Fix LaTeX builder raises error if parsed-literal includes links
|
||||
* #2243: Ignore strange docstring types for classes, do not crash
|
||||
* #2247: Fix #2205 breaks make html for definition list with classifiers
|
||||
that contains regular-expression like string
|
||||
* #1565: Sphinx will now emit a warning that highlighting was skipped if the
|
||||
syntax is incorrect for ``code-block``, ``literalinclude`` and so on.
|
||||
* #2211: Fix paragraphs in table cell doesn't work in Latex output
|
||||
* #2253: ``:pyobject:`` option of ``literalinclude`` directive can't detect
|
||||
indented body block when the block starts with blank or comment lines.
|
||||
* Fix TOC is not shown when no ``:maxdepth:`` for toctrees (ref: #771)
|
||||
* Fix warning message for ``:numref:`` if target is in orphaned doc (ref: #2244)
|
||||
|
||||
Release 1.3.4 (released Jan 12, 2016)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #2134: Fix figure caption with reference causes latex build error
|
||||
* #2094: Fix rubric with reference not working in Latex
|
||||
* #2147: Fix literalinclude code in latex does not break in pages
|
||||
* #1833: Fix email addresses is showed again if latex_show_urls is not ``None``
|
||||
* #2176: sphinx.ext.graphviz: use <object> instead of <img> to embed svg
|
||||
* #967: Fix SVG inheritance diagram is not hyperlinked (clickable)
|
||||
* #1237: Fix footnotes not working in definition list in LaTeX
|
||||
* #2168: Fix raw directive does not work for text writer
|
||||
* #2171: Fix cannot linkcheck url with unicode
|
||||
* #2182: LaTeX: support image file names with more than 1 dots
|
||||
* #2189: Fix previous sibling link for first file in subdirectory uses last
|
||||
file, not intended previous from root toctree
|
||||
* #2003: Fix decode error under python2 (only) when ``make linkcheck`` is run
|
||||
* #2186: Fix LaTeX output of \mathbb in math
|
||||
* #1480, #2188: LaTeX: Support math in section titles
|
||||
* #2071: Fix same footnote in more than two section titles => LaTeX/PDF Bug
|
||||
* #2040: Fix UnicodeDecodeError in sphinx-apidoc when author contains non-ASCII
|
||||
characters
|
||||
* #2193: Fix shutil.SameFileError if source directory and destination directory
|
||||
are same
|
||||
* #2178: Fix unparsable C++ cross-reference when referencing a function with
|
||||
``:cpp:any:``
|
||||
* #2206: Fix Sphinx latex doc build failed due to a footnotes
|
||||
* #2201: Fix wrong table caption for tables with over 30 rows
|
||||
* #2213: Set <blockquote> in the classic theme to fit with <p>
|
||||
* #1815: Fix linkcheck does not raise an exception if warniserror set to true
|
||||
and link is broken
|
||||
* #2197: Fix slightly cryptic error message for missing index.rst file
|
||||
* #1894: Unlisted phony targets in quickstart Makefile
|
||||
* #2125: Fix unifies behavior of collapsed fields (``GroupedField`` and
|
||||
``TypedField``)
|
||||
* #1408: Check latex_logo validity before copying
|
||||
* #771: Fix latex output doesn't set tocdepth
|
||||
* #1820: On Windows, console coloring is broken with colorama version 0.3.3.
|
||||
Now Sphinx use colorama>=0.3.5 to avoid this problem.
|
||||
* #2072: Fix footnotes in chapter-titles do not appear in PDF output
|
||||
* #1580: Fix paragraphs in longtable don't work in Latex output
|
||||
* #1366: Fix centered image not centered in latex
|
||||
* #1860: Fix man page using ``:samp:`` with braces - font doesn't reset
|
||||
* #1610: Sphinx crashes in Japanese indexing in some systems
|
||||
* Fix Sphinx crashes if mecab initialization failed
|
||||
* #2160: Fix broken TOC of PDFs if section includes an image
|
||||
* #2172: Fix dysfunctional admonition ``\py@lightbox`` in sphinx.sty. Thanks to
|
||||
jfbu.
|
||||
* #2198,#2205: ``make gettext`` generate broken msgid for definition lists.
|
||||
* #2062: Escape characters in doctests are treated incorrectly with Python 2.
|
||||
* #2225: Fix if the option does not begin with dash, linking is not performed
|
||||
* #2226: Fix math is not HTML-encoded when :nowrap: is given (jsmath, mathjax)
|
||||
* #1601, #2220: 'any' role breaks extended domains behavior. Affected extensions
|
||||
doesn't support resolve_any_xref and resolve_xref returns problematic node
|
||||
instead of ``None``. sphinxcontrib-httpdomain is one of them.
|
||||
* #2229: Fix no warning is given for unknown options
|
||||
|
||||
Release 1.3.3 (released Dec 2, 2015)
|
||||
====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #2177: Fix parallel hangs
|
||||
* #2012: Fix exception occurred if ``numfig_format`` is invalid
|
||||
* #2142: Provide non-minified JS code in ``sphinx/search/non-minified-js/*.js``
|
||||
for source distribution on PyPI.
|
||||
* #2148: Error while building devhelp target with non-ASCII document.
|
||||
|
||||
|
||||
Release 1.3.2 (released Nov 29, 2015)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #1935: Make "numfig_format" overridable in latex_elements.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #1976: Avoid "2.0" version of Babel because it doesn't work with Windows
|
||||
environment.
|
||||
* Add a "default.css" stylesheet (which imports "classic.css") for compatibility
|
||||
* #1788: graphviz extension raises exception when caption option is present.
|
||||
* #1789: ``:pyobject:`` option of ``literalinclude`` directive includes
|
||||
following lines after class definitions
|
||||
* #1790: ``literalinclude`` strips empty lines at the head and tail
|
||||
* #1802: load plugin themes automatically when theme.conf use it as 'inherit'.
|
||||
Thanks to Takayuki Hirai.
|
||||
* #1794: custom theme extended from ``alabaster`` or ``sphinx_rtd_theme``
|
||||
can't find base theme.
|
||||
* #1834: compatibility for Docutils 0.13: handle_io_errors keyword argument for
|
||||
docutils.io.FileInput cause TypeError.
|
||||
* #1823: '.' as <module_path> for sphinx-apidoc cause an unfriendly error. Now
|
||||
'.' is converted to absolute path automatically.
|
||||
* Fix a crash when setting up extensions which do not support metadata.
|
||||
* #1784: Provide non-minified JS code in ``sphinx/search/non-minified-js/*.js``
|
||||
* #1822, #1892: Fix regression for #1061. autosummary can't generate doc for
|
||||
imported members since Sphinx 1.3b3. Thanks to Eric Larson.
|
||||
* #1793, #1819: "see also" misses a linebreak in text output. Thanks to Takayuki
|
||||
Hirai.
|
||||
* #1780, #1866: "make text" shows "class" keyword twice. Thanks to Takayuki
|
||||
Hirai.
|
||||
* #1871: Fix for LaTeX output of tables with one column and multirows.
|
||||
* Work around the lack of the HTMLParserError exception in Python 3.5.
|
||||
* #1949: Use ``safe_getattr`` in the coverage builder to avoid aborting with
|
||||
descriptors that have custom behavior.
|
||||
* #1915: Do not generate smart quotes in doc field type annotations.
|
||||
* #1796: On py3, automated .mo building caused UnicodeDecodeError.
|
||||
* #1923: Use babel features only if the babel latex element is nonempty.
|
||||
* #1942: Fix a KeyError in websupport.
|
||||
* #1903: Fix strange id generation for glossary terms.
|
||||
* ``make text`` will crush if a definition list item has more than 1 classifiers
|
||||
as: ``term : classifier1 : classifier2``.
|
||||
* #1855: make gettext generates broken po file for definition lists with
|
||||
classifier.
|
||||
* #1869: Fix problems when dealing with files containing non-ASCII characters.
|
||||
Thanks to Marvin Schmidt.
|
||||
* #1798: Fix building LaTeX with references in titles.
|
||||
* #1725: On py2 environment, doctest with using non-ASCII characters causes
|
||||
``'ascii' codec can't decode byte`` exception.
|
||||
* #1540: Fix RuntimeError with circular referenced toctree
|
||||
* #1983: i18n translation feature breaks references which uses section name.
|
||||
* #1990: Use caption of toctree to title of \tableofcontents in LaTeX
|
||||
* #1987: Fix ampersand is ignored in ``:menuselection:`` and ``:guilabel:``
|
||||
on LaTeX builder
|
||||
* #1994: More supporting non-standard parser (like recommonmark parser) for
|
||||
Translation and WebSupport feature. Now node.rawsource is fall backed to
|
||||
node.astext() during Docutils transforming.
|
||||
* #1989: "make blahblah" on Windows indicate help messages for sphinx-build
|
||||
every time. It was caused by wrong make.bat that generated by
|
||||
Sphinx 1.3.0/1.3.1.
|
||||
* On Py2 environment, conf.py that is generated by sphinx-quickstart should have
|
||||
u prefixed config value for 'version' and 'release'.
|
||||
* #2102: On Windows + Py3, using ``|today|`` and non-ASCII date format will
|
||||
raise UnicodeEncodeError.
|
||||
* #1974: UnboundLocalError: local variable 'domain' referenced before assignment
|
||||
when using ``any`` role and ``sphinx.ext.intersphinx`` in same time.
|
||||
* #2121: multiple words search doesn't find pages when words across on the page
|
||||
title and the page content.
|
||||
* #1884, #1885: plug-in html themes cannot inherit another plug-in theme. Thanks
|
||||
to Suzumizaki.
|
||||
* #1818: ``sphinx.ext.todo`` directive generates broken html class attribute as
|
||||
'admonition-' when :confval:`language` is specified with non-ASCII linguistic
|
||||
area like 'ru' or 'ja'. To fix this, now ``todo`` directive can use
|
||||
``:class:`` option.
|
||||
* #2140: Fix footnotes in table has broken in LaTeX
|
||||
* #2127: MecabBinder for html searching feature doesn't work with Python 3.
|
||||
Thanks to Tomoko Uchida.
|
||||
|
||||
|
||||
Release 1.3.1 (released Mar 17, 2015)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #1769: allows generating quickstart files/dirs for destination dir that
|
||||
doesn't overwrite existent files/dirs. Thanks to WAKAYAMA shirou.
|
||||
* #1773: sphinx-quickstart doesn't accept non-ASCII character as a option
|
||||
argument.
|
||||
* #1766: the message "least Python 2.6 to run" is at best misleading.
|
||||
* #1772: cross reference in docstrings like ``:param .write:`` breaks building.
|
||||
* #1770, #1774: ``literalinclude`` with empty file occurs exception. Thanks to
|
||||
Takayuki Hirai.
|
||||
* #1777: Sphinx 1.3 can't load extra theme. Thanks to tell-k.
|
||||
* #1776: ``source_suffix = ['.rst']`` cause unfriendly error on prior version.
|
||||
* #1771: automated .mo building doesn't work properly.
|
||||
* #1783: Autodoc: Python2 Allow unicode string in ``__all__``.
|
||||
Thanks to Jens Hedegaard Nielsen.
|
||||
* #1781: Setting ``html_domain_indices`` to a list raises a type check warnings.
|
||||
|
||||
|
||||
Release 1.3 (released Mar 10, 2015)
|
||||
===================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Roles ``ref``, ``term`` and ``menusel`` now don't generate :durole:`emphasis`
|
||||
nodes anymore. If you want to keep italic style, adapt your stylesheet.
|
||||
* Role ``numref`` uses ``%s`` as special character to indicate position of
|
||||
figure numbers instead ``#`` symbol.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Add convenience directives and roles to the C++ domain:
|
||||
directive ``cpp:var`` as alias for ``cpp:member``, role ``:cpp:var`` as alias
|
||||
for ``:cpp:member``, and role ``any`` for cross-reference to any C++
|
||||
declaraction. #1577, #1744
|
||||
* The :confval:`source_suffix` config value can now be a list of multiple
|
||||
suffixes.
|
||||
* Add the ability to specify source parsers by source suffix with the
|
||||
:confval:`!source_parsers` config value.
|
||||
* #1675: A new builder, AppleHelpBuilder, has been added that builds Apple
|
||||
Help Books.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* 1.3b3 change breaks a previous gettext output that contains duplicated
|
||||
msgid such as "foo bar" and "version changes in 1.3: foo bar".
|
||||
* #1745: latex builder cause maximum recursion depth exceeded when a
|
||||
footnote has a footnote mark itself.
|
||||
* #1748: SyntaxError in sphinx/ext/ifconfig.py with Python 2.6.
|
||||
* #1658, #1750: No link created (and warning given) if option does not
|
||||
begin with -, / or +. Thanks to Takayuki Hirai.
|
||||
* #1753: C++, added missing support for more complex declarations.
|
||||
* #1700: Add ``:caption:`` option for :rst:dir:`toctree`.
|
||||
* #1742: ``:name:`` option is provided for :rst:dir:`toctree`,
|
||||
:rst:dir:`code-block` and :rst:dir:`literalinclude` directives.
|
||||
* #1756: Incorrect section titles in search that was introduced from 1.3b3.
|
||||
* #1746: C++, fixed name lookup procedure, and added missing lookups in
|
||||
declarations.
|
||||
* #1765: C++, fix old id generation to use fully qualified names.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
* #1651: Add ``vartype`` field description for python domain.
|
||||
|
||||
|
||||
Release 1.3b3 (released Feb 24, 2015)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Dependency requirement updates: Docutils 0.11, Pygments 2.0
|
||||
* The ``gettext_enables`` config value has been renamed to
|
||||
``gettext_additional_targets``.
|
||||
* #1735: Use https://docs.python.org/ instead of ``http`` protocol.
|
||||
It was used for ``sphinx.ext.intersphinx`` and some documentation.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #1346: Add new default theme;
|
||||
|
||||
* Add '``alabaster``' theme.
|
||||
* Add '``sphinx_rtd_theme``' theme.
|
||||
* The 'default' html theme has been renamed to 'classic'. 'default' is still
|
||||
available, however it will emit notice a recommendation that using new
|
||||
'``alabaster``' theme.
|
||||
|
||||
* Added ``highlight_options`` configuration value.
|
||||
* The ``language`` config value is now available in the HTML templates.
|
||||
* The ``env-updated`` event can now return a value, which is interpreted
|
||||
as an iterable of additional docnames that need to be rewritten.
|
||||
* #772: Support for scoped and unscoped enums in C++. Enumerators in unscoped
|
||||
enums are injected into the parent scope in addition to the enum scope.
|
||||
* Add ``todo_include_todos`` config option to quickstart conf file, handled as
|
||||
described in documentation.
|
||||
* HTML breadcrumb items tag has class "nav-item" and "nav-item-N" (like
|
||||
nav-item-0, 1, 2...).
|
||||
* New option ``sphinx-quickstart --use-make-mode`` for generating Makefile that
|
||||
use sphinx-build make-mode.
|
||||
* #1235: i18n: several node can be translated if it is set to
|
||||
``gettext_additional_targets`` in conf.py. Supported nodes are:
|
||||
|
||||
- 'literal-block'
|
||||
- 'doctest-block'
|
||||
- 'raw'
|
||||
- 'image'
|
||||
|
||||
* #1227: Add ``html_scaled_image_link`` config option to conf.py, to control
|
||||
scaled image link.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* LaTeX writer now generates correct markup for cells spanning multiple rows.
|
||||
* #1674: Do not crash if a module's ``__all__`` is not a list of strings.
|
||||
* #1629: Use VerbatimBorderColor to add frame to code-block in LaTeX
|
||||
* On windows, make-mode didn't work on Win32 platform if Sphinx was invoked as
|
||||
``python sphinx-build.py``.
|
||||
* #1687: linkcheck now treats 401 Unauthorized responses as "working".
|
||||
* #1690: toctrees with ``glob`` option now can also contain entries for single
|
||||
documents with explicit title.
|
||||
* #1591: html search results for C++ elements now has correct interpage links.
|
||||
* bizstyle theme: nested long title pages make long breadcrumb that breaks page
|
||||
layout.
|
||||
* bizstyle theme: all breadcrumb items become 'Top' on some mobile browser
|
||||
(iPhone5s safari).
|
||||
* #1722: restore ``toctree()`` template function behavior that was changed at
|
||||
1.3b1.
|
||||
* #1732: i18n: localized table caption raises exception.
|
||||
* #1718: ``:numref:`` does not work with capital letters in the label
|
||||
* #1630: resolve CSS conflicts, ``div.container`` css target for literal block
|
||||
wrapper now renamed to ``div.literal-block-wrapper``.
|
||||
* ``sphinx.util.pycompat`` has been restored in its backwards-compatibility;
|
||||
slated for removal in Sphinx 1.4.
|
||||
* #1719: LaTeX writer does not respect ``numref_format`` option in captions
|
||||
|
||||
|
||||
Release 1.3b2 (released Dec 5, 2014)
|
||||
====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* update bundled ez_setup.py for setuptools-7.0 that requires Python 2.6 or
|
||||
later.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #1597: Added possibility to return a new template name from
|
||||
``html-page-context``.
|
||||
* PR#314, #1150: Configuration values are now checked for their type. A
|
||||
warning is raised if the configured and the default value do not have the
|
||||
same type and do not share a common non-trivial base class.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* PR#311: sphinx-quickstart does not work on python 3.4.
|
||||
* Fix :confval:`autodoc_docstring_signature` not working with signatures
|
||||
in class docstrings.
|
||||
* Rebuilding cause crash unexpectedly when source files were added.
|
||||
* #1607: Fix a crash when building latexpdf with "howto" class
|
||||
* #1251: Fix again. Sections which depth are lower than :tocdepth: should not
|
||||
be shown on localtoc sidebar.
|
||||
* make-mode didn't work on Win32 platform if Sphinx was installed by wheel
|
||||
package.
|
||||
|
||||
|
||||
Release 1.3b1 (released Oct 10, 2014)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Dropped support for Python 2.5, 3.1 and 3.2.
|
||||
* Dropped support for Docutils versions up to 0.9.
|
||||
* Removed the ``sphinx.ext.oldcmarkup`` extension.
|
||||
* The deprecated config values ``exclude_trees``, ``exclude_dirnames`` and
|
||||
``unused_docs`` have been removed.
|
||||
* A new node, ``sphinx.addnodes.literal_strong``, has been added, for text that
|
||||
should appear literally (i.e. no smart quotes) in strong font. Custom writers
|
||||
will have to be adapted to handle this node.
|
||||
* PR#269, #1476: replace ``<tt>`` tag by ``<code>``. User customized stylesheets
|
||||
should be updated If the css contain some styles for ``tt>`` tag.
|
||||
Thanks to Takeshi Komiya.
|
||||
* #1543: ``templates_path`` is automatically added to
|
||||
``exclude_patterns`` to avoid reading autosummary rst templates in the
|
||||
templates directory.
|
||||
* Custom domains should implement the new ``Domain.resolve_any_xref``
|
||||
method to make the ``any`` role work properly.
|
||||
* gettext builder: gettext doesn't emit uuid information to generated pot files
|
||||
by default. Please set ``True`` to ``gettext_uuid`` to emit uuid information.
|
||||
Additionally, if the ``python-levenshtein`` 3rd-party package is installed,
|
||||
it will improve the calculation time.
|
||||
* gettext builder: disable extracting/apply 'index' node by default. Please set
|
||||
'index' to ``gettext_enables`` to enable extracting index entries.
|
||||
* PR#307: Add frame to code-block in LaTeX. Thanks to Takeshi Komiya.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Add support for Python 3.4.
|
||||
* Add support for Docutils 0.12
|
||||
* Added ``sphinx.ext.napoleon`` extension for NumPy and Google style docstring
|
||||
support.
|
||||
* Added support for parallel reading (parsing) of source files with the
|
||||
``sphinx-build -j`` option. Third-party extensions will need to be checked for
|
||||
compatibility and may need to be adapted if they store information in the
|
||||
build environment object. See ``env-merge-info``.
|
||||
* Added the ``any`` role that can be used to find a cross-reference of
|
||||
*any* type in *any* domain. Custom domains should implement the new
|
||||
``Domain.resolve_any_xref`` method to make this work properly.
|
||||
* Exception logs now contain the last 10 messages emitted by Sphinx.
|
||||
* Added support for extension versions (a string returned by ``setup()``, these
|
||||
can be shown in the traceback log files). Version requirements for extensions
|
||||
can be specified in projects using the new ``needs_extensions`` config
|
||||
value.
|
||||
* Changing the default role within a document with the :dudir:`default-role`
|
||||
directive is now supported.
|
||||
* PR#214: Added stemming support for 14 languages, so that the built-in document
|
||||
search can now handle these. Thanks to Shibukawa Yoshiki.
|
||||
* PR#296, PR#303, #76: numfig feature: Assign numbers to figures, tables and
|
||||
code-blocks. This feature is configured with ``numfig``, ``numfig_secnum_depth``
|
||||
and ``numfig_format``. Also ``numref`` role is available. Thanks to Takeshi
|
||||
Komiya.
|
||||
* PR#202: Allow "." and "~" prefixed references in ``:param:`` doc fields
|
||||
for Python.
|
||||
* PR#184: Add ``autodoc_mock_imports``, allowing to mock imports of
|
||||
external modules that need not be present when autodocumenting.
|
||||
* #925: Allow list-typed config values to be provided on the command line,
|
||||
like ``-D key=val1,val2``.
|
||||
* #668: Allow line numbering of ``code-block`` and ``literalinclude`` directives
|
||||
to start at an arbitrary line number, with a new ``lineno-start`` option.
|
||||
* PR#172, PR#266: The ``code-block`` and ``literalinclude``
|
||||
directives now can have a ``caption`` option that shows a filename before the
|
||||
code in the output. Thanks to Nasimul Haque, Takeshi Komiya.
|
||||
* Prompt for the document language in sphinx-quickstart.
|
||||
* PR#217: Added config values to suppress UUID and location information in
|
||||
generated gettext catalogs.
|
||||
* PR#236, #1456: apidoc: Add a -M option to put module documentation before
|
||||
submodule documentation. Thanks to Wes Turner and Luc Saffre.
|
||||
* #1434: Provide non-minified JS files for jquery.js and underscore.js to
|
||||
clarify the source of the minified files.
|
||||
* PR#252, #1291: Windows color console support. Thanks to meu31.
|
||||
* PR#255: When generating latex references, also insert latex target/anchor
|
||||
for the ids defined on the node. Thanks to Olivier Heurtier.
|
||||
* PR#229: Allow registration of other translators. Thanks to Russell Sim.
|
||||
* Add app.set_translator() API to register or override a Docutils translator
|
||||
class like ``html_translator_class``.
|
||||
* PR#267, #1134: add 'diff' parameter to literalinclude. Thanks to Richard Wall
|
||||
and WAKAYAMA shirou.
|
||||
* PR#272: Added 'bizstyle' theme. Thanks to Shoji KUMAGAI.
|
||||
* Automatically compile ``*.mo`` files from ``*.po`` files when
|
||||
``gettext_auto_build`` is ``True`` (default) and ``*.po`` is newer than
|
||||
``*.mo`` file.
|
||||
* #623: ``sphinx.ext.viewcode`` supports imported function/class aliases.
|
||||
* PR#275: ``sphinx.ext.intersphinx`` supports multiple target for the
|
||||
inventory. Thanks to Brigitta Sipocz.
|
||||
* PR#261: Added the ``env-before-read-docs`` event that can be connected to modify
|
||||
the order of documents before they are read by the environment.
|
||||
* #1284: Program options documented with :rst:dir:`option` can now start with
|
||||
``+``.
|
||||
* PR#291: The caption of :rst:dir:`code-block` is recognized as a title of ref
|
||||
target. Thanks to Takeshi Komiya.
|
||||
* PR#298: Add new API: :meth:`~sphinx.application.Sphinx.add_latex_package`.
|
||||
Thanks to Takeshi Komiya.
|
||||
* #1344: add ``gettext_enables`` to enable extracting 'index' to gettext
|
||||
catalog output / applying translation catalog to generated documentation.
|
||||
* PR#301, #1583: Allow the line numbering of the directive ``literalinclude`` to
|
||||
match that of the included file, using a new ``lineno-match`` option. Thanks
|
||||
to Jeppe Pihl.
|
||||
* PR#299: add various options to sphinx-quickstart. Quiet mode option
|
||||
``--quiet`` will skips wizard mode. Thanks to WAKAYAMA shirou.
|
||||
* #1623: Return types specified with ``:rtype:`` are now turned into links if
|
||||
possible.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #1438: Updated jQuery version from 1.8.3 to 1.11.1.
|
||||
* #1568: Fix a crash when a "centered" directive contains a reference.
|
||||
* Now sphinx.ext.autodoc works with python-2.5 again.
|
||||
* #1563: :meth:`~sphinx.application.Sphinx.add_search_language` raises
|
||||
AssertionError for correct type of argument. Thanks to rikoman.
|
||||
* #1174: Fix smart quotes being applied inside roles like :rst:role:`program` or
|
||||
``makevar``.
|
||||
* PR#235: comment db schema of websupport lacked a length of the node_id field.
|
||||
Thanks to solos.
|
||||
* #1466,PR#241: Fix failure of the cpp domain parser to parse C+11
|
||||
"variadic templates" declarations. Thanks to Victor Zverovich.
|
||||
* #1459,PR#244: Fix default mathjax js path point to ``http://`` that cause
|
||||
mixed-content error on HTTPS server. Thanks to sbrandtb and robo9k.
|
||||
* PR#157: autodoc remove spurious signatures from @property decorated
|
||||
attributes. Thanks to David Ham.
|
||||
* PR#159: Add coverage targets to quickstart generated Makefile and make.bat.
|
||||
Thanks to Matthias Troffaes.
|
||||
* #1251: When specifying toctree :numbered: option and :tocdepth: metadata,
|
||||
sub section number that is larger depth than ``:tocdepth:`` is shrunk.
|
||||
* PR#260: Encode underscore in citation labels for latex export. Thanks to
|
||||
Lennart Fricke.
|
||||
* PR#264: Fix could not resolve xref for figure node with :name: option.
|
||||
Thanks to Takeshi Komiya.
|
||||
* PR#265: Fix could not capture caption of graphviz node by xref. Thanks to
|
||||
Takeshi Komiya.
|
||||
* PR#263, #1013, #1103: Rewrite of C++ domain. Thanks to Jakob Lykke Andersen.
|
||||
|
||||
* Hyperlinks to all found nested names and template arguments (#1103).
|
||||
* Support for function types everywhere, e.g., in
|
||||
std::function<bool(int, int)> (#1013).
|
||||
* Support for virtual functions.
|
||||
* Changed interpretation of function arguments to following standard
|
||||
prototype declarations, i.e., void f(arg) means that arg is the type of the
|
||||
argument, instead of it being the name.
|
||||
* Updated tests.
|
||||
* Updated documentation with elaborate description of what declarations are
|
||||
supported and how the namespace declarations influence declaration and
|
||||
cross-reference lookup.
|
||||
* Index names may be different now. Elements are indexed by their fully
|
||||
qualified name. It should be rather easy to change this behaviour and
|
||||
potentially index by namespaces/classes as well.
|
||||
|
||||
* PR#258, #939: Add dedent option for ``code-block`` and
|
||||
``literalinclude``. Thanks to Zafar Siddiqui.
|
||||
* PR#268: Fix numbering section does not work at singlehtml mode. It still
|
||||
ad-hoc fix because there is a issue that section IDs are conflicted.
|
||||
Thanks to Takeshi Komiya.
|
||||
* PR#273, #1536: Fix RuntimeError with numbered circular toctree. Thanks to
|
||||
Takeshi Komiya.
|
||||
* PR#274: Set its URL as a default title value if URL appears in toctree.
|
||||
Thanks to Takeshi Komiya.
|
||||
* PR#276, #1381: ``rfc`` and ``pep`` roles support custom link
|
||||
text. Thanks to Takeshi Komiya.
|
||||
* PR#277, #1513: highlights for function pointers in argument list of
|
||||
``c:function``. Thanks to Takeshi Komiya.
|
||||
* PR#278: Fix section entries were shown twice if toctree has been put under
|
||||
only directive. Thanks to Takeshi Komiya.
|
||||
* #1547: pgen2 tokenizer doesn't recognize ``...`` literal (Ellipsis for py3).
|
||||
* PR#294: On LaTeX builder, wrap float environment on writing literal_block
|
||||
to avoid separation of caption and body. Thanks to Takeshi Komiya.
|
||||
* PR#295, #1520: ``make.bat latexpdf`` mechanism to ``cd`` back to the current
|
||||
directory. Thanks to Peter Suter.
|
||||
* PR#297, #1571: Add imgpath property to all builders. It make easier to
|
||||
develop builder extensions. Thanks to Takeshi Komiya.
|
||||
* #1584: Point to master doc in HTML "top" link.
|
||||
* #1585: Autosummary of modules broken in Sphinx 1.2.3.
|
||||
* #1610: Sphinx cause AttributeError when MeCab search option is enabled and
|
||||
python-mecab is not installed.
|
||||
* #1674: Do not crash if a module's ``__all__`` is not a list of strings.
|
||||
* #1673: Fix crashes with :confval:`nitpick_ignore` and ``:doc:`` references.
|
||||
* #1686: ifconfig directive doesn't care about default config values.
|
||||
* #1642: Fix only one search result appearing in Chrome.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
* Add clarification about the syntax of tags. (:file:`doc/markup/misc.rst`)
|
||||
509
doc/changes/1.4.rst
Normal file
@@ -0,0 +1,509 @@
|
||||
==========
|
||||
Sphinx 1.4
|
||||
==========
|
||||
|
||||
|
||||
Release 1.4.9 (released Nov 23, 2016)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #2936: Fix doc/Makefile that can't build man because doc/man exists
|
||||
* #3058: Using the same 'caption' attribute in multiple 'toctree' directives
|
||||
results in warning / error
|
||||
* #3068: Allow the '=' character in the -D option of sphinx-build.py
|
||||
* #3074: ``add_source_parser()`` crashes in debug mode
|
||||
* #3135: ``sphinx.ext.autodoc`` crashes with plain Callable
|
||||
* #3150: Fix query word splitter in JavaScript. It behaves as same as Python's
|
||||
regular expression.
|
||||
* #3093: gettext build broken on substituted images.
|
||||
* #3093: gettext build broken on image node under ``note`` directive.
|
||||
* imgmath: crashes on showing error messages if image generation failed
|
||||
* #3117: LaTeX writer crashes if admonition is placed before first section title
|
||||
* #3164: Change search order of ``sphinx.ext.inheritance_diagram``
|
||||
|
||||
Release 1.4.8 (released Oct 1, 2016)
|
||||
====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #2996: The wheel package of Sphinx got crash with ImportError
|
||||
|
||||
Release 1.4.7 (released Oct 1, 2016)
|
||||
====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #2890: Quickstart should return an error consistently on all error conditions
|
||||
* #2870: flatten genindex columns' heights.
|
||||
* #2856: Search on generated HTML site doesn't find some symbols
|
||||
* #2882: Fall back to a GET request on 403 status in linkcheck
|
||||
* #2902: jsdump.loads fails to load search index if keywords starts with
|
||||
underscore
|
||||
* #2900: Fix epub content.opf: add auto generated orphan files to spine.
|
||||
* #2899: Fix ``hasdoc()`` function in Jinja2 template. It will detect
|
||||
``genindex``, ``search`` also.
|
||||
* #2901: Fix epub result: skip creating links from image tags to original image
|
||||
files.
|
||||
* #2917: inline code is hyphenated on HTML
|
||||
* #1462: autosummary warns for namedtuple with attribute with trailing
|
||||
underscore
|
||||
* Could not reference equations if ``:nowrap:`` option specified
|
||||
* #2873: code-block overflow in latex (due to commas)
|
||||
* #1060, #2056: sphinx.ext.intersphinx: broken links are generated if relative
|
||||
paths are used in ``intersphinx_mapping``
|
||||
* #2931: code-block directive with same :caption: causes warning of duplicate
|
||||
target. Now ``code-block`` and ``literalinclude`` does not define hyperlink
|
||||
target using its caption automatically.
|
||||
* #2962: latex: missing label of longtable
|
||||
* #2968: autodoc: show-inheritance option breaks docstrings
|
||||
|
||||
Release 1.4.6 (released Aug 20, 2016)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #2867: linkcheck builder crashes with six-1.4. Now Sphinx depends on six-1.5
|
||||
or later
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* applehelp: Sphinx crashes if ``hiutil`` or ``codesign`` commands not found
|
||||
* Fix ``make clean`` abort issue when build dir contains regular files like
|
||||
``DS_Store``.
|
||||
* Reduce epubcheck warnings/errors:
|
||||
|
||||
* Fix DOCTYPE to html5
|
||||
* Change extension from .html to .xhtml.
|
||||
* Disable search page on epub results
|
||||
|
||||
* #2778: Fix autodoc crashes if obj.__dict__ is a property method and raises
|
||||
exception
|
||||
* Fix duplicated toc in epub3 output.
|
||||
* #2775: Fix failing linkcheck with servers not supporting identity encoding
|
||||
* #2833: Fix formatting instance annotations in ext.autodoc.
|
||||
* #1911: ``-D`` option of ``sphinx-build`` does not override the ``extensions``
|
||||
variable
|
||||
* #2789: ``sphinx.ext.intersphinx`` generates wrong hyperlinks if the inventory is
|
||||
given
|
||||
* parsing errors for caption of code-blocks are displayed in document
|
||||
(ref: #2845)
|
||||
* #2846: ``singlehtml`` builder does not include figure numbers
|
||||
* #2816: Fix data from builds cluttering the ``Domain.initial_data`` class
|
||||
attributes
|
||||
|
||||
Release 1.4.5 (released Jul 13, 2016)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* latex, inclusion of non-inline images from image directive resulted in
|
||||
non-coherent whitespaces depending on original image width; new behaviour
|
||||
by necessity differs from earlier one in some cases. (ref: #2672)
|
||||
* latex, use of ``\includegraphics`` to refer to Sphinx custom variant is
|
||||
deprecated; in future it will revert to original LaTeX macro, custom one
|
||||
already has alternative name ``\sphinxincludegraphics``.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* new config option :confval:`!latex_keep_old_macro_names`, defaults to ``True``.
|
||||
If ``False``, lets macros (for text styling) be defined
|
||||
only with ``\sphinx``-prefixed names
|
||||
* latex writer allows user customization of "shadowed" boxes (topics), via
|
||||
three length variables.
|
||||
* woff-format web font files now supported by the epub builder.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* jsdump fix for python 3: fixes the HTML search on python > 3
|
||||
* #2676: (latex) Error with verbatim text in captions since Sphinx 1.4.4
|
||||
* #2629: memoir class crashes LaTeX. Fixed by
|
||||
``latex_keep_old_macro_names=False`` (ref 2675)
|
||||
* #2684: ``sphinx.ext.intersphinx`` crashes with six-1.4.1
|
||||
* #2679: ``float`` package needed for ``'figure_align': 'H'`` latex option
|
||||
* #2671: image directive may lead to inconsistent spacing in pdf
|
||||
* #2705: ``toctree`` generates empty bullet_list if ``:titlesonly:`` specified
|
||||
* #2479: ``sphinx.ext.viewcode`` uses python2 highlighter by default
|
||||
* #2700: HtmlHelp builder has hard coded index.html
|
||||
* latex, since 1.4.4 inline literal text is followed by spurious space
|
||||
* #2722: C++, fix id generation for var/member declarations to include
|
||||
namespaces.
|
||||
* latex, images (from image directive) in lists or quoted blocks did not obey
|
||||
indentation (fixed together with #2671)
|
||||
* #2733: since Sphinx 1.4.4 ``make latexpdf`` generates lots of hyperref
|
||||
warnings
|
||||
* #2731: ``sphinx.ext.autodoc`` does not access propertymethods which raises any
|
||||
exceptions
|
||||
* #2666: C++, properly look up nested names involving constructors.
|
||||
* #2579: Could not refer a label including both spaces and colons via
|
||||
``sphinx.ext.intersphinx``
|
||||
* #2718: Sphinx crashes if the document file is not readable
|
||||
* #2699: hyperlinks in help HTMLs are broken if ``html_file_suffix`` is set
|
||||
* #2723: extra spaces in latex pdf output from multirow cell
|
||||
* #2735: latexpdf ``Underfull \hbox (badness 10000)`` warnings from title page
|
||||
* #2667: latex crashes if resized images appeared in section title
|
||||
* #2763: (html) Provide default value for required ``alt`` attribute for image
|
||||
tags of SVG source, required to validate and now consistent w/ other formats.
|
||||
|
||||
|
||||
Release 1.4.4 (released Jun 12, 2016)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #2630: latex: sphinx.sty notice environment formatting problem
|
||||
* #2632: Warning directives fail in quote environment latex build
|
||||
* #2633: Sphinx crashes with old styled indices
|
||||
* Fix a ``\begin{\minipage}`` typo in sphinx.sty from 1.4.2 (ref: 68becb1)
|
||||
* #2622: Latex produces empty pages after title and table of contents
|
||||
* #2640: 1.4.2 LaTeX crashes if code-block inside warning directive
|
||||
* Let LaTeX use straight quotes also in inline code (ref #2627)
|
||||
* #2351: latex crashes if enumerated lists are placed on footnotes
|
||||
* #2646: latex crashes if math contains twice empty lines
|
||||
* #2480: ``sphinx.ext.autodoc``: memory addresses were shown
|
||||
* latex: allow code-blocks appearing inside lists and quotes at maximal nesting
|
||||
depth (ref #777, #2624, #2651)
|
||||
* #2635: Latex code directives produce inconsistent frames based on viewing
|
||||
resolution
|
||||
* #2639: Sphinx now bundles iftex.sty
|
||||
* Failed to build PDF with framed.sty 0.95
|
||||
* Sphinx now bundles needspace.sty
|
||||
|
||||
|
||||
Release 1.4.3 (released Jun 5, 2016)
|
||||
====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #2530: got "Counter too large" error on building PDF if large numbered
|
||||
footnotes existed in admonitions
|
||||
* ``width`` option of figure directive does not work if ``align`` option
|
||||
specified at same time (ref: #2595)
|
||||
* #2590: The ``inputenc`` package breaks compiling under lualatex and xelatex
|
||||
* #2540: date on latex front page use different font
|
||||
* Suppress "document isn't included in any toctree" warning if the document is
|
||||
included (ref: #2603)
|
||||
* #2614: Some tables in PDF output will end up shifted if user sets non zero
|
||||
\parindent in preamble
|
||||
* #2602: URL redirection breaks the hyperlinks generated by
|
||||
``sphinx.ext.intersphinx``
|
||||
* #2613: Show warnings if merged extensions are loaded
|
||||
* #2619: make sure amstext LaTeX package always loaded (ref: d657225, 488ee52,
|
||||
9d82cad and #2615)
|
||||
* #2593: latex crashes if any figures in the table
|
||||
|
||||
|
||||
Release 1.4.2 (released May 29, 2016)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Now :confval:`suppress_warnings` accepts following configurations
|
||||
(ref: #2451, #2466):
|
||||
|
||||
- ``app.add_node``
|
||||
- ``app.add_directive``
|
||||
- ``app.add_role``
|
||||
- ``app.add_generic_role``
|
||||
- ``app.add_source_parser``
|
||||
- ``image.data_uri``
|
||||
- ``image.nonlocal_uri``
|
||||
|
||||
* #2453: LaTeX writer allows page breaks in topic contents; and their
|
||||
horizontal extent now fits in the line width (with shadow in margin). Also
|
||||
warning-type admonitions allow page breaks and their vertical spacing has
|
||||
been made more coherent with the one for hint-type notices (ref #2446).
|
||||
|
||||
* #2459: the framing of literal code-blocks in LaTeX output (and not only the
|
||||
code lines themselves) obey the indentation in lists or quoted blocks.
|
||||
|
||||
* #2343: the long source lines in code-blocks are wrapped (without modifying
|
||||
the line numbering) in LaTeX output (ref #1534, #2304).
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #2370: the equations are slightly misaligned in LaTeX writer
|
||||
* #1817, #2077: suppress pep8 warnings on conf.py generated by sphinx-quickstart
|
||||
* #2407: building docs crash if document includes large data image URIs
|
||||
* #2436: Sphinx does not check version by :confval:`needs_sphinx` if loading
|
||||
extensions failed
|
||||
* #2397: Setup shorthandoff for Turkish documents
|
||||
* #2447: VerbatimBorderColor wrongly used also for captions of PDF
|
||||
* #2456: C++, fix crash related to document merging (e.g., singlehtml and Latex
|
||||
builders).
|
||||
* #2446: latex(pdf) sets local tables of contents (or more generally topic
|
||||
nodes) in unbreakable boxes, causes overflow at bottom
|
||||
* #2476: Omit MathJax markers if :nowrap: is given
|
||||
* #2465: latex builder fails in case no caption option is provided to toctree
|
||||
directive
|
||||
* Sphinx crashes if self referenced toctree found
|
||||
* #2481: spelling mistake for mecab search splitter. Thanks to Naoki Sato.
|
||||
* #2309: Fix could not refer "indirect hyperlink targets" by ref-role
|
||||
* intersphinx fails if mapping URL contains any port
|
||||
* #2088: intersphinx crashes if the mapping URL requires basic auth
|
||||
* #2304: auto line breaks in latexpdf codeblocks
|
||||
* #1534: Word wrap long lines in Latex verbatim blocks
|
||||
* #2460: too much white space on top of captioned literal blocks in PDF output
|
||||
* Show error reason when multiple math extensions are loaded (ref: #2499)
|
||||
* #2483: any figure number was not assigned if figure title contains only non
|
||||
text objects
|
||||
* #2501: Unicode subscript numbers are normalized in LaTeX
|
||||
* #2492: Figure directive with :figwidth: generates incorrect Latex-code
|
||||
* The caption of figure is always put on center even if ``:align:`` was
|
||||
specified
|
||||
* #2526: LaTeX writer crashes if the section having only images
|
||||
* #2522: Sphinx touches mo files under installed directory that caused
|
||||
permission error.
|
||||
* #2536: C++, fix crash when an immediately nested scope has the same name as
|
||||
the current scope.
|
||||
* #2555: Fix crash on any-references with unicode.
|
||||
* #2517: wrong bookmark encoding in PDF if using LuaLaTeX
|
||||
* #2521: generated Makefile causes BSD make crashed if sphinx-build not found
|
||||
* #2470: ``typing`` backport package causes autodoc errors with python 2.7
|
||||
* ``sphinx.ext.intersphinx`` crashes if non-string value is used for key of
|
||||
``intersphinx_mapping``
|
||||
* #2518: ``intersphinx_mapping`` disallows non alphanumeric keys
|
||||
* #2558: unpack error on devhelp builder
|
||||
* #2561: Info builder crashes when a footnote contains a link
|
||||
* #2565: The descriptions of objects generated by ``sphinx.ext.autosummary``
|
||||
overflow lines at LaTeX writer
|
||||
* Extend pdflatex config in sphinx.sty to subparagraphs (ref: #2551)
|
||||
* #2445: ``rst_prolog`` and ``rst_epilog`` affect to non reST sources
|
||||
* #2576: ``sphinx.ext.imgmath`` crashes if subprocess raises error
|
||||
* #2577: ``sphinx.ext.imgmath``: Invalid argument are passed to dvisvgm
|
||||
* #2556: Xapian search does not work with Python 3
|
||||
* #2581: The search doesn't work if language="es" (Spanish)
|
||||
* #2382: Adjust spacing after abbreviations on figure numbers in LaTeX writer
|
||||
* #2383: The generated footnote by ``latex_show_urls`` overflows lines
|
||||
* #2497, #2552: The label of search button does not fit for the button itself
|
||||
|
||||
|
||||
Release 1.4.1 (released Apr 12, 2016)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* The default format of ``today_fmt`` and ``html_last_updated_fmt`` is back to
|
||||
strftime format again. Locale Date Markup Language is also supported for
|
||||
backward compatibility until Sphinx 1.5.
|
||||
|
||||
Translations
|
||||
------------
|
||||
|
||||
* Added Welsh translation, thanks to Geraint Palmer.
|
||||
* Added Greek translation, thanks to Stelios Vitalis.
|
||||
* Added Esperanto translation, thanks to Dinu Gherman.
|
||||
* Added Hindi translation, thanks to Purnank H. Ghumalia.
|
||||
* Added Romanian translation, thanks to Razvan Stefanescu.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* C++, added support for ``extern`` and ``thread_local``.
|
||||
* C++, type declarations are now using the prefixes ``typedef``, ``using``, and
|
||||
``type``, depending on the style of declaration.
|
||||
* #2413: C++, fix crash on duplicate declarations
|
||||
* #2394: Sphinx crashes when html_last_updated_fmt is invalid
|
||||
* #2408: dummy builder not available in Makefile and make.bat
|
||||
* #2412: hyperlink targets are broken in LaTeX builder
|
||||
* figure directive crashes if non paragraph item is given as caption
|
||||
* #2418: time formats no longer allowed in today_fmt
|
||||
* #2395: Sphinx crashes if unicode character in image filename
|
||||
* #2396: "too many values to unpack" in genindex-single
|
||||
* #2405: numref link in PDF jumps to the wrong location
|
||||
* #2414: missing number in PDF hyperlinks to code listings
|
||||
* #2440: wrong import for gmtime. Thanks to Uwe L. Korn.
|
||||
|
||||
|
||||
Release 1.4 (released Mar 28, 2016)
|
||||
===================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
* Drop ``PorterStemmer`` package support. Use ``PyStemmer`` instead of
|
||||
``PorterStemmer`` to accelerate stemming.
|
||||
* ``sphinx_rtd_theme`` has become optional. Please install it manually.
|
||||
Refs #2087, #2086, #1845 and #2097. Thanks to Victor Zverovich.
|
||||
* #2231: Use DUrole instead of DUspan for custom roles in LaTeX writer. It
|
||||
enables to take title of roles as an argument of custom macros.
|
||||
* #2022: 'Thumbs.db' and '.DS_Store' are added to ``exclude_patterns`` default
|
||||
values in conf.py that will be provided on sphinx-quickstart.
|
||||
* #2027, #2208: The ``html_title`` accepts string values only. And the ``None``
|
||||
value cannot be accepted.
|
||||
* ``sphinx.ext.graphviz``: show graph image in inline by default
|
||||
* #2060, #2224: The ``manpage`` role now generate ``sphinx.addnodes.manpage``
|
||||
node instead of ``sphinx.addnodes.literal_emphasis`` node.
|
||||
* #2022: :confval:`html_extra_path` also copies dotfiles in the extra directory,
|
||||
and refers to :confval:`exclude_patterns` to exclude extra files and
|
||||
directories.
|
||||
* #2300: enhance autoclass:: to use the docstring of __new__ if __init__
|
||||
method's is missing of empty
|
||||
* #2251: Previously, under glossary directives, multiple terms for one
|
||||
definition are converted into single ``term`` node and the each terms in the
|
||||
term node are separated by ``termsep`` node. In new implementation, each terms
|
||||
are converted into individual ``term`` nodes and ``termsep`` node is removed.
|
||||
By this change, output layout of every builders are changed a bit.
|
||||
* The default highlight language is now Python 3. This means that source code
|
||||
is highlighted as Python 3 (which is mostly a superset of Python 2), and no
|
||||
parsing is attempted to distinguish valid code. To get the old behavior back,
|
||||
add ``highlight_language = "python"`` to conf.py.
|
||||
* `Locale Date Markup Language
|
||||
<https://unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns>`_ like
|
||||
``"MMMM dd, YYYY"`` is default format for ``today_fmt`` and
|
||||
``html_last_updated_fmt``. However strftime format like ``"%B %d, %Y"`` is also
|
||||
supported for backward compatibility until Sphinx 1.5. Later format will be
|
||||
disabled from Sphinx 1.5.
|
||||
* #2327: ``latex_use_parts`` is deprecated now. Use ``latex_toplevel_sectioning``
|
||||
instead.
|
||||
* #2337: Use ``\url{URL}`` macro instead of ``\href{URL}{URL}`` in LaTeX writer.
|
||||
* #1498: manpage writer: don't make whole of item in definition list bold if it
|
||||
includes strong node.
|
||||
* #582: Remove hint message from quick search box for html output.
|
||||
* #2378: Sphinx now bundles newfloat.sty
|
||||
|
||||
Features added
|
||||
--------------
|
||||
* #2092: add todo directive support in napoleon package.
|
||||
* #1962: when adding directives, roles or nodes from an extension, warn if such
|
||||
an element is already present (built-in or added by another extension).
|
||||
* #1909: Add "doc" references to Intersphinx inventories.
|
||||
* C++ type alias support (e.g., ``.. type:: T = int``).
|
||||
* C++ template support for classes, functions, type aliases, and variables
|
||||
(#1729, #1314).
|
||||
* C++, added new scope management directives ``namespace-push`` and
|
||||
``namespace-pop``.
|
||||
* #1970: Keyboard shortcuts to navigate Next and Previous topics
|
||||
* Intersphinx: Added support for fetching Intersphinx inventories with URLs
|
||||
using HTTP basic auth.
|
||||
* C++, added support for template parameter in function info field lists.
|
||||
* C++, added support for pointers to member (function).
|
||||
* #2113: Allow ``:class:`` option to code-block directive.
|
||||
* #2192: Imgmath (pngmath with svg support).
|
||||
* #2200: Support XeTeX and LuaTeX for the LaTeX builder.
|
||||
* #1906: Use xcolor over color for \fcolorbox where available for LaTeX output.
|
||||
* #2216: Texinputs makefile improvements.
|
||||
* #2170: Support for Chinese language search index.
|
||||
* #2214: Add sphinx.ext.githubpages to publish the docs on GitHub Pages
|
||||
* #1030: Make page reference names for latex_show_pagerefs translatable
|
||||
* #2162: Add Sphinx.add_source_parser() to add source_suffix and source_parsers
|
||||
from extension
|
||||
* #2207: Add sphinx.parsers.Parser class; a base class for new parsers
|
||||
* #656: Add ``graphviz_dot`` option to graphviz directives to switch the ``dot``
|
||||
command
|
||||
* #1939: Added the ``dummy`` builder: syntax check without output.
|
||||
* #2230: Add ``math_number_all`` option to number all displayed math in math
|
||||
extensions
|
||||
* #2235: ``needs_sphinx`` supports micro version comparison
|
||||
* #2282: Add "language" attribute to html tag in the "basic" theme
|
||||
* #1779: Add EPUB 3 builder
|
||||
* #1751: Add :confval:`todo_link_only` to avoid file path and line indication on
|
||||
:rst:dir:`todolist`. Thanks to Francesco Montesano.
|
||||
* #2199: Use ``imagesize`` package to obtain size of images.
|
||||
* #1099: Add configurable retries to the linkcheck builder. Thanks to Alex
|
||||
Gaynor. Also don't check anchors starting with ``!``.
|
||||
* #2300: enhance autoclass:: to use the docstring of __new__ if __init__
|
||||
method's is missing of empty
|
||||
* #1858: Add Sphinx.add_enumerable_node() to add enumerable nodes for numfig
|
||||
feature
|
||||
* #1286, #2099: Add ``sphinx.ext.autosectionlabel`` extension to allow reference
|
||||
sections using its title. Thanks to Tadhg O'Higgins.
|
||||
* #1854: Allow to choose Janome for Japanese splitter.
|
||||
* #1853: support custom text splitter on html search with ``language='ja'``.
|
||||
* #2320: classifier of glossary terms can be used for index entries grouping key
|
||||
The classifier also be used for translation. See also
|
||||
:ref:`glossary-directive`.
|
||||
* #2308: Define ``\tablecontinued`` macro to redefine the style of continued
|
||||
label for longtables.
|
||||
* Select an image by similarity if multiple images are globbed by
|
||||
``.. image:: filename.*``
|
||||
* #1921: Support figure substitutions by :confval:`language` and
|
||||
:confval:`figure_language_filename`
|
||||
* #2245: Add ``latex_elements["passoptionstopackages"]`` option to call
|
||||
PassOptionsToPackages in early stage of preambles.
|
||||
* #2340: Math extension: support alignment of multiple equations for MathJax.
|
||||
* #2338: Define ``\titleref`` macro to redefine the style of ``title-reference``
|
||||
roles.
|
||||
* Define ``\menuselection`` and ``\accelerator`` macros to redefine the style of
|
||||
``menuselection`` roles.
|
||||
* Define ``\crossref`` macro to redefine the style of references
|
||||
* #2301: Texts in the classic html theme should be hyphenated.
|
||||
* #2355: Define ``\termref`` macro to redefine the style of ``term`` roles.
|
||||
* Add :confval:`suppress_warnings` to suppress arbitrary warning message
|
||||
(experimental)
|
||||
* #2229: Fix no warning is given for unknown options
|
||||
* #2327: Add ``latex_toplevel_sectioning`` to switch the top level sectioning of
|
||||
LaTeX document.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
* #1913: C++, fix assert bug for enumerators in next-to-global and global scope.
|
||||
* C++, fix parsing of 'signed char' and 'unsigned char' as types.
|
||||
* C++, add missing support for 'friend' functions.
|
||||
* C++, add missing support for virtual base classes (thanks to Rapptz).
|
||||
* C++, add support for final classes.
|
||||
* C++, fix parsing of types prefixed with 'enum'.
|
||||
* #2023: Dutch search support uses Danish stemming info.
|
||||
* C++, add support for user-defined literals.
|
||||
* #1804: Now html output wraps overflowed long-line-text in the sidebar. Thanks
|
||||
to Hassen ben tanfous.
|
||||
* #2183: Fix porterstemmer causes ``make json`` to fail.
|
||||
* #1899: Ensure list is sent to OptParse.
|
||||
* #2164: Fix wrong check for pdftex inside sphinx.sty (for graphicx package
|
||||
option).
|
||||
* #2165, #2218: Remove faulty and non-need conditional from sphinx.sty.
|
||||
* Fix broken LaTeX code is generated if unknown language is given
|
||||
* #1944: Fix rst_prolog breaks file-wide metadata
|
||||
* #2074: make gettext should use canonical relative paths for .pot. Thanks to
|
||||
anatoly techtonik.
|
||||
* #2311: Fix sphinx.ext.inheritance_diagram raises AttributeError
|
||||
* #2251: Line breaks in .rst files are transferred to .pot files in a wrong way.
|
||||
* #794: Fix date formatting in latex output is not localized
|
||||
* Remove ``image/gif`` from supported_image_types of LaTeX writer (#2272)
|
||||
* Fix ValueError is raised if LANGUAGE is empty string
|
||||
* Fix unpack warning is shown when the directives generated from
|
||||
``Sphinx.add_crossref_type`` is used
|
||||
* The default highlight language is now ``default``. This means that source
|
||||
code is highlighted as Python 3 (which is mostly a superset of Python 2) if
|
||||
possible. To get the old behavior back, add ``highlight_language = "python"``
|
||||
to conf.py.
|
||||
* #2329: Refresh environment forcedly if source directory has changed.
|
||||
* #2331: Fix code-blocks are filled by block in dvi; remove ``xcdraw`` option
|
||||
from xcolor package
|
||||
* Fix the confval type checker emits warnings if unicode is given to confvals
|
||||
which expects string value
|
||||
* #2360: Fix numref in LaTeX output is broken
|
||||
* #2361: Fix additional paragraphs inside the "compound" directive are indented
|
||||
* #2364: Fix KeyError 'rootSymbol' on Sphinx upgrade from older version.
|
||||
* #2348: Move amsmath and amssymb to before fontpkg on LaTeX writer.
|
||||
* #2368: Ignore emacs lock files like ``.#foo.rst`` by default.
|
||||
* #2262: literal_block and its caption has been separated by pagebreak in LaTeX
|
||||
output.
|
||||
* #2319: Fix table counter is overridden by code-block's in LaTeX. Thanks to
|
||||
jfbu.
|
||||
* Fix unpack warning if combined with 3rd party domain extensions.
|
||||
* #1153: Fix figures in sidebar causes latex build error.
|
||||
* #2358: Fix user-preamble could not override the tocdepth definition.
|
||||
* #2358: Reduce tocdepth if ``part`` or ``chapter`` is used for top_sectionlevel
|
||||
* #2351: Fix footnote spacing
|
||||
* #2363: Fix ``toctree()`` in templates generates broken links in
|
||||
SingleHTMLBuilder.
|
||||
* #2366: Fix empty hyperref is generated on toctree in HTML builder.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
* #1757: Fix for usage of :confval:`html_last_updated_fmt`. Thanks to Ralf
|
||||
Hemmecke.
|
||||
487
doc/changes/1.5.rst
Normal file
@@ -0,0 +1,487 @@
|
||||
==========
|
||||
Sphinx 1.5
|
||||
==========
|
||||
|
||||
|
||||
Release 1.5.6 (released May 15, 2017)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3614: Sphinx crashes with requests-2.5.0
|
||||
* #3618: autodoc crashes with tupled arguments
|
||||
* #3664: No space after the bullet in items of a latex list produced by Sphinx
|
||||
* #3657: EPUB builder crashes if a document starting with genindex exists
|
||||
* #3588: No compact (p tag) html output in the i18n document build even when
|
||||
:confval:`html_compact_lists` is ``True``.
|
||||
* #3685: AttributeError when using 3rd party domains
|
||||
* #3702: LaTeX writer styles figure legends with a hard-coded ``\small``
|
||||
* #3708: LaTeX writer allows irc scheme
|
||||
* #3717: Stop enforcing that favicon's must be .ico
|
||||
* #3731, #3732: Protect isenumclass predicate against non-class arguments
|
||||
* #3320: Warning about reference target not being found for container types
|
||||
* Misspelled ARCHIVEPREFIX in Makefile for latex build repertory
|
||||
|
||||
Release 1.5.5 (released Apr 03, 2017)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3597: python domain raises UnboundLocalError if invalid name given
|
||||
* #3599: Move to new MathJax CDN
|
||||
|
||||
Release 1.5.4 (released Apr 02, 2017)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #3470: Make genindex support all kinds of letters, not only Latin ones
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3445: setting ``'inputenc'`` key to ``\\usepackage[utf8x]{inputenc}`` leads
|
||||
to failed PDF build
|
||||
* EPUB file has duplicated ``nav.xhtml`` link in ``content.opf``
|
||||
except first time build
|
||||
* #3488: objects.inv has broken when ``release`` or ``version`` contain
|
||||
return code
|
||||
* #2073, #3443, #3490: gettext builder that writes pot files unless the content
|
||||
are same without creation date. Thanks to Yoshiki Shibukawa.
|
||||
* #3487: intersphinx: failed to refer options
|
||||
* #3496: latex longtable's last column may be much wider than its contents
|
||||
* #3507: wrong quotes in latex output for productionlist directive
|
||||
* #3533: Moving from Sphinx 1.3.1 to 1.5.3 breaks LaTeX compilation of links
|
||||
rendered as code
|
||||
* #2665, #2607: Link names in C++ docfields, and make it possible for other
|
||||
domains.
|
||||
* #3542: C++, fix parsing error of non-type template argument with template.
|
||||
* #3065, #3520: python domain fails to recognize nested class
|
||||
* #3575: Problems with pdflatex in a Turkish document built with Sphinx has
|
||||
reappeared (refs #2997, #2397)
|
||||
* #3577: Fix intersphinx debug tool
|
||||
* A LaTeX command such as ``\\large`` inserted in the title items of
|
||||
:confval:`latex_documents` causes failed PDF build (refs #3551, #3567)
|
||||
|
||||
Release 1.5.3 (released Feb 26, 2017)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Support requests-2.0.0 (experimental) (refs: #3367)
|
||||
* (latex) PDF page margin dimensions may be customized (refs: #3387)
|
||||
* ``literalinclude`` directive allows combination of ``:pyobject:`` and
|
||||
``:lines:`` options (refs: #3416)
|
||||
* #3400: make-mode doesn't use subprocess on building docs
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3370: the caption of code-block is not picked up for translation
|
||||
* LaTeX: :confval:`release` is not escaped (refs: #3362)
|
||||
* #3364: sphinx-quickstart prompts overflow on Console with 80 chars width
|
||||
* since 1.5, PDF's TOC and bookmarks lack an entry for general Index
|
||||
(refs: #3383)
|
||||
* #3392: ``'releasename'`` in :confval:`latex_elements` is not working
|
||||
* #3356: Page layout for Japanese ``'manual'`` docclass has a shorter text area
|
||||
* #3394: When ``'pointsize'`` is not ``10pt``, Japanese ``'manual'`` document
|
||||
gets wrong PDF page dimensions
|
||||
* #3399: quickstart: conf.py was not overwritten by template
|
||||
* #3366: option directive does not allow punctuations
|
||||
* #3410: return code in :confval:`release` breaks html search
|
||||
* #3427: autodoc: memory addresses are not stripped on Windows
|
||||
* #3428: xetex build tests fail due to fontspec v2.6 defining ``\strong``
|
||||
* #3349: Result of ``IndexBuilder.load()`` is broken
|
||||
* #3450:   is appeared in EPUB docs
|
||||
* #3418: Search button is misaligned in nature and pyramid theme
|
||||
* #3421: Could not translate a caption of tables
|
||||
* #3552: linkcheck raises UnboundLocalError
|
||||
|
||||
Release 1.5.2 (released Jan 22, 2017)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Dependency requirement updates: requests 2.4.0 or above (refs: #3268, #3310)
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #3241: emit latex warning if buggy titlesec (ref #3210)
|
||||
* #3194: Refer the $MAKE environment variable to determine ``make`` command
|
||||
* Emit warning for nested numbered toctrees (refs: #3142)
|
||||
* #978: ``intersphinx_mapping`` also allows a list as a parameter
|
||||
* #3340: (LaTeX) long lines in :dudir:`parsed-literal` are wrapped like in
|
||||
:rst:dir:`code-block`, inline math and footnotes are fully functional.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3246: xapian search adapter crashes
|
||||
* #3253: In Py2 environment, building another locale with a non-captioned
|
||||
toctree produces ``None`` captions
|
||||
* #185: References to section title including raw node has broken
|
||||
* #3255: In Py3.4 environment, autodoc doesn't support documentation for
|
||||
attributes of Enum class correctly.
|
||||
* #3261: ``latex_use_parts`` makes Sphinx crash
|
||||
* The warning type ``misc.highlighting_failure`` does not work
|
||||
* #3294: ``add_latex_package()`` make crashes non-LaTeX builders
|
||||
* The caption of table are rendered as invalid HTML (refs: #3287)
|
||||
* #3268: Sphinx crashes with requests package from Debian jessie
|
||||
* #3284: Sphinx crashes on parallel build with an extension which raises
|
||||
unserializable exception
|
||||
* #3315: Bibliography crashes on latex build with docclass 'memoir'
|
||||
* #3328: Could not refer rubric implicitly
|
||||
* #3329: emit warnings if po file is invalid and can't read it. Also writing mo
|
||||
* #3337: Ugly rendering of definition list term's classifier
|
||||
* #3335: gettext does not extract field_name of a field in a field_list
|
||||
* #2952: C++, fix refs to operator() functions.
|
||||
* Fix Unicode super- and subscript digits in :rst:dir:`code-block` and
|
||||
parsed-literal LaTeX output (ref #3342)
|
||||
* LaTeX writer: leave ``"`` character inside parsed-literal as is (ref #3341)
|
||||
* #3234: intersphinx failed for encoded inventories
|
||||
* #3158: too much space after captions in PDF output
|
||||
* #3317: An URL in parsed-literal contents gets wrongly rendered in PDF if
|
||||
with hyphen
|
||||
* LaTeX crash if the filename of an image inserted in parsed-literal
|
||||
via a substitution contains an hyphen (ref #3340)
|
||||
* LaTeX rendering of inserted footnotes in parsed-literal is wrong (ref #3340)
|
||||
* Inline math in parsed-literal is not rendered well by LaTeX (ref #3340)
|
||||
* #3308: Parsed-literals don't wrap very long lines with pdf builder (ref #3340)
|
||||
* #3295: Could not import extension sphinx.builders.linkcheck
|
||||
* #3285: autosummary: asterisks are escaped twice
|
||||
* LaTeX, pass dvipdfm option to geometry package for Japanese documents (ref
|
||||
#3363)
|
||||
* Fix parselinenos() could not parse left half open range (cf. "-4")
|
||||
|
||||
|
||||
Release 1.5.1 (released Dec 13, 2016)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #3214: Allow to suppress "unknown mimetype" warnings from epub builder using
|
||||
:confval:`suppress_warnings`.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3195: Can not build in parallel
|
||||
* #3198: AttributeError is raised when toctree has 'self'
|
||||
* #3211: Remove untranslated Sphinx locale catalogs (it was covered by
|
||||
untranslated it_IT)
|
||||
* #3212: HTML Builders crashes with Docutils 0.13
|
||||
* #3207: more latex problems with references inside parsed-literal directive
|
||||
(``\DUrole``)
|
||||
* #3205: sphinx.util.requests crashes with old pyOpenSSL (< 0.14)
|
||||
* #3220: KeyError when having a duplicate citation
|
||||
* #3200: LaTeX: xref inside desc_name not allowed
|
||||
* #3228: ``build_sphinx`` command crashes when missing dependency
|
||||
* #2469: Ignore updates of catalog files for gettext builder. Thanks to
|
||||
Hiroshi Ohkubo.
|
||||
* #3183: Randomized jump box order in generated index page.
|
||||
|
||||
Release 1.5 (released Dec 5, 2016)
|
||||
==================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
1.5a1
|
||||
|
||||
* latex, package fancybox is not any longer a dependency of sphinx.sty
|
||||
* Use ``'locales'`` as a default value of ``locale_dirs``
|
||||
* latex, package ifthen is not any longer a dependency of sphinx.sty
|
||||
* latex, style file does not modify fancyvrb's Verbatim (also available as
|
||||
OriginalVerbatim) but uses sphinxVerbatim for name of custom wrapper.
|
||||
* latex, package newfloat is not used (and not included) anymore (ref #2660;
|
||||
it was used since 1.3.4 and shipped with Sphinx since 1.4).
|
||||
* latex, literal blocks in tables do not use OriginalVerbatim but
|
||||
sphinxVerbatimintable which handles captions and wraps lines (ref #2704).
|
||||
* latex, replace ``pt`` by TeX equivalent ``bp`` if found in ``width`` or
|
||||
``height`` attribute of an image.
|
||||
* latex, if ``width`` or ``height`` attribute of an image is given with no unit,
|
||||
use ``px`` rather than ignore it.
|
||||
* latex: Separate stylesheets of pygments to independent .sty file
|
||||
* #2454: The filename of sourcelink is now changed. The value of
|
||||
``html_sourcelink_suffix`` will be appended to the original filename (like
|
||||
``index.rst.txt``).
|
||||
* ``sphinx.util.copy_static_entry()`` is now deprecated.
|
||||
Use ``sphinx.util.fileutil.copy_asset()`` instead.
|
||||
* ``sphinx.util.osutil.filecopy()`` skips copying if the file has not been
|
||||
changed (ref: #2510, #2753)
|
||||
* Internet Explorer 6-8, Opera 12.1x or Safari 5.1+ support is dropped
|
||||
because jQuery version is updated from 1.11.0 to 3.1.0 (ref: #2634, #2773)
|
||||
* QtHelpBuilder doesn't generate search page (ref: #2352)
|
||||
* QtHelpBuilder uses ``nonav`` theme instead of default one
|
||||
to improve readability.
|
||||
* latex: To provide good default settings to Japanese documents, Sphinx uses
|
||||
``jreport`` and ``jsbook`` as docclass if :confval:`language` is
|
||||
``ja``.
|
||||
* ``sphinx-quickstart`` now allows a project version is empty
|
||||
* Fix :download: role on epub/qthelp builder. They ignore the role because they
|
||||
don't support it.
|
||||
* ``sphinx.ext.viewcode`` doesn't work on epub building by default.
|
||||
``viewcode_enable_epub`` option
|
||||
* ``sphinx.ext.viewcode`` disabled on singlehtml builder.
|
||||
* Use make-mode of ``sphinx-quickstart`` by default. To disable this, use
|
||||
``-M`` option
|
||||
* Fix ``genindex.html``, Sphinx's document template, link address to itself to
|
||||
satisfy xhtml standard.
|
||||
* Use epub3 builder by default. And the old epub builder is renamed to epub2.
|
||||
* Fix ``epub`` and ``epub3`` builders that contained links to ``genindex`` even
|
||||
if ``epub_use_index = False``.
|
||||
* ``html_translator_class`` is now deprecated.
|
||||
Use :meth:`~sphinx.application.Sphinx.set_translator` API instead.
|
||||
* Drop python 2.6 and 3.3 support
|
||||
* Drop epub3 builder's ``epub3_page_progression_direction`` option (use
|
||||
``epub3_writing_mode``).
|
||||
* #2877: Rename ``latex_elements['footer']`` to
|
||||
``latex_elements['atendofbody']``
|
||||
|
||||
1.5a2
|
||||
|
||||
* #2983: Rename ``epub3_description`` and ``epub3_contributor`` to
|
||||
``epub_description`` and ``epub_contributor``.
|
||||
* Remove themes/basic/defindex.html; no longer used
|
||||
* Sphinx does not ship anymore (but still uses) LaTeX style file ``fncychap``
|
||||
* #2435: Slim down quickstarted conf.py
|
||||
* The ``sphinx.sty`` latex package does not load itself "hyperref", as this
|
||||
is done later in the preamble of the latex output via ``'hyperref'`` key.
|
||||
* Sphinx does not ship anymore a custom modified LaTeX style file ``tabulary``.
|
||||
The non-modified package is used.
|
||||
* #3057: By default, footnote marks in latex PDF output are not preceded by a
|
||||
space anymore, ``\sphinxBeforeFootnote`` allows user customization if needed.
|
||||
* LaTeX target requires that option ``hyperfootnotes`` of package ``hyperref``
|
||||
be left unchanged to its default (i.e. ``true``) (refs: #3022)
|
||||
|
||||
1.5 final
|
||||
|
||||
* #2986: ``themes/basic/defindex.html`` is now deprecated
|
||||
* Emit warnings that will be deprecated in Sphinx 1.6 by default.
|
||||
Users can change the behavior by setting the environment variable
|
||||
PYTHONWARNINGS. Please refer :ref:`when-deprecation-warnings-are-displayed`.
|
||||
* #2454: new JavaScript variable ``SOURCELINK_SUFFIX`` is added
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
These features are removed in Sphinx 1.6:
|
||||
|
||||
* LDML format support in i18n feature
|
||||
* ``sphinx.addnodes.termsep``
|
||||
* Some functions and classes in ``sphinx.util.pycompat``:
|
||||
``zip_longest``, ``product``, ``all``, ``any``, ``next``, ``open``,
|
||||
``class_types``, ``base_exception``, ``relpath``, ``StringIO``, ``BytesIO``.
|
||||
Please use the standard library version instead;
|
||||
|
||||
If any deprecation warning like ``RemovedInSphinxXXXWarning`` are displayed,
|
||||
please refer :ref:`when-deprecation-warnings-are-displayed`.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
1.5a1
|
||||
|
||||
* #2951: Add ``--implicit-namespaces`` PEP-0420 support to apidoc.
|
||||
* Add ``:caption:`` option for sphinx.ext.inheritance_diagram.
|
||||
* #2471: Add config variable for default doctest flags.
|
||||
* Convert linkcheck builder to requests for better encoding handling
|
||||
* #2463, #2516: Add keywords of "meta" directive to search index
|
||||
* ``:maxdepth:`` option of toctree affects ``secnumdepth`` (ref: #2547)
|
||||
* #2575: Now ``sphinx.ext.graphviz`` allows ``:align:`` option
|
||||
* Show warnings if unknown key is specified to ``latex_elements``
|
||||
* Show warnings if no domains match with ``primary_domain`` (ref: #2001)
|
||||
* C++, show warnings when the kind of role is misleading for the kind
|
||||
of target it refers to (e.g., using the ``class`` role for a function).
|
||||
* latex, writer abstracts more of text styling into customizable macros, e.g.
|
||||
the ``visit_emphasis`` will output ``\sphinxstyleemphasis`` rather than
|
||||
``\emph`` (which may be in use elsewhere or in an added LaTeX package). See
|
||||
list at end of ``sphinx.sty`` (ref: #2686)
|
||||
* latex, public names for environments and parameters used by note, warning,
|
||||
and other admonition types, allowing full customizability from the
|
||||
``'preamble'`` key or an input file (ref: feature request #2674, #2685)
|
||||
* latex, better computes column widths of some tables (as a result, there will
|
||||
be slight changes as tables now correctly fill the line width; ref: #2708)
|
||||
* latex, sphinxVerbatim environment is more easily customizable (ref: #2704).
|
||||
In addition to already existing VerbatimColor and VerbatimBorderColor:
|
||||
|
||||
- two lengths ``\sphinxverbatimsep`` and ``\sphinxverbatimborder``,
|
||||
- booleans ``\ifsphinxverbatimwithframe`` and ``\ifsphinxverbatimwrapslines``.
|
||||
|
||||
* latex, captions for literal blocks inside tables are handled, and long code
|
||||
lines wrapped to fit table cell (ref: #2704)
|
||||
* #2597: Show warning messages as darkred
|
||||
* latex, allow image dimensions using px unit (default is 96px=1in)
|
||||
* Show warnings if invalid dimension units found
|
||||
* #2650: Add ``--pdb`` option to setup.py command
|
||||
* latex, make the use of ``\small`` for code listings customizable (ref #2721)
|
||||
* #2663: Add ``--warning-is-error`` option to setup.py command
|
||||
* Show warnings if deprecated latex options are used
|
||||
* Add sphinx.config.ENUM to check the config values is in candidates
|
||||
* math: Add hyperlink marker to each equations in HTML output
|
||||
* Add new theme ``nonav`` that doesn't include any navigation links.
|
||||
This is for any help generator like qthelp.
|
||||
* #2680: ``sphinx.ext.todo`` now emits warnings if ``todo_emit_warnings`` enabled.
|
||||
Also, it emits an additional event named ``todo-defined`` to handle the TODO
|
||||
entries in 3rd party extensions.
|
||||
* Python domain signature parser now uses the xref mixin for 'exceptions',
|
||||
allowing exception classes to be autolinked.
|
||||
* #2513: Add ``latex_engine`` to switch the LaTeX engine by conf.py
|
||||
* #2682: C++, basic support for attributes (C++11 style and GNU style).
|
||||
The new configuration variables 'cpp_id_attributes' and 'cpp_paren_attributes'
|
||||
can be used to introduce custom attributes.
|
||||
* #1958: C++, add configuration variable 'cpp_index_common_prefix' for removing
|
||||
prefixes from the index text of C++ objects.
|
||||
* C++, added concept directive. Thanks to mickk-on-cpp.
|
||||
* C++, added support for template introduction syntax. Thanks to mickk-on-cpp.
|
||||
* #2725: latex builder: allow to use user-defined template file (experimental)
|
||||
* apidoc now avoids invalidating cached files by not writing to files whose
|
||||
content doesn't change. This can lead to significant performance wins if
|
||||
apidoc is run frequently.
|
||||
* #2851: ``sphinx.ext.math`` emits missing-reference event if equation not found
|
||||
* #1210: ``eqref`` role now supports cross reference
|
||||
* #2892: Added ``-a`` (``--append-syspath``) option to ``sphinx-apidoc``
|
||||
* #1604: epub3 builder: Obey font-related CSS when viewing in iBooks.
|
||||
* #646: ``option`` directive support '.' character as a part of options
|
||||
* Add document about kindlegen and fix document structure for it.
|
||||
* #2474: Add ``intersphinx_timeout`` option to ``sphinx.ext.intersphinx``
|
||||
* #2926: EPUB3 builder supports vertical mode (``epub3_writing_mode`` option)
|
||||
* #2695: ``build_sphinx`` subcommand for setuptools handles exceptions as same
|
||||
as ``sphinx-build`` does
|
||||
* #326: ``numref`` role can also refer sections
|
||||
* #2916: ``numref`` role can also refer caption as an its linktext
|
||||
|
||||
1.5a2
|
||||
|
||||
* #3008: ``linkcheck`` builder ignores self-signed certificate URL
|
||||
* #3020: new ``'geometry'`` key to ``latex_elements`` whose default uses
|
||||
LaTeX style file ``geometry.sty`` to set page layout
|
||||
* #2843: Add :start-at: and :end-at: options to literalinclude directive
|
||||
* #2527: Add ``:reversed:`` option to toctree directive
|
||||
* Add ``-t`` and ``-d`` option to ``sphinx-quickstart`` to support templating
|
||||
generated Sphinx project.
|
||||
* #3028: Add ``{path}`` and ``{basename}`` to the format of
|
||||
``figure_language_filename``
|
||||
* new ``'hyperref'`` key in the ``latex_elements`` dictionary (ref #3030)
|
||||
* #3022: Allow code-blocks in footnotes for LaTeX PDF output
|
||||
|
||||
1.5b1
|
||||
|
||||
* #2513: A better default settings for XeLaTeX
|
||||
* #3096: ``'maxlistdepth'`` key to work around LaTeX list limitations
|
||||
* #3060: autodoc supports documentation for attributes of Enum class. Now
|
||||
autodoc render just the value of Enum attributes instead of Enum attribute
|
||||
representation.
|
||||
* Add ``--extensions`` to ``sphinx-quickstart`` to support enable arbitrary
|
||||
extensions from command line (ref: #2904)
|
||||
* #3104, #3122: ``'sphinxsetup'`` for key=value styling of Sphinx LaTeX
|
||||
* #3071: Autodoc: Allow mocked module decorators to pass-through functions
|
||||
unchanged
|
||||
* #2495: linkcheck: Allow skipping anchor checking using
|
||||
:confval:`linkcheck_anchors_ignore`
|
||||
* #3083: let Unicode no-break space act like LaTeX ``~`` (fixed #3019)
|
||||
* #3116: allow word wrap in PDF output for inline literals (ref #3110)
|
||||
* #930: sphinx-apidoc allow wildcards for excluding paths. Thanks to Nick
|
||||
Coghlan.
|
||||
* #3121: add ``inlineliteralwraps`` option to control if inline literal
|
||||
word-wraps in latex
|
||||
|
||||
1.5 final
|
||||
|
||||
* #3095: Add :confval:`tls_verify` and :confval:`tls_cacerts` to support
|
||||
self-signed HTTPS servers in linkcheck and intersphinx
|
||||
* #2215: make.bat generated by sphinx-quickstart can be called from another dir.
|
||||
Thanks to Timotheus Kampik.
|
||||
* #3185: Add new warning type ``misc.highlighting_failure``
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
1.5a1
|
||||
|
||||
* #2707: (latex) the column width is badly computed for tabular
|
||||
* #2799: Sphinx installs roles and directives automatically on importing sphinx
|
||||
module. Now Sphinx installs them on running application.
|
||||
* ``sphinx.ext.autodoc`` crashes if target code imports * from mock modules
|
||||
by ``autodoc_mock_imports``.
|
||||
* #1953: ``Sphinx.add_node`` does not add handlers the translator installed by
|
||||
``html_translator_class``
|
||||
* #1797: text builder inserts blank line on top
|
||||
* #2894: quickstart main() doesn't use argv argument
|
||||
* #2874: gettext builder could not extract all text under the ``only``
|
||||
directives
|
||||
* #2485: autosummary crashes with multiple source_suffix values
|
||||
* #1734: Could not translate the caption of toctree directive
|
||||
* Could not translate the content of meta directive (ref: #1734)
|
||||
* #2550: external links are opened in help viewer
|
||||
* #2687: Running Sphinx multiple times produces 'already registered' warnings
|
||||
|
||||
1.5a2
|
||||
|
||||
* #2810: Problems with pdflatex in an Italian document
|
||||
* Use ``latex_elements.papersize`` to specify papersize of LaTeX in Makefile
|
||||
* #2988: linkcheck: retry with GET request if denied HEAD request
|
||||
* #2990: linkcheck raises "Can't convert 'bytes' object to str implicitly" error
|
||||
if linkcheck_anchors enabled
|
||||
* #3004: Invalid link types "top" and "up" are used
|
||||
* #3009: Bad rendering of parsed-literals in LaTeX since Sphinx 1.4.4
|
||||
* #3000: ``option`` directive generates invalid HTML anchors
|
||||
* #2984: Invalid HTML has been generated if ``html_split_index`` enabled
|
||||
* #2986: themes/basic/defindex.html should be changed for html5 friendly
|
||||
* #2987: Invalid HTML has been generated if multiple IDs are assigned to a list
|
||||
* #2891: HTML search does not provide all the results
|
||||
* #1986: Title in PDF Output
|
||||
* #147: Problem with latex chapter style
|
||||
* #3018: LaTeX problem with page layout dimensions and chapter titles
|
||||
* Fix an issue with ``\pysigline`` in LaTeX style file (ref #3023)
|
||||
* #3038: ``sphinx.ext.math*`` raises TypeError if labels are duplicated
|
||||
* #3031: incompatibility with LaTeX package ``tocloft``
|
||||
* #3003: literal blocks in footnotes are not supported by Latex
|
||||
* #3047: spacing before footnote in pdf output is not coherent and allows breaks
|
||||
* #3045: HTML search index creator should ignore "raw" content if now html
|
||||
* #3039: English stemmer returns wrong word if the word is capitalized
|
||||
* Fix make-mode Makefile template (ref #3056, #2936)
|
||||
|
||||
1.5b1
|
||||
|
||||
* #2432: Fix unwanted * between varargs and keyword only args. Thanks to Alex
|
||||
Grönholm.
|
||||
* #3062: Failed to build PDF using 1.5a2 (undefined ``\hypersetup`` for
|
||||
Japanese documents since PR#3030)
|
||||
* Better rendering of multiline signatures in html.
|
||||
* #777: LaTeX output "too deeply nested" (ref #3096)
|
||||
* Let LaTeX image inclusion obey ``scale`` before textwidth fit (ref #2865,
|
||||
#3059)
|
||||
* #3019: LaTeX fails on description of C function with arguments (ref #3083)
|
||||
* fix latex inline literals where ``< > -`` gobbled a space
|
||||
|
||||
1.5 final
|
||||
|
||||
* #3069: Even if ``'babel'`` key is set to empty string, LaTeX output contains
|
||||
one ``\addto\captions...``
|
||||
* #3123: user ``'babel'`` key setting is not obeyed anymore
|
||||
* #3155: Fix JavaScript for ``html_sourcelink_suffix`` fails with IE and Opera
|
||||
* #3085: keep current directory after breaking build documentation. Thanks to
|
||||
Timotheus Kampik.
|
||||
* #3181: pLaTeX crashes with a section contains endash
|
||||
* #3180: latex: add stretch/shrink between successive singleline or
|
||||
multipleline cpp signatures (ref #3072)
|
||||
* #3128: globing images does not support .svgz file
|
||||
* #3015: fix a broken test on Windows.
|
||||
* #1843: Fix documentation of descriptor classes that have a custom metaclass.
|
||||
Thanks to Erik Bray.
|
||||
* #3190: util.split_docinfo fails to parse multi-line field bodies
|
||||
* #3024, #3037: In Python3, application.Sphinx._log crushed when the log message
|
||||
cannot be encoded into console encoding.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
* To simplify, Sphinx uses external mock package even if ``unittest.mock`` exists.
|
||||
483
doc/changes/1.6.rst
Normal file
@@ -0,0 +1,483 @@
|
||||
==========
|
||||
Sphinx 1.6
|
||||
==========
|
||||
|
||||
|
||||
Release 1.6.7 (released Feb 04, 2018)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #1922: html search: Upper characters problem in French
|
||||
* #4412: Updated jQuery version from 3.1.0 to 3.2.1
|
||||
* #4438: math: math with labels with whitespace cause html error
|
||||
* #2437: make full reference for classes, aliased with "alias of"
|
||||
* #4434: pure numbers as link targets produce warning
|
||||
* #4477: Build fails after building specific files
|
||||
* #4449: apidoc: include "empty" packages that contain modules
|
||||
* #3917: citation labels are transformed to ellipsis
|
||||
* #4501: graphviz: epub3 validation error caused if graph is not clickable
|
||||
* #4514: graphviz: workaround for wrong map ID which graphviz generates
|
||||
* #4525: autosectionlabel does not support parallel build
|
||||
* #3953: Do not raise warning when there is a working intersphinx inventory
|
||||
* #4487: math: ValueError is raised on parallel build. Thanks to jschueller.
|
||||
* #2372: autosummary: invalid signatures are shown for type annotated functions
|
||||
* #3942: html: table is not aligned to center even if ``:align: center``
|
||||
|
||||
Release 1.6.6 (released Jan 08, 2018)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #4181: autodoc: Sort dictionary keys when possible
|
||||
* ``VerbatimHighlightColor`` is a new
|
||||
:ref:`LaTeX 'sphinxsetup' <latexsphinxsetup>` key (refs: #4285)
|
||||
* Easier customizability of LaTeX macros involved in rendering of code-blocks
|
||||
* Show traceback if conf.py raises an exception (refs: #4369)
|
||||
* Add :confval:`smartquotes` to disable smart quotes through ``conf.py``
|
||||
(refs: #3967)
|
||||
* Add :confval:`smartquotes_action` and :confval:`smartquotes_excludes`
|
||||
(refs: #4142, #4357)
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #4334: sphinx-apidoc: Don't generate references to non-existing files in TOC
|
||||
* #4206: latex: reST label between paragraphs loses paragraph break
|
||||
* #4231: html: Apply fixFirefoxAnchorBug only under Firefox
|
||||
* #4221: napoleon depends on autodoc, but users need to load it manually
|
||||
* #2298: automodule fails to document a class attribute
|
||||
* #4099: C++: properly link class reference to class from inside constructor
|
||||
* #4267: PDF build broken by Unicode U+2116 NUMERO SIGN character
|
||||
* #4249: PDF output: Pygments error highlighting increases line spacing in
|
||||
code blocks
|
||||
* #1238: Support ``:emphasize-lines:`` in PDF output
|
||||
* #4279: Sphinx crashes with pickling error when run with multiple processes and
|
||||
remote image
|
||||
* #1421: Respect the quiet flag in sphinx-quickstart
|
||||
* #4281: Race conditions when creating output directory
|
||||
* #4315: For PDF 'howto' documents, ``latex_toplevel_sectioning='part'``
|
||||
generates ``\chapter`` commands
|
||||
* #4214: Two todolist directives break Sphinx 1.6.5
|
||||
* Fix links to external option docs with intersphinx (refs: #3769)
|
||||
* #4091: Private members not documented without :undoc-members:
|
||||
|
||||
Release 1.6.5 (released Oct 23, 2017)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #4107: Make searchtools.js compatible with pre-Sphinx1.5 templates
|
||||
* #4112: Don't override the smart_quotes setting if it was already set
|
||||
* #4125: Display reference texts of original and translated passages on
|
||||
i18n warning message
|
||||
* #4147: Include the exception when logging PO/MO file read/write
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #4085: Failed PDF build from image in parsed-literal using ``:align:`` option
|
||||
* #4100: Remove debug print from autodoc extension
|
||||
* #3987: Changing theme from ``alabaster`` causes HTML build to fail
|
||||
* #4096: C++, don't crash when using the wrong role type. Thanks to mitya57.
|
||||
* #4070, #4111: crashes when the warning message contains format strings (again)
|
||||
* #4108: Search word highlighting breaks SVG images
|
||||
* #3692: Unable to build HTML if writing .buildinfo failed
|
||||
* #4152: HTML writer crashes if a field list is placed on top of the document
|
||||
* #4063: Sphinx crashes when labeling directive ``.. todolist::``
|
||||
* #4134: [doc] :file:`docutils.conf` is not documented explicitly
|
||||
* #4169: Chinese language doesn't trigger Chinese search automatically
|
||||
* #1020: ext.todo todolist not linking to the page in pdflatex
|
||||
* #3965: New quickstart generates wrong SPHINXBUILD in Makefile
|
||||
* #3739: ``:module:`` option is ignored at content of pyobjects
|
||||
* #4149: Documentation: Help choosing :confval:`latex_engine`
|
||||
* #4090: [doc] :confval:`latex_additional_files` with extra LaTeX macros should
|
||||
not use ``.tex`` extension
|
||||
* Failed to convert reST parser error to warning (refs: #4132)
|
||||
|
||||
Release 1.6.4 (released Sep 26, 2017)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #3926: Add ``autodoc_warningiserror`` to suppress the behavior of ``-W``
|
||||
option during importing target modules on autodoc
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3924: docname lost after dynamically parsing RST in extension
|
||||
* #3946: Typo in sphinx.sty (this was a bug with no effect in default context)
|
||||
* :pep: and :rfc: does not supports ``default-role`` directive (refs: #3960)
|
||||
* #3960: default_role = 'guilabel' not functioning
|
||||
* Missing ``texinputs_win/Makefile`` to be used in latexpdf builder on windows.
|
||||
* #4026: nature: Fix macOS Safari scrollbar color
|
||||
* #3877: Fix for C++ multiline signatures.
|
||||
* #4006: Fix crash on parallel build
|
||||
* #3969: private instance attributes causes AttributeError
|
||||
* #4041: C++, remove extra name linking in function pointers.
|
||||
* #4038: C, add missing documentation of ``member`` role.
|
||||
* #4044: An empty multicolumn cell causes extra row height in PDF output
|
||||
* #4049: Fix typo in output of sphinx-build -h
|
||||
* #4062: hashlib.sha1() must take bytes, not unicode on Python 3
|
||||
* Avoid indent after index entries in latex (refs: #4066)
|
||||
* #4070: crashes when the warning message contains format strings
|
||||
* #4067: Return non-zero exit status when make subprocess fails
|
||||
* #4055: graphviz: the :align: option does not work for SVG output
|
||||
* #4055: graphviz: the :align: center option does not work for latex output
|
||||
* #4051: ``warn()`` function for HTML theme outputs '``None``' string
|
||||
|
||||
Release 1.6.3 (released Jul 02, 2017)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* latex: hint that code-block continues on next page (refs: #3764, #3792)
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3821: Failed to import sphinx.util.compat with Docutils 0.14rc1
|
||||
* #3829: sphinx-quickstart template is incomplete regarding use of ``alabaster``
|
||||
* #3772: 'str object' has no attribute 'filename'
|
||||
* Emit wrong warnings if citation label includes hyphens (refs: #3565)
|
||||
* #3858: Some warnings are not colored when using --color option
|
||||
* #3775: Remove unwanted whitespace in default template
|
||||
* #3835: sphinx.ext.imgmath fails to convert SVG images if project directory
|
||||
name contains spaces
|
||||
* #3850: Fix color handling in make mode's help command
|
||||
* #3865: use of self.env.warn in Sphinx extension fails
|
||||
* #3824: production lists apply smart quotes transform since Sphinx 1.6.1
|
||||
* latex: fix ``\sphinxbfcode`` swallows initial space of argument
|
||||
* #3878: Quotes in auto-documented class attributes should be straight quotes
|
||||
in PDF output
|
||||
* #3881: LaTeX figure floated to next page sometimes leaves extra vertical
|
||||
whitespace
|
||||
* #3885: duplicated footnotes raises IndexError
|
||||
* #3873: Failure of deprecation warning mechanism of
|
||||
``sphinx.util.compat.Directive``
|
||||
* #3874: Bogus warnings for "citation not referenced" for cross-file citations
|
||||
* #3860: Don't download images when builders not supported images
|
||||
* #3860: Remote image URIs without filename break builders not supported remote
|
||||
images
|
||||
* #3833: command line messages are translated unintentionally with ``language``
|
||||
setting.
|
||||
* #3840: make checking ``epub_uid`` strict
|
||||
* #3851, #3706: Fix about box drawing characters for PDF output
|
||||
* #3900: autosummary could not find methods
|
||||
* #3902: Emit error if ``latex_documents`` contains non-unicode string in py2
|
||||
|
||||
Release 1.6.2 (released May 28, 2017)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #3789: Do not require typing module for python>=3.5
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3754: HTML builder crashes if HTML theme appends own stylesheets
|
||||
* #3756: epub: Entity 'mdash' not defined
|
||||
* #3758: Sphinx crashed if logs are emitted in conf.py
|
||||
* #3755: incorrectly warns about dedent with literalinclude
|
||||
* #3742: `RTD <https://readthedocs.org/>`_ PDF builds of Sphinx own docs are
|
||||
missing an index entry in the bookmarks and table of contents. This is
|
||||
`rtfd/readthedocs.org#2857
|
||||
<https://github.com/rtfd/readthedocs.org/issues/2857>`_ issue, a workaround
|
||||
is obtained using some extra LaTeX code in Sphinx's own :file:`conf.py`
|
||||
* #3770: Build fails when a "code-block" has the option emphasize-lines and the
|
||||
number indicated is higher than the number of lines
|
||||
* #3774: Incremental HTML building broken when using citations
|
||||
* #3763: got epubcheck validations error if epub_cover is set
|
||||
* #3779: 'ImportError' in sphinx.ext.autodoc due to broken 'sys.meta_path'.
|
||||
Thanks to Tatiana Tereshchenko.
|
||||
* #3796: env.resolve_references() crashes when non-document node given
|
||||
* #3803: Sphinx crashes with invalid PO files
|
||||
* #3791: PDF "continued on next page" for long tables isn't internationalized
|
||||
* #3788: smartquotes emits warnings for unsupported languages
|
||||
* #3807: latex Makefile for ``make latexpdf`` is only for unixen
|
||||
* #3781: double hyphens in option directive are compiled as endashes
|
||||
* #3817: latex builder raises AttributeError
|
||||
|
||||
Release 1.6.1 (released May 16, 2017)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
1.6b1
|
||||
|
||||
* (updated) latex output is tested with Ubuntu trusty's texlive packages (Feb.
|
||||
2014) and earlier tex installations may not be fully compliant, particularly
|
||||
regarding Unicode engines xelatex and lualatex
|
||||
* (added) latexmk is required for ``make latexpdf`` on GNU/Linux and Mac OS X
|
||||
(refs: #3082)
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
1.6b1
|
||||
|
||||
* #1061, #2336, #3235: Now generation of autosummary doesn't contain imported
|
||||
members by default. Thanks to Luc Saffre.
|
||||
* LaTeX ``\includegraphics`` command isn't overloaded: only
|
||||
``\sphinxincludegraphics`` has the custom code to fit image to available width
|
||||
if oversized.
|
||||
* The subclasses of ``sphinx.domains.Index`` should override ``generate()``
|
||||
method. The default implementation raises NotImplementedError
|
||||
* LaTeX positioned long tables horizontally centered, and short ones
|
||||
flushed left (no text flow around table.) The position now defaults to center
|
||||
in both cases, and it will obey Docutils 0.13 ``:align:`` option (refs #3415,
|
||||
#3377)
|
||||
* option directive also allows all punctuations for the option name (refs:
|
||||
#3366)
|
||||
* #3413: if :rst:dir:`literalinclude`'s ``:start-after:`` is used, make
|
||||
``:lines:`` relative (refs #3412)
|
||||
* ``literalinclude`` directive does not allow the combination of ``:diff:``
|
||||
option and other options (refs: #3416)
|
||||
* LuaLaTeX engine uses ``fontspec`` like XeLaTeX. It is advised ``latex_engine
|
||||
= 'lualatex'`` be used only on up-to-date TeX installs (refs #3070, #3466)
|
||||
* :confval:`!latex_keep_old_macro_names` default value has been changed from
|
||||
``True`` to ``False``. This means that some LaTeX macros for styling are
|
||||
by default defined only with ``\sphinx..`` prefixed names. (refs: #3429)
|
||||
* Footer "Continued on next page" of LaTeX longtable's now not framed (refs:
|
||||
#3497)
|
||||
* #3529: The arguments of ``BuildEnvironment.__init__`` is changed
|
||||
* #3082: Use latexmk for pdf (and dvi) targets (Unix-like platforms only)
|
||||
* #3558: Emit warnings if footnotes and citations are not referenced. The
|
||||
warnings can be suppressed by ``suppress_warnings``.
|
||||
* latex made available (non documented) colour macros from a file distributed
|
||||
with pdftex engine for Plain TeX. This is removed in order to provide better
|
||||
support for multiple TeX engines. Only interface from ``color`` or
|
||||
``xcolor`` packages should be used by extensions of Sphinx latex writer.
|
||||
(refs #3550)
|
||||
* ``Builder.env`` is not filled at instantiation
|
||||
* #3594: LaTeX: single raw directive has been considered as block level element
|
||||
* #3639: If ``html_experimental_html5_writer`` is available, epub builder use it
|
||||
by default.
|
||||
* ``Sphinx.add_source_parser()`` raises an error if duplicated
|
||||
|
||||
1.6b2
|
||||
|
||||
* #3345: Replace the custom smartypants code with Docutils' smart_quotes.
|
||||
Thanks to Dmitry Shachnev, and to Günter Milde at Docutils.
|
||||
|
||||
1.6b3
|
||||
|
||||
* LaTeX package ``eqparbox`` is not used and not loaded by Sphinx anymore
|
||||
* LaTeX package ``multirow`` is not used and not loaded by Sphinx anymore
|
||||
* Add line numbers to citation data in std domain
|
||||
|
||||
1.6 final
|
||||
|
||||
* LaTeX package ``threeparttable`` is not used and not loaded by Sphinx
|
||||
anymore (refs #3686, #3532, #3377)
|
||||
|
||||
Features removed
|
||||
----------------
|
||||
|
||||
* Configuration variables
|
||||
|
||||
- epub3_contributor
|
||||
- epub3_description
|
||||
- epub3_page_progression_direction
|
||||
- html_translator_class
|
||||
- html_use_modindex
|
||||
- latex_font_size
|
||||
- latex_paper_size
|
||||
- latex_preamble
|
||||
- latex_use_modindex
|
||||
- latex_use_parts
|
||||
|
||||
* ``termsep`` node
|
||||
* defindex.html template
|
||||
* LDML format support in ``today``, ``today_fmt`` and ``html_last_updated_fmt``
|
||||
* ``:inline:`` option for the directives of sphinx.ext.graphviz extension
|
||||
* sphinx.ext.pngmath extension
|
||||
* ``sphinx.util.compat.make_admonition()``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
1.6b1
|
||||
|
||||
* #3136: Add ``:name:`` option to the directives in ``sphinx.ext.graphviz``
|
||||
* #2336: Add ``imported_members`` option to ``sphinx-autogen`` command to
|
||||
document imported members.
|
||||
* C++, add ``:tparam-line-spec:`` option to templated declarations.
|
||||
When specified, each template parameter will be rendered on a separate line.
|
||||
* #3359: Allow sphinx.js in a user locale dir to override sphinx.js from Sphinx
|
||||
* #3303: Add ``:pyversion:`` option to the doctest directive.
|
||||
* #3378: (latex) support for ``:widths:`` option of table directives
|
||||
(refs: #3379, #3381)
|
||||
* #3402: Allow to suppress "download file not readable" warnings using
|
||||
:confval:`suppress_warnings`.
|
||||
* #3377: latex: Add support for Docutils 0.13 ``:align:`` option for tables
|
||||
(but does not implement text flow around table).
|
||||
* latex: footnotes from inside tables are hyperlinked (except from captions or
|
||||
headers) (refs: #3422)
|
||||
* Emit warning if over dedent has detected on ``literalinclude`` directive
|
||||
(refs: #3416)
|
||||
* Use for LuaLaTeX same default settings as for XeLaTeX (i.e. ``fontspec`` and
|
||||
``polyglossia``). (refs: #3070, #3466)
|
||||
* Make ``'extraclassoptions'`` key of ``latex_elements`` public (refs #3480)
|
||||
* #3463: Add warning messages for required EPUB3 metadata. Add default value to
|
||||
``epub_description`` to avoid warning like other settings.
|
||||
* #3476: setuptools: Support multiple builders
|
||||
* latex: merged cells in LaTeX tables allow code-blocks, lists, blockquotes...
|
||||
as do normal cells (refs: #3435)
|
||||
* HTML builder uses experimental HTML5 writer if
|
||||
``html_experimental_html5_writer`` is ``True`` and Docutils 0.13 or later is
|
||||
installed.
|
||||
* LaTeX macros to customize space before and after tables in PDF output (refs
|
||||
#3504)
|
||||
* #3348: Show decorators in literalinclude and viewcode directives
|
||||
* #3108: Show warning if :start-at: and other literalinclude options does not
|
||||
match to the text
|
||||
* #3609: Allow to suppress "duplicate citation" warnings using
|
||||
``suppress_warnings``
|
||||
* #2803: Discovery of builders by entry point
|
||||
* #1764, #1676: Allow setting 'rel' and 'title' attributes for stylesheets
|
||||
* #3589: Support remote images on non-HTML builders
|
||||
* #3589: Support images in Data URI on non-HTML builders
|
||||
* #2961: improve :confval:`autodoc_mock_imports`. Now the config value only
|
||||
requires to declare the top-level modules that should be mocked.
|
||||
Thanks to Robin Jarry.
|
||||
* #3449: On py3, autodoc use inspect.signature for more accurate signature
|
||||
calculation. Thanks to Nathaniel J. Smith.
|
||||
* #3641: Epub theme supports HTML structures that are generated by HTML5 writer.
|
||||
* #3644: autodoc uses inspect instead of checking types. Thanks to
|
||||
Jeroen Demeyer.
|
||||
* Add a new extension; ``sphinx.ext.imgconverter``. It converts images in the
|
||||
document to appropriate format for builders
|
||||
* latex: Use templates to render tables (refs #3389, 2a37b0e)
|
||||
|
||||
1.6b2
|
||||
|
||||
* ``LATEXMKOPTS`` variable for the Makefile in ``$BUILDDIR/latex`` to pass
|
||||
options to ``latexmk`` when executing ``make latexpdf`` (refs #3695, #3720)
|
||||
* Add a new event ``env-check-consistency`` to check consistency to extensions
|
||||
* Add ``Domain.check_consistency()`` to check consistency
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
1.6b1
|
||||
|
||||
* ``literalinclude`` directive expands tabs after dedent-ing (refs: #3416)
|
||||
* #1574: Paragraphs in table cell doesn't work in Latex output
|
||||
* #3288: Table with merged headers not wrapping text
|
||||
* #3491: Inconsistent vertical space around table and longtable in PDF
|
||||
* #3506: Depart functions for all admonitions in HTML writer now properly pass
|
||||
``node`` to ``depart_admonition``.
|
||||
* #2693: Sphinx latex style file wrongly inhibits colours for section headings
|
||||
for latex+dvi(ps,pdf,pdfmx)
|
||||
* C++, properly look up ``any`` references.
|
||||
* #3624: sphinx.ext.intersphinx couldn't load inventories compressed with gzip
|
||||
* #3551: PDF information dictionary is lacking author and title data
|
||||
* #3351: intersphinx does not refers context like ``py:module``, ``py:class``
|
||||
and so on.
|
||||
* Fail to load template file if the parent template is archived
|
||||
|
||||
1.6b2
|
||||
|
||||
* #3661: sphinx-build crashes on parallel build
|
||||
* #3669: gettext builder fails with "ValueError: substring not found"
|
||||
* #3660: Sphinx always depends on sphinxcontrib-websupport and its dependencies
|
||||
* #3472: smart quotes getting wrong in latex (at least with list of strings via
|
||||
autoattribute) (refs: #3345, #3666)
|
||||
|
||||
1.6b3
|
||||
|
||||
* #3588: No compact (p tag) html output in the i18n document build even when
|
||||
:confval:`html_compact_lists` is ``True``.
|
||||
* The ``make latexpdf`` from 1.6b1 (for GNU/Linux and Mac OS, using
|
||||
``latexmk``) aborted earlier in case of LaTeX errors than was the case with
|
||||
1.5 series, due to hard-coded usage of ``--halt-on-error`` option (refs #3695)
|
||||
* #3683: sphinx.websupport module is not provided by default
|
||||
* #3683: Failed to build document if builder.css_file.insert() is called
|
||||
* #3714: viewcode extension not taking ``highlight_code='none'`` in account
|
||||
* #3698: Moving :doc: to std domain broke backwards compatibility
|
||||
* #3633: misdetect unreferenced citations
|
||||
|
||||
1.6 final
|
||||
|
||||
* LaTeX tables do not allow multiple paragraphs in a header cell
|
||||
* LATEXOPTS is not passed over correctly to pdflatex since 1.6b3
|
||||
* #3532: Figure or literal block captions in cells of short tables cause havoc
|
||||
in PDF output
|
||||
* Fix: in PDF captions of tables are rendered differently whether table is of
|
||||
longtable class or not (refs #3686)
|
||||
* #3725: Todo looks different from note in LaTeX output
|
||||
* #3479: stub-columns have no effect in LaTeX output
|
||||
* #3738: Nonsensical code in theming.py
|
||||
* #3746: PDF builds fail with latexmk 4.48 or earlier due to undefined
|
||||
options ``-pdfxe`` and ``-pdflua``
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
1.6b1
|
||||
|
||||
* ``sphinx.util.compat.Directive`` class is now deprecated. Please use instead
|
||||
``docutils.parsers.rst.Directive``
|
||||
* ``sphinx.util.compat.docutils_version`` is now deprecated
|
||||
* #2367: ``Sphinx.warn()``, ``Sphinx.info()`` and other logging methods are now
|
||||
deprecated. Please use ``sphinx.util.logging`` (:ref:`logging-api`) instead.
|
||||
* #3318: ``notice`` is now deprecated as LaTeX environment name and will be
|
||||
removed at Sphinx 1.7. Extension authors please use ``sphinxadmonition``
|
||||
instead (as Sphinx does since 1.5.)
|
||||
* ``Sphinx.status_iterator()`` and ``Sphinx.old_status_iterator()`` is now
|
||||
deprecated. Please use ``sphinx.util:status_iterator()`` instead.
|
||||
* ``Sphinx._directive_helper()`` is deprecated. Please use
|
||||
``sphinx.util.docutils.directive_helper()`` instead.
|
||||
* ``BuildEnvironment.set_warnfunc()`` is now deprecated
|
||||
* Following methods of ``BuildEnvironment`` is now deprecated.
|
||||
|
||||
- ``BuildEnvironment.note_toctree()``
|
||||
- ``BuildEnvironment.get_toc_for()``
|
||||
- ``BuildEnvironment.get_toctree_for()``
|
||||
- ``BuildEnvironment.create_index()``
|
||||
|
||||
Please use ``sphinx.environment.adapters`` modules instead.
|
||||
* latex package ``footnote`` is not loaded anymore by its bundled replacement
|
||||
``footnotehyper-sphinx``. The redefined macros keep the same names as in the
|
||||
original package.
|
||||
* #3429: deprecate config setting :confval:`!latex_keep_old_macro_names`. It will
|
||||
be removed at 1.7, and already its default value has changed from ``True`` to
|
||||
``False``.
|
||||
* #3221: epub2 builder is deprecated
|
||||
* #3254: ``sphinx.websupport`` is now separated into independent package;
|
||||
``sphinxcontrib-websupport``. ``sphinx.websupport`` will be removed in
|
||||
Sphinx 2.0.
|
||||
* #3628: ``sphinx_themes`` entry_point is deprecated. Please use
|
||||
``sphinx.html_themes`` instead.
|
||||
|
||||
1.6b2
|
||||
|
||||
* #3662: ``builder.css_files`` is deprecated. Please use ``add_stylesheet()``
|
||||
API instead.
|
||||
|
||||
1.6 final
|
||||
|
||||
* LaTeX ``\sphinxstylethead`` is deprecated at 1.6 and will be removed at 1.7.
|
||||
Please move customization into new macro ``\sphinxstyletheadfamily``.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
1.6 final
|
||||
|
||||
* #3458: Add ``sphinx.testing`` (experimental)
|
||||
|
||||
Release 1.6 (unreleased)
|
||||
========================
|
||||
|
||||
* not released (because of package script error)
|
||||
452
doc/changes/1.7.rst
Normal file
@@ -0,0 +1,452 @@
|
||||
==========
|
||||
Sphinx 1.7
|
||||
==========
|
||||
|
||||
|
||||
Release 1.7.9 (released Sep 05, 2018)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #5359: Make generated texinfo files reproducible by sorting the anchors
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #5361: crashed on incremental build if document uses include directive
|
||||
|
||||
Release 1.7.8 (released Aug 29, 2018)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* The type of ``env.included`` has been changed to dict of set
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #5320: intersphinx: crashed if invalid url given
|
||||
* #5326: manpage: crashed when invalid docname is specified as ``man_pages``
|
||||
* #5322: autodoc: ``Any`` typehint causes formatting error
|
||||
* #5327: "document isn't included in any toctree" warning on rebuild with
|
||||
generated files
|
||||
* #5335: quickstart: escape sequence has been displayed with MacPorts' python
|
||||
|
||||
Release 1.7.7 (released Aug 19, 2018)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #5198: document not in toctree warning when including files only for parallel
|
||||
builds
|
||||
* LaTeX: reduce "Token not allowed in a PDF string" hyperref warnings in latex
|
||||
console output (refs: #5236)
|
||||
* LaTeX: suppress "remreset Warning: The remreset package is obsolete" in latex
|
||||
console output with recent LaTeX (refs: #5237)
|
||||
* #5234: PDF output: usage of PAPER environment variable is broken since Sphinx
|
||||
1.5
|
||||
* LaTeX: fix the :confval:`latex_engine` documentation regarding Latin Modern
|
||||
font with XeLaTeX/LuaLateX (refs: #5251)
|
||||
* #5280: autodoc: Fix wrong type annotations for complex typing
|
||||
* autodoc: Optional types are wrongly rendered
|
||||
* #5291: autodoc crashed by ForwardRef types
|
||||
* #5211: autodoc: No docs generated for functools.partial functions
|
||||
* #5306: autodoc: ``getargspec()`` raises NameError for invalid typehints
|
||||
* #5298: imgmath: math_number_all causes equations to have two numbers in html
|
||||
* #5294: sphinx-quickstart blank prompts in PowerShell
|
||||
|
||||
Release 1.7.6 (released Jul 17, 2018)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #5037: LaTeX ``\sphinxupquote{}`` breaks in Russian
|
||||
* sphinx.testing uses deprecated pytest API; ``Node.get_marker(name)``
|
||||
* #5016: crashed when recommonmark.AutoStrictify is enabled
|
||||
* #5022: latex: crashed with Docutils package provided by Debian/Ubuntu
|
||||
* #5009: latex: a label for table is vanished if table does not have a caption
|
||||
* #5048: crashed with numbered toctree
|
||||
* #2410: C, render empty argument lists for macros.
|
||||
* C++, fix lookup of full template specializations with no template arguments.
|
||||
* #4667: C++, fix assertion on missing references in global scope when using
|
||||
intersphinx. Thanks to Alan M. Carroll.
|
||||
* #5019: autodoc: crashed by Form Feed Character
|
||||
* #5032: autodoc: loses the first staticmethod parameter for old styled classes
|
||||
* #5036: quickstart: Typing Ctrl-U clears the whole of line
|
||||
* #5066: html: "relations" sidebar is not shown by default
|
||||
* #5091: latex: curly braces in index entries are not handled correctly
|
||||
* #5070: epub: Wrong internal href fragment links
|
||||
* #5104: apidoc: Interface of ``sphinx.apidoc:main()`` has changed
|
||||
* #4272: PDF builds of French projects have issues with XeTeX
|
||||
* #5076: napoleon raises RuntimeError with python 3.7
|
||||
* #5125: sphinx-build: Interface of ``sphinx:main()`` has changed
|
||||
* sphinx-build: ``sphinx.cmd.build.main()`` refers ``sys.argv`` instead of given
|
||||
argument
|
||||
* #5146: autosummary: warning is emitted when the first line of docstring ends
|
||||
with literal notation
|
||||
* autosummary: warnings of autosummary indicates wrong location (refs: #5146)
|
||||
* #5143: autodoc: crashed on inspecting dict like object which does not support
|
||||
sorting
|
||||
* #5139: autodoc: Enum argument missing if it shares value with another
|
||||
* #4946: py domain: rtype field could not handle "``None``" as a type
|
||||
* #5176: LaTeX: indexing of terms containing ``@``, ``!``, or ``"`` fails
|
||||
* #5161: html: crashes if copying static files are failed
|
||||
* #5167: autodoc: Fix formatting type annotations for tuples with more than two
|
||||
arguments
|
||||
* #3329: i18n: crashed by auto-symbol footnote references
|
||||
* #5158: autosummary: module summary has been broken when it starts with heading
|
||||
|
||||
Release 1.7.5 (released May 29, 2018)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #4924: html search: Upper characters problem in any other languages
|
||||
* #4932: apidoc: some subpackage is ignored if sibling subpackage contains a
|
||||
module starting with underscore
|
||||
* #4863, #4938, #4939: i18n doesn't handle correctly node.title as used for
|
||||
contents, topic, admonition, table and section.
|
||||
* #4913: i18n: literal blocks in bullet list are not translated
|
||||
* #4962: C++, raised TypeError on duplicate declaration.
|
||||
* #4825: C++, properly parse expr roles and give better error messages when
|
||||
(escaped) line breaks are present.
|
||||
* C++, properly use ``desc_addname`` nodes for prefixes of names.
|
||||
* C++, parse pack expansions in function calls.
|
||||
* #4915, #4916: links on search page are broken when using dirhtml builder
|
||||
* #4969: autodoc: constructor method should not have return annotation
|
||||
* latex: deeply nested enumerated list which is beginning with non-1 causes
|
||||
LaTeX engine crashed
|
||||
* #4978: latex: shorthandoff is not set up for Brazil locale
|
||||
* #4928: i18n: Ignore dot-directories like .git/ in LC_MESSAGES/
|
||||
* #4946: py domain: type field could not handle "``None``" as a type
|
||||
* #4979: latex: Incorrect escaping of curly braces in index entries
|
||||
* #4956: autodoc: Failed to extract document from a subclass of the class on
|
||||
mocked module
|
||||
* #4973: latex: glossary directive adds whitespace to each item
|
||||
* #4980: latex: Explicit labels on code blocks are duplicated
|
||||
* #4919: node.asdom() crashes if toctree has :numbered: option
|
||||
* #4914: autodoc: Parsing error when using dataclasses without default values
|
||||
* #4931: autodoc: crashed when handler for autodoc-skip-member raises an error
|
||||
* #4931: autodoc: crashed when subclass of mocked class are processed by
|
||||
napoleon module
|
||||
* #5007: sphinx-build crashes when error log contains a "%" character
|
||||
|
||||
Release 1.7.4 (released Apr 25, 2018)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #4885, #4887: domains: Crashed with duplicated objects
|
||||
* #4889: latex: sphinx.writers.latex causes recursive import
|
||||
|
||||
Release 1.7.3 (released Apr 23, 2018)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #4769: autodoc loses the first staticmethod parameter
|
||||
* #4790: autosummary: too wide two column tables in PDF builds
|
||||
* #4795: Latex customization via ``_templates/longtable.tex_t`` is broken
|
||||
* #4789: imgconverter: confused by convert.exe of Windows
|
||||
* #4783: On windows, Sphinx crashed when drives of srcdir and outdir are
|
||||
different
|
||||
* #4812: autodoc ignores type annotated variables
|
||||
* #4817: wrong URLs on warning messages
|
||||
* #4784: latex: :confval:`latex_show_urls` assigns incorrect footnote numbers if
|
||||
hyperlinks exists inside substitutions
|
||||
* #4837: latex with class memoir Error: Font command ``\sf`` is not supported
|
||||
* #4803: latex: too slow in proportion to number of auto numbered footnotes
|
||||
* #4838: htmlhelp: The entries in .hhp file is not ordered
|
||||
* toctree directive tries to glob for URL having query_string
|
||||
* #4871: html search: Upper characters problem in German
|
||||
* #4717: latex: Compilation for German docs failed with LuaLaTeX and XeLaTeX
|
||||
* #4459: duplicated labels detector does not work well in parallel build
|
||||
* #4878: Crashed with extension which returns invalid metadata
|
||||
|
||||
Release 1.7.2 (released Mar 21, 2018)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
* #4520: apidoc: folders with an empty __init__.py are no longer excluded from
|
||||
TOC
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #4669: sphinx.build_main and sphinx.make_main throw NameError
|
||||
* #4685: autosummary emits meaningless warnings
|
||||
* autodoc: crashed when invalid options given
|
||||
* pydomain: always strip parenthesis if empty (refs: #1042)
|
||||
* #4689: autosummary: unexpectedly strips docstrings containing "i.e."
|
||||
* #4701: viewcode: Misplaced ``<div>`` in viewcode html output
|
||||
* #4444: Don't require numfig to use :numref: on sections
|
||||
* #4727: Option clash for package textcomp
|
||||
* #4725: Sphinx does not work with python 3.5.0 and 3.5.1
|
||||
* #4716: Generation PDF file with TexLive on Windows, file not found error
|
||||
* #4574: vertical space before equation in latex
|
||||
* #4720: message when an image is mismatched for builder is not clear
|
||||
* #4655, #4684: Incomplete localization strings in Polish and Chinese
|
||||
* #2286: Sphinx crashes when error is happens in rendering HTML pages
|
||||
* #4688: Error to download remote images having long URL
|
||||
* #4754: sphinx/pycode/__init__.py raises AttributeError
|
||||
* #1435: qthelp builder should htmlescape keywords
|
||||
* epub: Fix docTitle elements of toc.ncx is not escaped
|
||||
* #4520: apidoc: Subpackage not in toc (introduced in 1.6.6) now fixed
|
||||
* #4767: html: search highlighting breaks mathjax equations
|
||||
|
||||
Release 1.7.1 (released Feb 23, 2018)
|
||||
=====================================
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* #4623: ``sphinx.build_main()`` is deprecated.
|
||||
* autosummary: The interface of ``sphinx.ext.autosummary.get_documenter()`` has
|
||||
been changed (Since 1.7.0)
|
||||
* #4664: ``sphinx.ext.intersphinx.debug()`` is deprecated.
|
||||
|
||||
For more details, see :ref:`deprecation APIs list <dev-deprecated-apis>`.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #4608: epub: Invalid meta tag is generated
|
||||
* #4260: autodoc: keyword only argument separator is not disappeared if it is
|
||||
appeared at top of the argument list
|
||||
* #4622: epub: :confval:`epub_scheme` does not effect to content.opf
|
||||
* #4627: graphviz: Fit graphviz images to page
|
||||
* #4617: quickstart: PROJECT_DIR argument is required
|
||||
* #4623: sphinx.build_main no longer exists in 1.7.0
|
||||
* #4615: The argument of ``sphinx.build`` has been changed in 1.7.0
|
||||
* autosummary: The interface of ``sphinx.ext.autosummary.get_documenter()`` has
|
||||
been changed
|
||||
* #4630: Have order on msgids in sphinx.pot deterministic
|
||||
* #4563: autosummary: Incorrect end of line punctuation detection
|
||||
* #4577: Enumerated sublists with explicit start with wrong number
|
||||
* #4641: A external link in TOC cannot contain "?" with ``:glob:`` option
|
||||
* C++, add missing parsing of explicit casts and typeid in expression parsing.
|
||||
* C++, add missing parsing of ``this`` in expression parsing.
|
||||
* #4655: Fix incomplete localization strings in Polish
|
||||
* #4653: Fix error reporting for parameterless ImportErrors
|
||||
* #4664: Reading objects.inv fails again
|
||||
* #4662: ``any`` refs with ``term`` targets crash when an ambiguity is
|
||||
encountered
|
||||
|
||||
Release 1.7.0 (released Feb 12, 2018)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
1.7.0b1
|
||||
|
||||
* Add ``packaging`` package
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
1.7.0b1
|
||||
|
||||
* #3668: The arguments has changed of main functions for each command
|
||||
* #3893: Unknown html_theme_options throw warnings instead of errors
|
||||
* #3927: Python parameter/variable types should match classes, not all objects
|
||||
* #3962: sphinx-apidoc now recognizes given directory as an implicit namespace
|
||||
package when ``--implicit-namespaces`` option given, not subdirectories of
|
||||
given directory.
|
||||
* #3929: apidoc: Move sphinx.apidoc to sphinx.ext.apidoc
|
||||
* #4226: apidoc: Generate new style makefile (make-mode)
|
||||
* #4274: sphinx-build returns 2 as an exit code on argument error
|
||||
* #4389: output directory will be created after loading extensions
|
||||
* autodoc does not generate warnings messages to the generated document even if
|
||||
:confval:`keep_warnings` is ``True``. They are only emitted to stderr.
|
||||
* shebang line is removed from generated conf.py
|
||||
* #2557: autodoc: :confval:`autodoc_mock_imports` only mocks specified modules
|
||||
with their descendants. It does not mock their ancestors. If you want to
|
||||
mock them, please specify the name of ancestors explicitly.
|
||||
* #3620: html theme: move DOCUMENTATION_OPTIONS to independent JavaScript file
|
||||
(refs: #4295)
|
||||
* #4246: Limit width of text body for all themes. Configurable via theme
|
||||
options ``body_min_width`` and ``body_max_width``.
|
||||
* #4771: apidoc: The ``exclude_patterns`` arguments are ignored if they are
|
||||
placed just after command line options
|
||||
|
||||
1.7.0b2
|
||||
|
||||
* #4467: html theme: Rename ``csss`` block to ``css``
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
1.7.0b1
|
||||
|
||||
* using a string value for :confval:`html_sidebars` is deprecated and only list
|
||||
values will be accepted at 2.0.
|
||||
* ``format_annotation()`` and ``formatargspec()`` is deprecated. Please use
|
||||
``sphinx.util.inspect.Signature`` instead.
|
||||
* ``sphinx.ext.autodoc.AutodocReporter`` is replaced by ``sphinx.util.docutils.
|
||||
switch_source_input()`` and now deprecated. It will be removed in Sphinx 2.0.
|
||||
* ``sphinx.ext.autodoc.add_documenter()`` and ``AutoDirective._register`` is now
|
||||
deprecated. Please use ``app.add_autodocumenter()`` instead.
|
||||
* ``AutoDirective._special_attrgetters`` is now deprecated. Please use
|
||||
``app.add_autodoc_attrgetter()`` instead.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
1.7.0b1
|
||||
|
||||
* C++, handle ``decltype(auto)``.
|
||||
* #2406: C++, add proper parsing of expressions, including linking of
|
||||
identifiers.
|
||||
* C++, add a ``cpp:expr`` role for inserting inline C++ expressions or types.
|
||||
* C++, support explicit member instantiations with shorthand ``template`` prefix
|
||||
* C++, make function parameters linkable, like template params.
|
||||
* #3638: Allow to change a label of reference to equation using
|
||||
``math_eqref_format``
|
||||
* Now :confval:`suppress_warnings` accepts following configurations:
|
||||
|
||||
- ``ref.python`` (ref: #3866)
|
||||
|
||||
* #3872: Add latex key to configure literal blocks caption position in PDF
|
||||
output (refs #3792, #1723)
|
||||
* In case of missing docstring try to retrieve doc from base classes (ref:
|
||||
#3140)
|
||||
* #4023: Clarify error message when any role has more than one target.
|
||||
* #3973: epub: allow to override build date
|
||||
* #3972: epub: Sort manifest entries by filename
|
||||
* #4052: viewcode: Sort before highlighting module code
|
||||
* #1448: qthelp: Add new config value; :confval:`qthelp_namespace`
|
||||
* #4140: html themes: Make body tag inheritable
|
||||
* #4168: improve zh search with jieba
|
||||
* HTML themes can set up default sidebars through ``theme.conf``
|
||||
* #3160: html: Use ``<kdb>`` to represent ``:kbd:`` role
|
||||
* #4212: autosummary: catch all exceptions when importing modules
|
||||
* #4166: Add :confval:`math_numfig` for equation numbering by section (refs:
|
||||
#3991, #4080). Thanks to Oliver Jahn.
|
||||
* #4311: Let LaTeX obey :confval:`numfig_secnum_depth` for figures, tables, and
|
||||
code-blocks
|
||||
* #947: autodoc now supports ignore-module-all to ignore a module's ``__all__``
|
||||
* #4332: Let LaTeX obey :confval:`math_numfig` for equation numbering
|
||||
* #4093: sphinx-build creates empty directories for unknown targets/builders
|
||||
* Add ``top-classes`` option for the ``sphinx.ext.inheritance_diagram``
|
||||
extension to limit the scope of inheritance graphs.
|
||||
* #4183: doctest: ``:pyversion:`` option also follows PEP-440 specification
|
||||
* #4235: html: Add :confval:`manpages_url` to make manpage roles to hyperlinks
|
||||
* #3570: autodoc: Do not display 'typing.' module for type hints
|
||||
* #4354: sphinx-build now emits finish message. Builders can modify it through
|
||||
``Builder.epilog`` attribute
|
||||
* #4245: html themes: Add ``language`` to javascript vars list
|
||||
* #4079: html: Add ``notranslate`` class to each code-blocks, literals and maths
|
||||
to let Google Translate know they are not translatable
|
||||
* #4137: doctest: doctest block is always highlighted as python console (pycon)
|
||||
* #4137: doctest: testcode block is always highlighted as python
|
||||
* #3998: text: Assign section numbers by default. You can control it using
|
||||
:confval:`text_add_secnumbers` and :confval:`text_secnumber_suffix`
|
||||
|
||||
1.7.0b2
|
||||
|
||||
* #4271: sphinx-build supports an option called ``-j auto`` to adjust numbers of
|
||||
processes automatically.
|
||||
* Napoleon: added option to specify custom section tags.
|
||||
|
||||
|
||||
Features removed
|
||||
----------------
|
||||
|
||||
1.7.0b1
|
||||
|
||||
* Configuration variables
|
||||
|
||||
- :confval:`!html_use_smartypants`
|
||||
- :confval:`!latex_keep_old_macro_names`
|
||||
- latex_elements['footer']
|
||||
|
||||
* utility methods of ``sphinx.application.Sphinx`` class
|
||||
|
||||
- buildername (property)
|
||||
- _display_chunk()
|
||||
- old_status_iterator()
|
||||
- status_iterator()
|
||||
- _directive_helper()
|
||||
|
||||
* utility methods of ``sphinx.environment.BuildEnvironment`` class
|
||||
|
||||
- currmodule (property)
|
||||
- currclass (property)
|
||||
|
||||
* epub2 builder
|
||||
* prefix and colorfunc parameter for warn()
|
||||
* ``sphinx.util.compat`` module
|
||||
* ``sphinx.util.nodes.process_only_nodes()``
|
||||
* LaTeX environment ``notice``, use ``sphinxadmonition`` instead
|
||||
* LaTeX ``\sphinxstylethead``, use ``\sphinxstyletheadfamily``
|
||||
* C++, support of function concepts. Thanks to mickk-on-cpp.
|
||||
* Not used and previously not documented LaTeX macros ``\shortversion``
|
||||
and ``\setshortversion``
|
||||
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
1.7.0b1
|
||||
|
||||
* #3882: Update the order of files for HTMLHelp and QTHelp
|
||||
* #3962: sphinx-apidoc does not recognize implicit namespace packages correctly
|
||||
* #4094: C++, allow empty template argument lists.
|
||||
* C++, also hyperlink types in the name of declarations with qualified names.
|
||||
* C++, do not add index entries for declarations inside concepts.
|
||||
* C++, support the template disambiguator for dependent names.
|
||||
* #4314: For PDF 'howto' documents, numbering of code-blocks differs from the
|
||||
one of figures and tables
|
||||
* #4330: PDF 'howto' documents have an incoherent default LaTeX tocdepth counter
|
||||
setting
|
||||
* #4198: autosummary emits multiple 'autodoc-process-docstring' event. Thanks
|
||||
to Joel Nothman.
|
||||
* #4081: Warnings and errors colored the same when building
|
||||
* latex: Do not display 'Release' label if :confval:`release` is not set
|
||||
|
||||
1.7.0b2
|
||||
|
||||
* #4415: autodoc classifies inherited classmethods as regular methods
|
||||
* #4415: autodoc classifies inherited staticmethods as regular methods
|
||||
* #4472: DOCUMENTATION_OPTIONS is not defined
|
||||
* #4491: autodoc: prefer _MockImporter over other importers in sys.meta_path
|
||||
* #4490: autodoc: type annotation is broken with python 3.7.0a4+
|
||||
* utils package is no longer installed
|
||||
* #3952: apidoc: module header is too escaped
|
||||
* #4275: Formats accepted by sphinx.util.i18n.format_date are limited
|
||||
* #4493: recommonmark raises AttributeError if AutoStructify enabled
|
||||
* #4209: intersphinx: In link title, "v" should be optional if target has no
|
||||
version
|
||||
* #4230: slowdown in writing pages with Sphinx 1.6
|
||||
* #4522: epub: document is not rebuilt even if config changed
|
||||
|
||||
1.7.0b3
|
||||
|
||||
* #4019: inheritance_diagram AttributeError stopping make process
|
||||
* #4531: autosummary: methods are not treated as attributes
|
||||
* #4538: autodoc: ``sphinx.ext.autodoc.Options`` has been moved
|
||||
* #4539: autodoc emits warnings for partialmethods
|
||||
* #4223: doctest: failing tests reported in wrong file, at wrong line
|
||||
* i18n: message catalogs are not compiled if specific filenames are given for
|
||||
``sphinx-build`` as arguments (refs: #4560)
|
||||
* #4027: sphinx.ext.autosectionlabel now expects labels to be the same as they
|
||||
are in the raw source; no smart quotes, nothig fancy.
|
||||
* #4581: apidoc: Excluded modules still included
|
||||
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
1.7.0b1
|
||||
|
||||
* Add support for Docutils 0.14
|
||||
* Add tests for the ``sphinx.ext.inheritance_diagram`` extension.
|
||||
467
doc/changes/1.8.rst
Normal file
@@ -0,0 +1,467 @@
|
||||
==========
|
||||
Sphinx 1.8
|
||||
==========
|
||||
|
||||
|
||||
Release 1.8.6 (released Nov 18, 2021)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #9807: Restrict Docutils to 0.17.x or older
|
||||
|
||||
Release 1.8.5 (released Mar 10, 2019)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* LaTeX: Remove extraneous space after author names on PDF title page (refs:
|
||||
#6004)
|
||||
* #6026: LaTeX: A cross reference to definition list does not work
|
||||
* #6046: LaTeX: ``TypeError`` is raised when invalid latex_elements given
|
||||
* #6067: LaTeX: images having a target are concatenated to next line
|
||||
* #6067: LaTeX: images having a target are not aligned even if specified
|
||||
* #6149: LaTeX: ``:index:`` role in titles causes ``Use of \@icentercr doesn't
|
||||
match its definition`` error on latexpdf build
|
||||
* #6019: imgconverter: Including multipage PDF fails
|
||||
* #6047: autodoc: ``autofunction`` emits a warning for method objects
|
||||
* #6028: graphviz: Ensure the graphviz filenames are reproducible
|
||||
* #6068: doctest: ``skipif`` option may remove the code block from documentation
|
||||
* #6136: ``:name:`` option for ``math`` directive causes a crash
|
||||
* #6139: intersphinx: ValueError on failure reporting
|
||||
* #6135: changes: Fix UnboundLocalError when any module found
|
||||
* #3859: manpage: code-block captions are not displayed correctly
|
||||
|
||||
Release 1.8.4 (released Feb 03, 2019)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #3707: latex: no bold checkmark (✔) available.
|
||||
* #5605: with the documentation language set to Chinese, English words could not
|
||||
be searched.
|
||||
* #5889: LaTeX: user ``numfig_format`` is stripped of spaces and may cause
|
||||
build failure
|
||||
* C++, fix hyperlinks for declarations involving east cv-qualifiers.
|
||||
* #5755: C++, fix duplicate declaration error on function templates with
|
||||
constraints in the return type.
|
||||
* C++, parse unary right fold expressions and binary fold expressions.
|
||||
* pycode could not handle egg files on windows
|
||||
* #5928: KeyError: 'DOCUTILSCONFIG' when running build
|
||||
* #5936: LaTeX: PDF build broken by inclusion of image taller than page height
|
||||
in an admonition
|
||||
* #5231: "make html" does not read and build "po" files in "locale" dir
|
||||
* #5954: ``:scale:`` image option may break PDF build if image in an admonition
|
||||
* #5966: mathjax has not been loaded on incremental build
|
||||
* #5960: LaTeX: modified PDF layout since September 2018 TeXLive update of
|
||||
:file:`parskip.sty`
|
||||
* #5948: LaTeX: duplicated labels are generated for sections
|
||||
* #5958: versionadded directive causes crash with Python 3.5.0
|
||||
* #5995: autodoc: autodoc_mock_imports conflict with metaclass on Python 3.7
|
||||
* #5871: texinfo: a section title ``.`` is not allowed
|
||||
|
||||
Release 1.8.3 (released Dec 26, 2018)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* LaTeX: it is possible to insert custom material to appear on back of title
|
||||
page, see discussion of ``'maketitle'`` key of :confval:`latex_elements`
|
||||
(``'manual'`` docclass only)
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #5725: mathjax: Use CDN URL for "latest" version by default
|
||||
* #5460: html search does not work with some 3rd party themes
|
||||
* #5520: LaTeX, caption package incompatibility since Sphinx 1.6
|
||||
* #5614: autodoc: incremental build is broken when builtin modules are imported
|
||||
* #5627: qthelp: index.html missing in QtHelp
|
||||
* #5659: linkcheck: crashes for a hyperlink containing multibyte character
|
||||
* #5754: DOC: Fix some mistakes in :doc:`/latex`
|
||||
* #5810: LaTeX: sphinxVerbatim requires explicit "hllines" set-up since 1.6.6
|
||||
(refs: #1238)
|
||||
* #5636: C++, fix parsing of floating point literals.
|
||||
* #5496 (again): C++, fix assertion in partial builds with duplicates.
|
||||
* #5724: quickstart: sphinx-quickstart fails when $LC_ALL is empty
|
||||
* #1956: Default conf.py is not PEP8-compliant
|
||||
* #5849: LaTeX: document class ``\maketitle`` is overwritten with no
|
||||
possibility to use original meaning in place of Sphinx custom one
|
||||
* #5834: apidoc: wrong help for ``--tocfile``
|
||||
* #5800: todo: crashed if todo is defined in TextElement
|
||||
* #5846: htmlhelp: convert hex escaping to decimal escaping in .hhc/.hhk files
|
||||
* htmlhelp: broken .hhk file generated when title contains a double quote
|
||||
|
||||
Release 1.8.2 (released Nov 11, 2018)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #5497: Do not include MathJax.js and jsmath.js unless it is really needed
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #5471: Show appropriate deprecation warnings
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #5490: latex: enumerated list causes a crash with recommonmark
|
||||
* #5492: sphinx-build fails to build docs w/ Python < 3.5.2
|
||||
* #3704: latex: wrong ``\label`` positioning for figures with a legend
|
||||
* #5496: C++, fix assertion when a symbol is declared more than twice.
|
||||
* #5493: gettext: crashed with broken template
|
||||
* #5495: csv-table directive with file option in included file is broken (refs:
|
||||
#4821)
|
||||
* #5498: autodoc: unable to find type hints for a ``functools.partial``
|
||||
* #5480: autodoc: unable to find type hints for unresolvable Forward references
|
||||
* #5419: incompatible math_block node has been generated
|
||||
* #5548: Fix ensuredir() in case of pre-existing file
|
||||
* #5549: graphviz Correctly deal with non-existing static dir
|
||||
* #3002: i18n: multiple footnote_references referring same footnote cause
|
||||
duplicated node_ids
|
||||
* #5563: latex: footnote_references generated by extension causes a LaTeX
|
||||
builder crash
|
||||
* #5561: make all-pdf fails with old xindy version
|
||||
* #5557: quickstart: --no-batchfile isn't honored
|
||||
* #3080: texinfo: multiline rubrics are broken
|
||||
* #3080: texinfo: multiline citations are broken
|
||||
|
||||
Release 1.8.1 (released Sep 22, 2018)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* LaTeX ``\pagestyle`` commands have been moved to the LaTeX template. No
|
||||
changes in PDF, except possibly if ``\sphinxtableofcontents``, which
|
||||
contained them, had been customized in :file:`conf.py`. (refs: #5455)
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #5418: Incorrect default path for sphinx-build -d/doctrees files
|
||||
* #5421: autodoc emits deprecation warning for :confval:`!autodoc_default_flags`
|
||||
* #5422: lambda object causes PicklingError on storing environment
|
||||
* #5417: Sphinx fails to build with syntax error in Python 2.7.5
|
||||
* #4911: add latexpdf to make.bat for non make-mode
|
||||
* #5436: Autodoc does not work with enum subclasses with properties/methods
|
||||
* #5437: autodoc: crashed on modules importing eggs
|
||||
* #5433: latex: ImportError: cannot import name 'DEFAULT_SETTINGS'
|
||||
* #5431: autodoc: ``autofunction`` emits a warning for callable objects
|
||||
* #5457: Fix TypeError in error message when override is prohibited
|
||||
* #5453: PDF builds of 'howto' documents have no page numbers
|
||||
* #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0
|
||||
* #5454: latex: Index has disappeared from PDF for Japanese documents
|
||||
* #5432: py domain: ``:type:`` field can't process ``:term:`` references
|
||||
* #5426: py domain: TypeError has been raised for class attribute
|
||||
|
||||
Release 1.8.0 (released Sep 13, 2018)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
1.8.0b1
|
||||
|
||||
* LaTeX: :confval:`latex_use_xindy`, if ``True`` (default for
|
||||
``xelatex/lualatex``), instructs ``make latexpdf`` to use :program:`xindy`
|
||||
for general index. Make sure your LaTeX distribution includes it.
|
||||
(refs: #5134)
|
||||
* LaTeX: ``latexmk`` is required for ``make latexpdf`` on Windows
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
1.8.0b2
|
||||
|
||||
* #5282: html theme: refer ``pygments_style`` settings of HTML themes
|
||||
preferentially
|
||||
* The URL of download files are changed
|
||||
* #5127: quickstart: ``Makefile`` and ``make.bat`` are not overwritten if exists
|
||||
|
||||
1.8.0b1
|
||||
|
||||
* #5156: the :py:mod:`sphinx.ext.graphviz` extension runs ``dot`` in the
|
||||
directory of the document being built instead of in the root directory of
|
||||
the documentation.
|
||||
* #4460: extensions which stores any data to environment should return the
|
||||
version of its env data structure as metadata. In detail, please see
|
||||
:ref:`ext-metadata`.
|
||||
* Sphinx expects source parser modules to have supported file formats as
|
||||
``Parser.supported`` attribute
|
||||
* The default value of :confval:`epub_author` and :confval:`epub_publisher` are
|
||||
changed from ``'unknown'`` to the value of :confval:`author`. This is same as
|
||||
a ``conf.py`` file sphinx-build generates.
|
||||
* The ``gettext_compact`` attribute is removed from ``document.settings``
|
||||
object. Please use ``config.gettext_compact`` instead.
|
||||
* The processing order on reading phase is changed. smart_quotes, sphinx
|
||||
domains, :event:`doctree-read` event and versioning doctrees are invoked
|
||||
earlier than so far. For more details, please read a description of
|
||||
:py:meth:`.Sphinx.add_transform()`
|
||||
* #4827: All ``substitution_definition`` nodes are removed from doctree on
|
||||
reading phase
|
||||
* ``docutils.conf`` in ``$HOME`` or ``/etc`` directories are ignored. Only
|
||||
``docutils.conf`` from confdir is obeyed.
|
||||
* #789: ``:samp:`` role supports to escape curly braces with backslash
|
||||
* #4811: The files under :confval:`html_static_path` are excluded from source
|
||||
files.
|
||||
* latex: Use ``\sphinxcite`` for citation references instead ``\hyperref``
|
||||
* The config value :confval:`!viewcode_import` is renamed to
|
||||
:confval:`viewcode_follow_imported_members` (refs: #4035)
|
||||
* #1857: latex: :confval:`latex_show_pagerefs` does not add pagerefs for
|
||||
citations
|
||||
* #4648: latex: Now "rubric" elements are rendered as unnumbered section title
|
||||
* #4983: html: The anchor for productionlist tokens has been changed
|
||||
* Modifying a template variable ``script_files`` in templates is allowed now.
|
||||
Please use ``app.add_js_file()`` instead.
|
||||
* #5072: Save environment object also with only new documents
|
||||
* #5035: qthelp builder allows dashes in :confval:`qthelp_namespace`
|
||||
* LaTeX: with lualatex or xelatex use by default :program:`xindy` as
|
||||
UTF-8 able replacement of :program:`makeindex` (refs: #5134). After
|
||||
upgrading Sphinx, please clean latex build repertory of existing project
|
||||
before new build.
|
||||
* #5163: html: hlist items are now aligned to top
|
||||
* ``highlightlang`` directive is processed on resolving phase
|
||||
* #4000: LaTeX: template changed. Following elements moved to it:
|
||||
|
||||
- ``\begin{document}``
|
||||
- ``shorthandoff`` variable
|
||||
- ``maketitle`` variable
|
||||
- ``tableofcontents`` variable
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
1.8.0b2
|
||||
|
||||
* ``sphinx.io.SphinxI18nReader.set_lineno_for_reporter()`` is deprecated
|
||||
* ``sphinx.io.SphinxI18nReader.line`` is deprecated
|
||||
* ``sphinx.util.i18n.find_catalog_source_file()`` has changed; the
|
||||
*gettext_compact* argument has been deprecated
|
||||
* #5403: ``sphinx.util.images.guess_mimetype()`` has changed; the *content*
|
||||
argument has been deprecated
|
||||
|
||||
1.8.0b1
|
||||
|
||||
* :confval:`!source_parsers` is deprecated
|
||||
* :confval:`!autodoc_default_flags` is deprecated
|
||||
* quickstart: ``--epub`` option becomes default, so it is deprecated
|
||||
* Drop function based directive support. For now, Sphinx only supports class
|
||||
based directives (see :class:`~docutils.parsers.rst.Directive`)
|
||||
* ``sphinx.util.docutils.directive_helper()`` is deprecated
|
||||
* ``sphinx.cmdline`` is deprecated
|
||||
* ``sphinx.make_mode`` is deprecated
|
||||
* ``sphinx.locale.l_()`` is deprecated
|
||||
* #2157: helper function ``warn()`` for HTML themes is deprecated
|
||||
* ``app.override_domain()`` is deprecated
|
||||
* ``app.add_stylesheet()`` is deprecated
|
||||
* ``app.add_javascript()`` is deprecated
|
||||
* ``app.import_object()`` is deprecated
|
||||
* ``app.add_source_parser()`` has changed; the *suffix* argument has been
|
||||
deprecated
|
||||
* ``sphinx.versioning.prepare()`` is deprecated
|
||||
* ``Config.__init__()`` has changed; the *dirname*, *filename* and *tags*
|
||||
argument has been deprecated
|
||||
* ``Config.check_types()`` is deprecated
|
||||
* ``Config.check_unicode()`` is deprecated
|
||||
* ``sphinx.application.CONFIG_FILENAME`` is deprecated
|
||||
* ``highlightlang`` directive is deprecated
|
||||
* ``BuildEnvironment.load()`` is deprecated
|
||||
* ``BuildEnvironment.loads()`` is deprecated
|
||||
* ``BuildEnvironment.frompickle()`` is deprecated
|
||||
* ``env.read_doc()`` is deprecated
|
||||
* ``env.update()`` is deprecated
|
||||
* ``env._read_serial()`` is deprecated
|
||||
* ``env._read_parallel()`` is deprecated
|
||||
* ``env.write_doctree()`` is deprecated
|
||||
* ``env._nitpick_ignore`` is deprecated
|
||||
* ``env.versionchanges`` is deprecated
|
||||
* ``env.dump()`` is deprecated
|
||||
* ``env.dumps()`` is deprecated
|
||||
* ``env.topickle()`` is deprecated
|
||||
* ``env.note_versionchange()`` is deprecated
|
||||
* ``sphinx.writers.latex.Table.caption_footnotetexts`` is deprecated
|
||||
* ``sphinx.writers.latex.Table.header_footnotetexts`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.footnotestack`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.in_container_literal_block`` is
|
||||
deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.next_section_ids`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.next_hyperlink_ids`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.restrict_footnote()`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.unrestrict_footnote()`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.push_hyperlink_ids()`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.pop_hyperlink_ids()`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.check_latex_elements()`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.bibitems`` is deprecated
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.hlsettingstack`` is deprecated
|
||||
* ``sphinx.writers.latex.ExtBabel.get_shorthandoff()`` is deprecated
|
||||
* ``sphinx.writers.html.HTMLTranslator.highlightlang`` is deprecated
|
||||
* ``sphinx.writers.html.HTMLTranslator.highlightlang_base`` is deprecated
|
||||
* ``sphinx.writers.html.HTMLTranslator.highlightlangopts`` is deprecated
|
||||
* ``sphinx.writers.html.HTMLTranslator.highlightlinenothreshold`` is deprecated
|
||||
* ``sphinx.writers.html5.HTMLTranslator.highlightlang`` is deprecated
|
||||
* ``sphinx.writers.html5.HTMLTranslator.highlightlang_base`` is deprecated
|
||||
* ``sphinx.writers.html5.HTMLTranslator.highlightlangopts`` is deprecated
|
||||
* ``sphinx.writers.html5.HTMLTranslator.highlightlinenothreshold`` is deprecated
|
||||
* ``sphinx.ext.mathbase`` extension is deprecated
|
||||
* ``sphinx.ext.mathbase.math`` node is deprecated
|
||||
* ``sphinx.ext.mathbase.displaymath`` node is deprecated
|
||||
* ``sphinx.ext.mathbase.eqref`` node is deprecated
|
||||
* ``sphinx.ext.mathbase.is_in_section_title()`` is deprecated
|
||||
* ``sphinx.ext.mathbase.MathDomain`` is deprecated
|
||||
* ``sphinx.ext.mathbase.MathDirective`` is deprecated
|
||||
* ``sphinx.ext.mathbase.math_role`` is deprecated
|
||||
* ``sphinx.ext.mathbase.setup_math()`` is deprecated
|
||||
* ``sphinx.directives.other.VersionChanges`` is deprecated
|
||||
* ``sphinx.highlighting.PygmentsBridge.unhighlight()`` is deprecated
|
||||
* ``sphinx.ext.mathbase.get_node_equation_number()`` is deprecated
|
||||
* ``sphinx.ext.mathbase.wrap_displaymath()`` is deprecated
|
||||
* The ``trim_doctest_flags`` argument of ``sphinx.highlighting.PygmentsBridge``
|
||||
is deprecated
|
||||
|
||||
For more details, see :ref:`deprecation APIs list <dev-deprecated-apis>`.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
1.8.0b2
|
||||
|
||||
* #5388: Ensure frozen object descriptions are reproducible
|
||||
* #5362: apidoc: Add ``--tocfile`` option to change the filename of ToC
|
||||
|
||||
1.8.0b1
|
||||
|
||||
* Add :event:`config-inited` event
|
||||
* Add ``sphinx.config.Any`` to represent the config value accepts any type of
|
||||
value
|
||||
* :confval:`source_suffix` allows a mapping fileext to file types
|
||||
* Add :confval:`author` as a configuration value
|
||||
* #2852: imgconverter: Support to convert GIF to PNG
|
||||
* ``sphinx-build`` command supports i18n console output
|
||||
* Add ``app.add_message_catalog()`` and ``sphinx.locale.get_translations()`` to
|
||||
support translation for 3rd party extensions
|
||||
* helper function ``warning()`` for HTML themes is added
|
||||
* Add ``Domain.enumerable_nodes`` to manage own enumerable nodes for domains
|
||||
(experimental)
|
||||
* Add a new keyword argument ``override`` to Application APIs
|
||||
* LaTeX: new key ``'fvset'`` for :confval:`latex_elements`. For
|
||||
XeLaTeX/LuaLaTeX its default sets ``fanvyvrb`` to use normal, not small,
|
||||
fontsize in code-blocks (refs: #4793)
|
||||
* Add :confval:`html_css_files` and :confval:`epub_css_files` for adding CSS
|
||||
files from configuration
|
||||
* Add :confval:`html_js_files` for adding JS files from configuration
|
||||
* #4834: Ensure set object descriptions are reproducible.
|
||||
* #4828: Allow to override :confval:`numfig_format` partially. Full definition
|
||||
is not needed.
|
||||
* Improve warning messages during including (refs: #4818)
|
||||
* LaTeX: separate customizability of :rst:role:`guilabel` and
|
||||
:rst:role:`menuselection` (refs: #4830)
|
||||
* Add ``Config.read()`` classmethod to create a new config object from
|
||||
configuration file
|
||||
* #4866: Wrap graphviz diagrams in ``<div>`` tag
|
||||
* viewcode: Add :event:`viewcode-find-source` and
|
||||
:event:`viewcode-follow-imported` to load source code without loading
|
||||
* #4785: napoleon: Add strings to translation file for localisation
|
||||
* #4927: Display a warning when invalid values are passed to linenothreshold
|
||||
option of highlight directive
|
||||
* C++:
|
||||
|
||||
- Add a ``cpp:texpr`` role as a sibling to ``cpp:expr``.
|
||||
- Add support for unions.
|
||||
- #3593, #2683: add support for anonymous entities using names staring with
|
||||
``@``.
|
||||
- #5147: add support for (most) character literals.
|
||||
- Cross-referencing entities inside primary templates is supported,
|
||||
and now properly documented.
|
||||
- #1552: add new cross-referencing format for ``cpp:any`` and ``cpp:func``
|
||||
roles, for referencing specific function overloads.
|
||||
|
||||
* #3606: MathJax should be loaded with async attribute
|
||||
* html: Output ``canonical_url`` metadata if :confval:`html_baseurl` set (refs:
|
||||
#4193)
|
||||
* #5029: autosummary: expose ``inherited_members`` to template
|
||||
* #3784: mathjax: Add :confval:`mathjax_options` to give options to script tag
|
||||
for mathjax
|
||||
* #726, #969: mathjax: Add :confval:`mathjax_config` to give in-line
|
||||
configurations for mathjax
|
||||
* #4362: latex: Don't overwrite .tex file if document not changed
|
||||
* #1431: latex: Add alphanumeric enumerated list support
|
||||
* Add :confval:`latex_use_xindy` for UTF-8 savvy indexing, defaults to ``True``
|
||||
if :confval:`latex_engine` is ``'xelatex'`` or ``'lualatex'``. (refs: #5134,
|
||||
#5192, #5212)
|
||||
* #4976: ``SphinxLoggerAdapter.info()`` now supports ``location`` parameter
|
||||
* #5122: setuptools: support nitpicky option
|
||||
* #2820: autoclass directive supports nested class
|
||||
* Add ``app.add_html_math_renderer()`` to register a math renderer for HTML
|
||||
* Apply :confval:`trim_doctest_flags` to all builders (cf. text, manpages)
|
||||
* #5140: linkcheck: Add better Accept header to HTTP client
|
||||
* #4614: sphinx-build: Add ``--keep-going`` option to show all warnings
|
||||
* Add :rst:role:`math:numref` role to refer equations (Same as :rst:role:`eq`)
|
||||
* quickstart: epub builder is enabled by default
|
||||
* #5246: Add :confval:`singlehtml_sidebars` to configure sidebars for singlehtml
|
||||
builder
|
||||
* #5273: doctest: Skip doctest conditionally
|
||||
* #5306: autodoc: emit a warning for invalid typehints
|
||||
* #4075, #5215: autodoc: Add :confval:`autodoc_default_options` which accepts
|
||||
option values as dict
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
1.8.0b2
|
||||
|
||||
* html: search box overrides to other elements if scrolled
|
||||
* i18n: warnings for translation catalogs have wrong line numbers (refs: #5321)
|
||||
* #5325: latex: cross references has been broken by multiply labeled objects
|
||||
* C++, fixes for symbol addition and lookup. Lookup should no longer break
|
||||
in partial builds. See also #5337.
|
||||
* #5348: download reference to remote file is not displayed
|
||||
* #5282: html theme: ``pygments_style`` of theme was overridden by ``conf.py``
|
||||
by default
|
||||
* #4379: toctree shows confusing warning when document is excluded
|
||||
* #2401: autodoc: ``:members:`` causes ``:special-members:`` not to be shown
|
||||
* autodoc: ImportError is replaced by AttributeError for deeper module
|
||||
* #2720, #4034: Incorrect links with ``:download:``, duplicate names, and
|
||||
parallel builds
|
||||
* #5290: autodoc: failed to analyze source code in egg package
|
||||
* #5399: Sphinx crashes if unknown po file exists
|
||||
|
||||
1.8.0b1
|
||||
|
||||
* i18n: message catalogs were reset on each initialization
|
||||
* #4850: latex: footnote inside footnote was not rendered
|
||||
* #4945: i18n: fix lang_COUNTRY not fallback correctly for IndexBuilder. Thanks
|
||||
to Shengjing Zhu.
|
||||
* #4983: productionlist directive generates invalid IDs for the tokens
|
||||
* #5132: lualatex: PDF build fails if indexed word starts with Unicode character
|
||||
* #5133: latex: index headings "Symbols" and "Numbers" not internationalized
|
||||
* #5114: sphinx-build: Handle errors on scanning documents
|
||||
* epub: spine has been broken when "self" is listed on toctree (refs: #4611)
|
||||
* #344: autosummary does not understand docstring of module level attributes
|
||||
* #5191: C++, prevent nested declarations in functions to avoid lookup problems.
|
||||
* #5126: C++, add missing isPack method for certain template parameter types.
|
||||
* #5187: C++, parse attributes on declarators as well.
|
||||
* C++, parse delete expressions and basic new expressions as well.
|
||||
* #5002: graphviz: SVGs do not adapt to the column width
|
||||
|
||||
Features removed
|
||||
----------------
|
||||
|
||||
1.8.0b1
|
||||
|
||||
* ``sphinx.ext.pngmath`` extension
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
1.8.0b1
|
||||
|
||||
* #5083: Fix wrong make.bat option for internationalization.
|
||||
* #5115: napoleon: add admonitions added by #4613 to the docs.
|
||||
314
doc/changes/2.0.rst
Normal file
@@ -0,0 +1,314 @@
|
||||
==========
|
||||
Sphinx 2.0
|
||||
==========
|
||||
|
||||
|
||||
Release 2.0.1 (released Apr 08, 2019)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* LaTeX: some system labels are not translated
|
||||
* RemovedInSphinx30Warning is marked as pending
|
||||
* deprecation warnings are not emitted
|
||||
|
||||
- ``sphinx.application.CONFIG_FILENAME``
|
||||
- ``sphinx.builders.htmlhelp``
|
||||
- :confval:`!viewcode_import`
|
||||
|
||||
* #6208: C++, properly parse full xrefs that happen to have a short xref as
|
||||
prefix
|
||||
* #6220, #6225: napoleon: AttributeError is raised for raised section having
|
||||
references
|
||||
* #6245: circular import error on importing SerializingHTMLBuilder
|
||||
* #6243: LaTeX: 'releasename' setting for latex_elements is ignored
|
||||
* #6244: html: Search function is broken with 3rd party themes
|
||||
* #6263: html: HTML5Translator crashed with invalid field node
|
||||
* #6262: html theme: The style of field lists has changed in bizstyle theme
|
||||
|
||||
Release 2.0.0 (released Mar 29, 2019)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
2.0.0b1
|
||||
|
||||
* LaTeX builder now depends on TeX Live 2015 or above.
|
||||
* LaTeX builder (with ``'pdflatex'`` :confval:`latex_engine`) will process
|
||||
Unicode Greek letters in text (not in math mark-up) via the text font and
|
||||
will not escape them to math mark-up. See the discussion of the
|
||||
``'fontenc'`` key of :confval:`latex_elements`; such (optional) support for
|
||||
Greek adds, for example on Ubuntu xenial, the ``texlive-lang-greek`` and (if
|
||||
default font set-up is not modified) ``cm-super(-minimal)`` as additional
|
||||
Sphinx LaTeX requirements.
|
||||
* LaTeX builder with :confval:`latex_engine` set to ``'xelatex'`` or to
|
||||
``'lualatex'`` requires (by default) the ``FreeFont`` fonts,
|
||||
which in Ubuntu xenial are provided by package ``fonts-freefont-otf``, and
|
||||
e.g. in Fedora 29 via package ``texlive-gnu-freefont``.
|
||||
* requests 2.5.0 or above
|
||||
* The six package is no longer a dependency
|
||||
* The sphinxcontrib-websupport package is no longer a dependency
|
||||
* Some packages are separated to sub packages:
|
||||
|
||||
- sphinxcontrib.applehelp
|
||||
- sphinxcontrib.devhelp
|
||||
- sphinxcontrib.htmlhelp
|
||||
- sphinxcontrib.jsmath
|
||||
- sphinxcontrib.serializinghtml
|
||||
- sphinxcontrib.qthelp
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
2.0.0b1
|
||||
|
||||
* Drop python 2.7 and 3.4 support
|
||||
* Drop Docutils 0.11 support
|
||||
* Drop features and APIs deprecated in 1.7.x
|
||||
* The default setting for :confval:`master_doc` is changed to ``'index'`` which
|
||||
has been longly used as default of sphinx-quickstart.
|
||||
* LaTeX: Move message resources to ``sphinxmessage.sty``
|
||||
* LaTeX: Stop using ``\captions<lang>`` macro for some labels
|
||||
* LaTeX: for ``'xelatex'`` and ``'lualatex'``, use the ``FreeFont`` OpenType
|
||||
fonts as default choice (refs: #5645)
|
||||
* LaTeX: ``'xelatex'`` and ``'lualatex'`` now use ``\small`` in code-blocks
|
||||
(due to ``FreeMono`` character width) like ``'pdflatex'`` already did (due
|
||||
to ``Courier`` character width). You may need to adjust this via
|
||||
:confval:`latex_elements` ``'fvset'`` key, in case of usage of some other
|
||||
OpenType fonts (refs: #5768)
|
||||
* LaTeX: Greek letters in text are not escaped to math mode mark-up, and they
|
||||
will use the text font not the math font. The ``LGR`` font encoding must be
|
||||
added to the ``'fontenc'`` key of :confval:`latex_elements` for this to work
|
||||
(only if it is needed by the document, of course).
|
||||
* LaTeX: setting the :confval:`language` to ``'en'`` triggered ``Sonny`` option
|
||||
of ``fncychap``, now it is ``Bjarne`` to match case of no language specified.
|
||||
(refs: #5772)
|
||||
* #5770: doctest: Follow :confval:`highlight_language` on highlighting doctest
|
||||
block. As a result, they are highlighted as python3 by default.
|
||||
* The order of argument for ``HTMLTranslator``, ``HTML5Translator`` and
|
||||
``ManualPageTranslator`` are changed
|
||||
* LaTeX: hard-coded redefinitions of ``\l@section`` and ``\l@subsection``
|
||||
formerly done during loading of ``'manual'`` docclass get executed later, at
|
||||
time of ``\sphinxtableofcontents``. This means that custom user definitions
|
||||
from LaTeX preamble now get overwritten. Use ``\sphinxtableofcontentshook``
|
||||
to insert custom user definitions. See :ref:`latex-macros`.
|
||||
* quickstart: Simplify generated ``conf.py``
|
||||
* #4148: quickstart: some questions are removed. They are still able to specify
|
||||
via command line options
|
||||
* websupport: unbundled from Sphinx core. Please use sphinxcontrib-websupport
|
||||
* C++, the visibility of base classes is now always rendered as present in the
|
||||
input. That is, ``private`` is now shown, where it was ellided before.
|
||||
* LaTeX: graphics inclusion of oversized images rescales to not exceed
|
||||
the text width and height, even if width and/or height option were used.
|
||||
(refs: #5956)
|
||||
* epub: ``epub_title`` defaults to the :confval:`project` option
|
||||
* #4550: All tables and figures without ``align`` option are displayed to center
|
||||
* #4587: html: Output HTML5 by default
|
||||
|
||||
2.0.0b2
|
||||
|
||||
* texinfo: image files are copied into ``name-figure`` directory
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
2.0.0b1
|
||||
|
||||
* Support for evaluating Python 2 syntax is deprecated. This includes
|
||||
configuration files which should be converted to Python 3.
|
||||
* The arguments of ``EpubBuilder.build_mimetype()``,
|
||||
``EpubBuilder.build_container()``, ``EpubBuilder.bulid_content()``,
|
||||
``EpubBuilder.build_toc()`` and ``EpubBuilder.build_epub()``
|
||||
* The arguments of ``Epub3Builder.build_navigation_doc()``
|
||||
* The config variables
|
||||
|
||||
- :confval:`!html_experimental_html5_writer`
|
||||
|
||||
* The ``encoding`` argument of ``autodoc.Documenter.get_doc()``,
|
||||
``autodoc.DocstringSignatureMixin.get_doc()``,
|
||||
``autodoc.DocstringSignatureMixin._find_signature()``, and
|
||||
``autodoc.ClassDocumenter.get_doc()`` are deprecated.
|
||||
* The ``importer`` argument of ``sphinx.ext.autodoc.importer._MockModule``
|
||||
* The ``nodetype`` argument of ``sphinx.search.WordCollector.
|
||||
is_meta_keywords()``
|
||||
* The ``suffix`` argument of ``env.doc2path()`` is deprecated.
|
||||
* The string style ``base`` argument of ``env.doc2path()`` is deprecated.
|
||||
* The fallback to allow omitting the ``filename`` argument from an overridden
|
||||
``IndexBuilder.feed()`` method is deprecated.
|
||||
* ``sphinx.addnodes.abbreviation``
|
||||
* ``sphinx.application.Sphinx._setting_up_extension``
|
||||
* ``sphinx.builders.epub3.Epub3Builder.validate_config_value()``
|
||||
* ``sphinx.builders.html.SingleFileHTMLBuilder``
|
||||
* ``sphinx.builders.htmlhelp.HTMLHelpBuilder.open_file()``
|
||||
* ``sphinx.cmd.quickstart.term_decode()``
|
||||
* ``sphinx.cmd.quickstart.TERM_ENCODING``
|
||||
* ``sphinx.config.check_unicode()``
|
||||
* ``sphinx.config.string_classes``
|
||||
* ``sphinx.domains.cpp.DefinitionError.description``
|
||||
* ``sphinx.domains.cpp.NoOldIdError.description``
|
||||
* ``sphinx.domains.cpp.UnsupportedMultiCharacterCharLiteral.decoded``
|
||||
* ``sphinx.ext.autodoc.importer._MockImporter``
|
||||
* ``sphinx.ext.autosummary.Autosummary.warn()``
|
||||
* ``sphinx.ext.autosummary.Autosummary.genopt``
|
||||
* ``sphinx.ext.autosummary.Autosummary.warnings``
|
||||
* ``sphinx.ext.autosummary.Autosummary.result``
|
||||
* ``sphinx.ext.doctest.doctest_encode()``
|
||||
* ``sphinx.io.SphinxBaseFileInput``
|
||||
* ``sphinx.io.SphinxFileInput.supported``
|
||||
* ``sphinx.io.SphinxRSTFileInput``
|
||||
* ``sphinx.registry.SphinxComponentRegistry.add_source_input()``
|
||||
* ``sphinx.roles.abbr_role()``
|
||||
* ``sphinx.roles.emph_literal_role()``
|
||||
* ``sphinx.roles.menusel_role()``
|
||||
* ``sphinx.roles.index_role()``
|
||||
* ``sphinx.roles.indexmarkup_role()``
|
||||
* ``sphinx.testing.util.remove_unicode_literal()``
|
||||
* ``sphinx.util.attrdict``
|
||||
* ``sphinx.util.force_decode()``
|
||||
* ``sphinx.util.get_matching_docs()``
|
||||
* ``sphinx.util.inspect.Parameter``
|
||||
* ``sphinx.util.jsonimpl``
|
||||
* ``sphinx.util.osutil.EEXIST``
|
||||
* ``sphinx.util.osutil.EINVAL``
|
||||
* ``sphinx.util.osutil.ENOENT``
|
||||
* ``sphinx.util.osutil.EPIPE``
|
||||
* ``sphinx.util.osutil.walk()``
|
||||
* ``sphinx.util.PeekableIterator``
|
||||
* ``sphinx.util.pycompat.NoneType``
|
||||
* ``sphinx.util.pycompat.TextIOWrapper``
|
||||
* ``sphinx.util.pycompat.UnicodeMixin``
|
||||
* ``sphinx.util.pycompat.htmlescape``
|
||||
* ``sphinx.util.pycompat.indent``
|
||||
* ``sphinx.util.pycompat.sys_encoding``
|
||||
* ``sphinx.util.pycompat.terminal_safe()``
|
||||
* ``sphinx.util.pycompat.u``
|
||||
* ``sphinx.writers.latex.ExtBabel``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator._make_visit_admonition()``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.babel_defmacro()``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.collect_footnotes()``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.generate_numfig_format()``
|
||||
* ``sphinx.writers.texinfo.TexinfoTranslator._make_visit_admonition()``
|
||||
* ``sphinx.writers.text.TextTranslator._make_depart_admonition()``
|
||||
* template variables for LaTeX template
|
||||
|
||||
- ``logo``
|
||||
- ``numfig_format``
|
||||
- ``pageautorefname``
|
||||
- ``translatablestrings``
|
||||
|
||||
For more details, see :ref:`deprecation APIs list <dev-deprecated-apis>`.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
2.0.0b1
|
||||
|
||||
* #1618: The search results preview of generated HTML documentation is
|
||||
reader-friendlier: instead of showing the snippets as raw reStructuredText
|
||||
markup, Sphinx now renders the corresponding HTML. This means the Sphinx
|
||||
extension `Sphinx: pretty search results`__ is no longer necessary. Note that
|
||||
changes to the search function of your custom or 3rd-party HTML template might
|
||||
overwrite this improvement.
|
||||
|
||||
__ https://github.com/sphinx-contrib/sphinx-pretty-searchresults
|
||||
|
||||
* #4182: autodoc: Support :confval:`suppress_warnings`
|
||||
* #5533: autodoc: :confval:`autodoc_default_options` supports ``member-order``
|
||||
* #5394: autodoc: Display readable names in type annotations for mocked objects
|
||||
* #5459: autodoc: :confval:`autodoc_default_options` accepts ``True`` as a value
|
||||
* #1148: autodoc: Add :rst:dir:`autodecorator` directive for decorators
|
||||
* #5635: autosummary: Add :confval:`autosummary_mock_imports` to mock external
|
||||
libraries on importing targets
|
||||
* #4018: htmlhelp: Add :confval:`htmlhelp_file_suffix` and
|
||||
:confval:`htmlhelp_link_suffix`
|
||||
* #5559: text: Support complex tables (colspan and rowspan)
|
||||
* LaTeX: support rendering (not in math, yet) of Greek and Cyrillic Unicode
|
||||
letters in non-Cyrillic document even with ``'pdflatex'`` as
|
||||
:confval:`latex_engine` (refs: #5645)
|
||||
* #5660: The ``versionadded``, ``versionchanged`` and ``deprecated`` directives
|
||||
are now generated with their own specific CSS classes
|
||||
(``added``, ``changed`` and ``deprecated``, respectively) in addition to the
|
||||
generic ``versionmodified`` class.
|
||||
* #5841: apidoc: Add --extensions option to sphinx-apidoc
|
||||
* #4981: C++, added an alias directive for inserting lists of declarations,
|
||||
that references existing declarations (e.g., for making a synopsis).
|
||||
* C++: add ``cpp:struct`` to complement ``cpp:class``.
|
||||
* #1341: the HTML search considers words that contain a search term of length
|
||||
three or longer a match.
|
||||
* #4611: epub: Show warning for duplicated ToC entries
|
||||
* #1851: Allow to omit an argument for :rst:dir:`code-block` directive. If
|
||||
omitted, it follows :rst:dir:`highlight` or :confval:`highlight_language`
|
||||
* #4587: html: Add :confval:`!html4_writer` to use old HTML4 writer
|
||||
* #6016: HTML search: A placeholder for the search summary prevents search
|
||||
result links from changing their position when the search terminates. This
|
||||
makes navigating search results easier.
|
||||
* #5196: linkcheck also checks remote images exist
|
||||
* #5924: githubpages: create CNAME file for custom domains when
|
||||
:confval:`html_baseurl` set
|
||||
* #4261: autosectionlabel: restrict the labeled sections by new config value;
|
||||
:confval:`autosectionlabel_maxdepth`
|
||||
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
2.0.0b1
|
||||
|
||||
* #1682: LaTeX: writer should not translate Greek unicode, but use textgreek
|
||||
package
|
||||
* #5247: LaTeX: PDF does not build with default font config for Russian
|
||||
language and ``'xelatex'`` or ``'lualatex'`` as :confval:`latex_engine`
|
||||
(refs: #5251)
|
||||
* #5248: LaTeX: Greek letters in section titles disappear from PDF bookmarks
|
||||
* #5249: LaTeX: Unicode Greek letters in math directive break PDF build
|
||||
(fix requires extra set-up, see :confval:`latex_elements` ``'textgreek'`` key
|
||||
and/or :confval:`latex_engine` setting)
|
||||
* #5772: LaTeX: should the Bjarne style of fncychap be used for English also
|
||||
if passed as language option?
|
||||
* #5179: LaTeX: (lualatex only) escaping of ``>`` by ``\textgreater{}`` is not
|
||||
enough as ``\textgreater{}\textgreater{}`` applies TeX-ligature
|
||||
* LaTeX: project name is not escaped if :confval:`latex_documents` omitted
|
||||
* LaTeX: authors are not shown if :confval:`latex_documents` omitted
|
||||
* HTML: Invalid HTML5 file is generated for a glossary having multiple terms for
|
||||
one description (refs: #4611)
|
||||
* QtHelp: OS dependent path separator is used in .qhp file
|
||||
* HTML search: search always returns nothing when multiple search terms are
|
||||
used and one term is shorter than three characters
|
||||
|
||||
2.0.0b2
|
||||
|
||||
* #6096: html: Anchor links are not added to figures
|
||||
* #3620: html: Defer searchindex.js rather than loading it via ajax
|
||||
* #6113: html: Table cells and list items have large margins
|
||||
* #5508: ``linenothreshold`` option for ``highlight`` directive was ignored
|
||||
* texinfo: ``make install-info`` causes syntax error
|
||||
* texinfo: ``make install-info`` fails on macOS
|
||||
* #3079: texinfo: image files are not copied on ``make install-info``
|
||||
* #5391: A cross reference in heading is rendered as literal
|
||||
* #5946: C++, fix ``cpp:alias`` problems in LaTeX (and singlehtml)
|
||||
* #6147: classes attribute of ``citation_reference`` node is lost
|
||||
* AssertionError is raised when custom ``citation_reference`` node having
|
||||
classes attribute refers missing citation (refs: #6147)
|
||||
* #2155: Support ``code`` directive
|
||||
* C++, fix parsing of braced initializers.
|
||||
* #6172: AttributeError is raised for old styled index nodes
|
||||
* #4872: inheritance_diagram: correctly describe behavior of ``parts`` option in
|
||||
docs, allow negative values.
|
||||
* #6178: i18n: Captions missing in translations for hidden TOCs
|
||||
|
||||
2.0.0 final
|
||||
|
||||
* #6196: py domain: unexpected prefix is generated
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
2.0.0b1
|
||||
|
||||
* Stop to use ``SPHINX_TEST_TEMPDIR`` envvar
|
||||
|
||||
2.0.0b2
|
||||
|
||||
* Add a helper function: ``sphinx.testing.restructuredtext.parse()``
|
||||
175
doc/changes/2.1.rst
Normal file
@@ -0,0 +1,175 @@
|
||||
==========
|
||||
Sphinx 2.1
|
||||
==========
|
||||
|
||||
|
||||
Release 2.1.2 (released Jun 19, 2019)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6497: custom lexers fails highlighting when syntax error
|
||||
* #6478, #6488: info field lists are incorrectly recognized
|
||||
|
||||
Release 2.1.1 (released Jun 10, 2019)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #6447: autodoc: Stop to generate document for undocumented module variables
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6442: LaTeX: admonitions of :rst:dir:`note` type can get separated from
|
||||
immediately preceding section title by pagebreak
|
||||
* #6448: autodoc: crashed when autodocumenting classes with ``__slots__ = None``
|
||||
* #6451: autodoc: generates docs for "optional import"ed modules as variables
|
||||
* #6452: autosummary: crashed when generating document of properties
|
||||
* #6455: napoleon: docstrings for properties are not processed
|
||||
* #6436: napoleon: "Unknown target name" error if variable name ends with
|
||||
underscore
|
||||
* #6440: apidoc: missing blank lines between modules
|
||||
|
||||
Release 2.1.0 (released Jun 02, 2019)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Ignore filenames without file extension given to ``Builder.build_specific()``
|
||||
API directly
|
||||
* #6230: The anchor of term in glossary directive is changed if it is consisted
|
||||
by non-ASCII characters
|
||||
* #4550: html: Centering tables by default using CSS
|
||||
* #6239: latex: xelatex and xeCJK are used for Chinese documents by default
|
||||
* ``Sphinx.add_lexer()`` now takes a Lexer class instead of instance. An
|
||||
instance of lexers are still supported until Sphinx 3.x.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* ``sphinx.builders.latex.LaTeXBuilder.apply_transforms()``
|
||||
* ``sphinx.builders._epub_base.EpubBuilder.esc()``
|
||||
* ``sphinx.directives.Acks``
|
||||
* ``sphinx.directives.Author``
|
||||
* ``sphinx.directives.Centered``
|
||||
* ``sphinx.directives.Class``
|
||||
* ``sphinx.directives.CodeBlock``
|
||||
* ``sphinx.directives.Figure``
|
||||
* ``sphinx.directives.HList``
|
||||
* ``sphinx.directives.Highlight``
|
||||
* ``sphinx.directives.Include``
|
||||
* ``sphinx.directives.Index``
|
||||
* ``sphinx.directives.LiteralInclude``
|
||||
* ``sphinx.directives.Meta``
|
||||
* ``sphinx.directives.Only``
|
||||
* ``sphinx.directives.SeeAlso``
|
||||
* ``sphinx.directives.TabularColumns``
|
||||
* ``sphinx.directives.TocTree``
|
||||
* ``sphinx.directives.VersionChange``
|
||||
* ``sphinx.domains.python.PyClassmember``
|
||||
* ``sphinx.domains.python.PyModulelevel``
|
||||
* ``sphinx.domains.std.StandardDomain._resolve_citation_xref()``
|
||||
* ``sphinx.domains.std.StandardDomain.note_citations()``
|
||||
* ``sphinx.domains.std.StandardDomain.note_citation_refs()``
|
||||
* ``sphinx.domains.std.StandardDomain.note_labels()``
|
||||
* ``sphinx.environment.NoUri``
|
||||
* ``sphinx.ext.apidoc.format_directive()``
|
||||
* ``sphinx.ext.apidoc.format_heading()``
|
||||
* ``sphinx.ext.apidoc.makename()``
|
||||
* ``sphinx.ext.autodoc.importer.MockFinder``
|
||||
* ``sphinx.ext.autodoc.importer.MockLoader``
|
||||
* ``sphinx.ext.autodoc.importer.mock()``
|
||||
* ``sphinx.ext.autosummary.autolink_role()``
|
||||
* ``sphinx.ext.imgmath.DOC_BODY``
|
||||
* ``sphinx.ext.imgmath.DOC_BODY_PREVIEW``
|
||||
* ``sphinx.ext.imgmath.DOC_HEAD``
|
||||
* ``sphinx.transforms.CitationReferences``
|
||||
* ``sphinx.transforms.SmartQuotesSkipper``
|
||||
* ``sphinx.util.docfields.DocFieldTransformer.preprocess_fieldtypes()``
|
||||
* ``sphinx.util.node.find_source_node()``
|
||||
* ``sphinx.util.i18n.find_catalog()``
|
||||
* ``sphinx.util.i18n.find_catalog_files()``
|
||||
* ``sphinx.util.i18n.find_catalog_source_files()``
|
||||
|
||||
For more details, see :ref:`deprecation APIs list <dev-deprecated-apis>`.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Add a helper class ``sphinx.transforms.post_transforms.SphinxPostTransform``
|
||||
* Add helper methods
|
||||
|
||||
- ``PythonDomain.note_module()``
|
||||
- ``PythonDomain.note_object()``
|
||||
- ``SphinxDirective.set_source_info()``
|
||||
|
||||
* #6180: Support ``--keep-going`` with ``BuildDoc`` setup command
|
||||
* ``math`` directive now supports ``:class:`` option
|
||||
* todo: ``todo`` directive now supports ``:name:`` option
|
||||
* Enable override via environment of ``SPHINXOPTS`` and ``SPHINXBUILD`` Makefile
|
||||
variables (refs: #6232, #6303)
|
||||
* #6287: autodoc: Unable to document bound instance methods exported as module
|
||||
functions
|
||||
* #6289: autodoc: :confval:`autodoc_default_options` now supports
|
||||
``imported-members`` option
|
||||
* #4777: autodoc: Support coroutine
|
||||
* #744: autodoc: Support abstractmethod
|
||||
* #6325: autodoc: Support attributes in __slots__. For dict-style __slots__,
|
||||
autodoc considers values as a docstring of the attribute
|
||||
* #6361: autodoc: Add :confval:`autodoc_typehints` to suppress typehints from
|
||||
signature
|
||||
* #1063: autodoc: ``automodule`` directive now handles undocumented module level
|
||||
variables
|
||||
* #6212: autosummary: Add :confval:`autosummary_imported_members` to display
|
||||
imported members on autosummary
|
||||
* #6271: ``make clean`` is catastrophically broken if building into '.'
|
||||
* #6363: Support ``%O%`` environment variable in make.bat
|
||||
* #4777: py domain: Add ``:async:`` option to :rst:dir:`py:function` directive
|
||||
* py domain: Add new options to :rst:dir:`py:method` directive
|
||||
|
||||
- ``:abstractmethod:``
|
||||
- ``:async:``
|
||||
- ``:classmethod:``
|
||||
- ``:property:``
|
||||
- ``:staticmethod:``
|
||||
|
||||
* rst domain: Add :rst:dir:`rst:directive:option` directive to describe the option
|
||||
for directive
|
||||
* #6306: html: Add a label to search form for accessibility purposes
|
||||
* #4390: html: Consistent and semantic CSS for signatures
|
||||
* #6358: The ``rawsource`` property of ``production`` nodes now contains the
|
||||
full production rule
|
||||
* #6373: autosectionlabel: Allow suppression of warnings
|
||||
* coverage: Support a new ``coverage_ignore_pyobjects`` option
|
||||
* #6239: latex: Support to build Chinese documents
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6230: Inappropriate node_id has been generated by glossary directive if term
|
||||
is consisted by non-ASCII characters
|
||||
* #6213: ifconfig: contents after headings are not shown
|
||||
* commented term in glossary directive is wrongly recognized
|
||||
* #6299: rst domain: rst:directive directive generates waste space
|
||||
* #6379: py domain: Module index (py-modindex.html) has duplicate titles
|
||||
* #6331: man: invalid output when doctest follows rubric
|
||||
* #6351: "Hyperlink target is not referenced" message is shown even if
|
||||
referenced
|
||||
* #6165: autodoc: ``tab_width`` setting of Docutils has been ignored
|
||||
* #6347: autodoc: crashes with a plain Tuple on Python 3.6 and 3.5
|
||||
* #6311: autosummary: autosummary table gets confused by complex type hints
|
||||
* #6350: autosummary: confused by an argument having some kind of default value
|
||||
* Generated Makefiles lack a final EOL (refs: #6232)
|
||||
* #6375: extlinks: Cannot escape angle brackets in link caption
|
||||
* #6378: linkcheck: Send commonly used User-Agent
|
||||
* #6387: html search: failed to search document with haiku and scrolls themes
|
||||
* #6408: html search: Fix the ranking of search results
|
||||
* #6406: Wrong year is returned for ``SOURCE_DATE_EPOCH``
|
||||
* #6402: image directive crashes by unknown image format
|
||||
* #6286: C++, allow 8 and 9 in hexadecimal integer literals.
|
||||
* #6305: Fix the string in quickstart for 'path' argument of parser
|
||||
* LaTeX: Figures in admonitions produced errors (refs: #6364)
|
||||
105
doc/changes/2.2.rst
Normal file
@@ -0,0 +1,105 @@
|
||||
==========
|
||||
Sphinx 2.2
|
||||
==========
|
||||
|
||||
|
||||
Release 2.2.2 (released Dec 03, 2019)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #6803: For security reason of python, parallel mode is disabled on macOS and
|
||||
Python3.8+
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6776: LaTeX: 2019-10-01 LaTeX release breaks :file:`sphinxcyrillic.sty`
|
||||
* #6815: i18n: French, Hindi, Chinese, Japanese and Korean translation messages
|
||||
has been broken
|
||||
* #6803: parallel build causes AttributeError on macOS and Python3.8
|
||||
|
||||
Release 2.2.1 (released Oct 26, 2019)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6641: LaTeX: Undefined control sequence ``\sphinxmaketitle``
|
||||
* #6710: LaTeX not well configured for Greek language as main language
|
||||
* #6759: validation of html static paths and extra paths no longer throws
|
||||
an error if the paths are in different directories
|
||||
|
||||
Release 2.2.0 (released Aug 19, 2019)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* apidoc: template files are renamed to ``.rst_t``
|
||||
* html: Field lists will be styled by grid layout
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* ``sphinx.domains.math.MathDomain.add_equation()``
|
||||
* ``sphinx.domains.math.MathDomain.get_next_equation_number()``
|
||||
* The ``info`` and ``warn`` arguments of
|
||||
``sphinx.ext.autosummary.generate.generate_autosummary_docs()``
|
||||
* ``sphinx.ext.autosummary.generate._simple_info()``
|
||||
* ``sphinx.ext.autosummary.generate._simple_warn()``
|
||||
* ``sphinx.ext.todo.merge_info()``
|
||||
* ``sphinx.ext.todo.process_todo_nodes()``
|
||||
* ``sphinx.ext.todo.process_todos()``
|
||||
* ``sphinx.ext.todo.purge_todos()``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #5124: graphviz: ``:graphviz_dot:`` option is renamed to ``:layout:``
|
||||
* #1464: html: emit a warning if :confval:`html_static_path` and
|
||||
:confval:`html_extra_path` directories are inside output directory
|
||||
* #6514: html: Add a label to search input for accessibility purposes
|
||||
* #5602: apidoc: Add ``--templatedir`` option
|
||||
* #6475: Add ``override`` argument to ``app.add_autodocumenter()``
|
||||
* #6310: imgmath: let :confval:`imgmath_use_preview` work also with the SVG
|
||||
format for images rendering inline math
|
||||
* #6533: LaTeX: refactor visit_enumerated_list() to use ``\sphinxsetlistlabels``
|
||||
* #6628: quickstart: Use ``https://docs.python.org/3/`` for default setting of
|
||||
:confval:`intersphinx_mapping`
|
||||
* #6419: sphinx-build: give reasons why rebuilt
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* py domain: duplicated warning does not point the location of source code
|
||||
* #6499: html: Sphinx never updates a copy of :confval:`html_logo` even if
|
||||
original file has changed
|
||||
* #1125: html theme: scrollbar is hard to see on classic theme and macOS
|
||||
* #5502: linkcheck: Consider HTTP 503 response as not an error
|
||||
* #6439: Make generated download links reproducible
|
||||
* #6486: UnboundLocalError is raised if broken extension installed
|
||||
* #6567: autodoc: :confval:`autodoc_inherit_docstrings` does not effect to
|
||||
``__init__()`` and ``__new__()``
|
||||
* #6574: autodoc: :confval:`autodoc_member_order` does not refer order of
|
||||
imports when ``'bysource'`` order
|
||||
* #6574: autodoc: missing type annotation for variadic and keyword parameters
|
||||
* #6589: autodoc: Formatting issues with autodoc_typehints='none'
|
||||
* #6605: autodoc: crashed when target code contains custom method-like objects
|
||||
* #6498: autosummary: crashed with wrong autosummary_generate setting
|
||||
* #6507: autosummary: crashes without no autosummary_generate setting
|
||||
* #6511: LaTeX: autonumbered list can not be customized in LaTeX
|
||||
since Sphinx 1.8.0 (refs: #6533)
|
||||
* #6531: Failed to load last environment object when extension added
|
||||
* #736: Invalid sort in pair index
|
||||
* #6527: :data:`last_updated` wrongly assumes timezone as UTC
|
||||
* #5592: std domain: :rst:dir:`option` directive registers an index entry for
|
||||
each comma separated option
|
||||
* #6549: sphinx-build: Escaped characters in error messages
|
||||
* #6545: doctest comments not getting trimmed since Sphinx 1.8.0
|
||||
* #6561: glossary: Wrong hyperlinks are generated for non alphanumeric terms
|
||||
* #6620: i18n: classifiers of definition list are not translated with
|
||||
Docutils 0.15
|
||||
* #6474: ``DocFieldTransformer`` raises AttributeError when given directive is
|
||||
not a subclass of ObjectDescription
|
||||
106
doc/changes/2.3.rst
Normal file
@@ -0,0 +1,106 @@
|
||||
==========
|
||||
Sphinx 2.3
|
||||
==========
|
||||
|
||||
|
||||
Release 2.3.1 (released Dec 22, 2019)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6936: sphinx-autogen: raises AttributeError
|
||||
|
||||
Release 2.3.0 (released Dec 15, 2019)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #6742: ``end-before`` option of :rst:dir:`literalinclude` directive does not
|
||||
match the first line of the code block.
|
||||
* #1331: Change default User-Agent header to ``"Sphinx/X.Y.Z requests/X.Y.Z
|
||||
python/X.Y.Z"``. It can be changed via :confval:`user_agent`.
|
||||
* #6867: text: content of admonitions starts after a blank line
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* ``sphinx.builders.gettext.POHEADER``
|
||||
* ``sphinx.io.SphinxStandaloneReader.app``
|
||||
* ``sphinx.io.SphinxStandaloneReader.env``
|
||||
* ``sphinx.util.texescape.tex_escape_map``
|
||||
* ``sphinx.util.texescape.tex_hl_escape_map_new``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.no_contractions``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #6707: C++, support bit-fields.
|
||||
* #267: html: Eliminate prompt characters of doctest block from copyable text
|
||||
* #6548: html: Use favicon for OpenSearch if available
|
||||
* #6729: html theme: agogo theme now supports ``rightsidebar`` option
|
||||
* #6780: Add PEP-561 Support
|
||||
* #6762: latex: Allow to load additional LaTeX packages via ``extrapackages`` key
|
||||
of :confval:`latex_elements`
|
||||
* #1331: Add new config variable: :confval:`user_agent`
|
||||
* #6000: LaTeX: have backslash also be an inline literal word wrap break
|
||||
character
|
||||
* #4186: LaTeX: Support upLaTeX as a new :confval:`latex_engine` (experimental)
|
||||
* #6812: Improve a warning message when extensions are not parallel safe
|
||||
* #6818: Improve Intersphinx performance for multiple remote inventories.
|
||||
* #2546: apidoc: .so file support
|
||||
* #6798: autosummary: emit ``autodoc-skip-member`` event on generating stub file
|
||||
* #6483: i18n: make explicit titles in toctree translatable
|
||||
* #6816: linkcheck: Add :confval:`linkcheck_auth` option to provide
|
||||
authentication information when doing ``linkcheck`` builds
|
||||
* #6872: linkcheck: Handles HTTP 308 Permanent Redirect
|
||||
* #6613: html: Wrap section number in span tag
|
||||
* #6781: gettext: Add :confval:`gettext_last_translator` and
|
||||
:confval:`gettext_language_team` to customize headers of POT file
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6668: LaTeX: Longtable before header has incorrect distance
|
||||
(refs: `latex3/latex2e#173`_)
|
||||
|
||||
.. _latex3/latex2e#173: https://github.com/latex3/latex2e/issues/173
|
||||
* #6618: LaTeX: Avoid section names at the end of a page
|
||||
* #6738: LaTeX: Do not replace unicode characters by LaTeX macros on unicode
|
||||
supported LaTeX engines: ¶, §, €, ∞, ±, →, ‣, –, superscript and subscript
|
||||
digits go through "as is" (as default OpenType font supports them)
|
||||
* #6704: linkcheck: Be defensive and handle newly defined HTTP error code
|
||||
* #6806: linkcheck: Failure on parsing content
|
||||
* #6655: image URLs containing ``data:`` causes gettext builder crashed
|
||||
* #6584: i18n: Error when compiling message catalogs on Hindi
|
||||
* #6718: i18n: KeyError is raised if section title and table title are same
|
||||
* #6743: i18n: :confval:`rst_prolog` breaks the translation
|
||||
* #6708: mathbase: Some deprecated functions have removed
|
||||
* #6709: autodoc: mock object does not work as a class decorator
|
||||
* #5070: epub: Wrong internal href fragment links
|
||||
* #6712: Allow not to install sphinx.testing as runtime (mainly for ALT Linux)
|
||||
* #6741: html: search result was broken with empty :confval:`html_file_suffix`
|
||||
* #6001: LaTeX does not wrap long code lines at backslash character
|
||||
* #6804: LaTeX: PDF build breaks if admonition of danger type contains
|
||||
code-block long enough not to fit on one page
|
||||
* #6809: LaTeX: code-block in a danger type admonition can easily spill over
|
||||
bottom of page
|
||||
* #6793: texinfo: Code examples broken following "sidebar"
|
||||
* #6813: An orphan warning is emitted for included document on Windows. Thanks
|
||||
to @drillan
|
||||
* #6850: Fix smartypants module calls re.sub() with wrong options
|
||||
* #6824: HTML search: If a search term is partially matched in the title and
|
||||
fully matched in a text paragraph on the same page, the search does not
|
||||
include this match.
|
||||
* #6848: config.py shouldn't pop extensions from overrides
|
||||
* #6867: text: extra spaces are inserted to hyphenated words on folding lines
|
||||
* #6886: LaTeX: xelatex converts straight double quotes into right curly ones
|
||||
(shows when :confval:`smartquotes` is ``False``)
|
||||
* #6890: LaTeX: even with smartquotes off, PDF output transforms straight
|
||||
quotes and consecutive hyphens into curly quotes and dashes
|
||||
* #6876: LaTeX: multi-line display of authors on title page has ragged edges
|
||||
* #6887: Sphinx crashes with Docutils 0.16b0
|
||||
* #6920: sphinx-build: A console message is wrongly highlighted
|
||||
* #6900: sphinx-build: ``-D`` option does not considers ``0`` and ``1`` as a
|
||||
boolean value
|
||||
164
doc/changes/2.4.rst
Normal file
@@ -0,0 +1,164 @@
|
||||
==========
|
||||
Sphinx 2.4
|
||||
==========
|
||||
|
||||
|
||||
Release 2.4.5 (released Nov 18, 2021)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #9807: Restrict Docutils to 0.17.x or older
|
||||
|
||||
Release 2.4.4 (released Mar 05, 2020)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7197: LaTeX: platex cause error to build image directive with target url
|
||||
* #7223: Sphinx builds has been slower since 2.4.0
|
||||
|
||||
Release 2.4.3 (released Feb 22, 2020)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7184: autodoc: ``*args`` and ``**kwarg`` in type comments are not handled
|
||||
properly
|
||||
* #7189: autodoc: classmethod coroutines are not detected
|
||||
* #7183: intersphinx: ``:attr:`` reference to property is broken
|
||||
* #6244, #6387: html search: Search breaks/hangs when built with dirhtml builder
|
||||
* #7195: todo: emit doctree-resolved event with non-document node incorrectly
|
||||
|
||||
Release 2.4.2 (released Feb 19, 2020)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7138: autodoc: ``autodoc.typehints`` crashed when variable has unbound object
|
||||
as a value
|
||||
* #7156: autodoc: separator for keyword only arguments is not shown
|
||||
* #7146: autodoc: IndexError is raised on suppressed type_comment found
|
||||
* #7161: autodoc: typehints extension does not support parallel build
|
||||
* #7178: autodoc: TypeError is raised on fetching type annotations
|
||||
* #7151: crashed when extension assigns a value to ``env.indexentries``
|
||||
* #7170: text: Remove debug print
|
||||
* #7137: viewcode: Avoid to crash when non-python code given
|
||||
|
||||
Release 2.4.1 (released Feb 11, 2020)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7120: html: crashed when on scaling SVG images which have float dimensions
|
||||
* #7126: autodoc: TypeError: 'getset_descriptor' object is not iterable
|
||||
|
||||
Release 2.4.0 (released Feb 09, 2020)
|
||||
=====================================
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* The ``decode`` argument of ``sphinx.pycode.ModuleAnalyzer()``
|
||||
* ``sphinx.directives.other.Index``
|
||||
* ``sphinx.environment.temp_data['gloss_entries']``
|
||||
* ``sphinx.environment.BuildEnvironment.indexentries``
|
||||
* ``sphinx.environment.collectors.indexentries.IndexEntriesCollector``
|
||||
* ``sphinx.ext.apidoc.INITPY``
|
||||
* ``sphinx.ext.apidoc.shall_skip()``
|
||||
* ``sphinx.io.FiletypeNotFoundError``
|
||||
* ``sphinx.io.get_filetype()``
|
||||
* ``sphinx.pycode.ModuleAnalyzer.encoding``
|
||||
* ``sphinx.roles.Index``
|
||||
* ``sphinx.util.detect_encoding()``
|
||||
* ``sphinx.util.get_module_source()``
|
||||
* ``sphinx.util.inspect.Signature``
|
||||
* ``sphinx.util.inspect.safe_getmembers()``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.settings.author``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.settings.contentsname``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.settings.docclass``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.settings.docname``
|
||||
* ``sphinx.writers.latex.LaTeXTranslator.settings.title``
|
||||
* ``sphinx.writers.latex.ADDITIONAL_SETTINGS``
|
||||
* ``sphinx.writers.latex.DEFAULT_SETTINGS``
|
||||
* ``sphinx.writers.latex.LUALATEX_DEFAULT_FONTPKG``
|
||||
* ``sphinx.writers.latex.PDFLATEX_DEFAULT_FONTPKG``
|
||||
* ``sphinx.writers.latex.XELATEX_DEFAULT_FONTPKG``
|
||||
* ``sphinx.writers.latex.XELATEX_GREEK_DEFAULT_FONTPKG``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #6910: inheritance_diagram: Make the background of diagrams transparent
|
||||
* #6446: duration: Add ``sphinx.ext.durations`` to inspect which documents slow
|
||||
down the build
|
||||
* #6837: LaTeX: Support a nested table
|
||||
* #7115: LaTeX: Allow to override LATEXOPTS and LATEXMKOPTS via environment
|
||||
variable
|
||||
* #6966: graphviz: Support ``:class:`` option
|
||||
* #6696: html: ``:scale:`` option of image/figure directive not working for SVG
|
||||
images (imagesize-1.2.0 or above is required)
|
||||
* #6994: imgconverter: Support illustrator file (.ai) to .png conversion
|
||||
* autodoc: Support Positional-Only Argument separator (PEP-570 compliant)
|
||||
* autodoc: Support type annotations for variables
|
||||
* #2755: autodoc: Add new event: :event:`autodoc-before-process-signature`
|
||||
* #2755: autodoc: Support type_comment style (ex. ``# type: (str) -> str``)
|
||||
annotation (python3.8+ or `typed_ast <https://github.com/python/typed_ast>`_
|
||||
is required)
|
||||
* #7051: autodoc: Support instance variables without defaults (PEP-526)
|
||||
* #6418: autodoc: Add a new extension ``sphinx.ext.autodoc.typehints``. It shows
|
||||
typehints as object description if ``autodoc_typehints = "description"`` set.
|
||||
This is an experimental extension and it will be integrated into autodoc core
|
||||
in Sphinx 3.0
|
||||
* SphinxTranslator now calls visitor/departure method for super node class if
|
||||
visitor/departure method for original node class not found
|
||||
* #6418: Add new event: :event:`object-description-transform`
|
||||
* py domain: :rst:dir:`py:data` and :rst:dir:`py:attribute` take new options
|
||||
named ``:type:`` and ``:value:`` to describe its type and initial value
|
||||
* #6785: py domain: ``:py:attr:`` is able to refer properties again
|
||||
* #6772: apidoc: Add ``-q`` option for quiet mode
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6925: html: Remove redundant type="text/javascript" from <script> elements
|
||||
* #7112: html: SVG image is not layouted as float even if aligned
|
||||
* #6906, #6907: autodoc: failed to read the source codes encoded in cp1251
|
||||
* #6961: latex: warning for babel shown twice
|
||||
* #7059: latex: LaTeX compilation falls into infinite loop (wrapfig issue)
|
||||
* #6581: latex: ``:reversed:`` option for toctree does not effect to LaTeX build
|
||||
* #6559: Wrong node-ids are generated in glossary directive
|
||||
* #6986: apidoc: misdetects module name for .so file inside module
|
||||
* #6899: apidoc: private members are not shown even if ``--private`` given
|
||||
* #6327: apidoc: Support a python package consisted of __init__.so file
|
||||
* #6999: napoleon: fails to parse tilde in :exc: role
|
||||
* #7019: gettext: Absolute path used in message catalogs
|
||||
* #7023: autodoc: nested partial functions are not listed
|
||||
* #7023: autodoc: partial functions imported from other modules are listed as
|
||||
module members without :impoprted-members: option
|
||||
* #6889: autodoc: Trailing comma in ``:members::`` option causes cryptic warning
|
||||
* #6568: autosummary: ``autosummary_imported_members`` is ignored on generating
|
||||
a stub file for submodule
|
||||
* #7055: linkcheck: redirect is treated as an error
|
||||
* #7088: HTML template: If ``navigation_with_keys`` option is activated,
|
||||
modifier keys are ignored, which means the feature can interfere with browser
|
||||
features
|
||||
* #7090: std domain: Can't assign numfig-numbers for custom container nodes
|
||||
* #7106: std domain: enumerated nodes are marked as duplicated when extensions
|
||||
call ``note_explicit_target()``
|
||||
* #7095: dirhtml: Cross references are broken via intersphinx and ``:doc:`` role
|
||||
* C++:
|
||||
|
||||
- Don't crash when using the ``struct`` role in some cases.
|
||||
- Don't warn when using the ``var``/``member`` role for function
|
||||
parameters.
|
||||
- Render call and braced-init expressions correctly.
|
||||
* #7097: Filenames of images generated by
|
||||
``sphinx.transforms.post_transforms.images.ImageConverter``
|
||||
or its subclasses (used for latex build) are now sanitized,
|
||||
to prevent broken paths
|
||||
268
doc/changes/3.0.rst
Normal file
@@ -0,0 +1,268 @@
|
||||
==========
|
||||
Sphinx 3.0
|
||||
==========
|
||||
|
||||
|
||||
Release 3.0.4 (released May 27, 2020)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7567: autodoc: parametrized types are shown twice for generic types
|
||||
* #7637: autodoc: system defined TypeVars are shown in Python 3.9
|
||||
* #7696: html: Updated jQuery version from 3.4.1 to 3.5.1 for security reasons
|
||||
* #7611: md5 fails when OpenSSL FIPS is enabled
|
||||
* #7626: release package does not contain ``CODE_OF_CONDUCT``
|
||||
|
||||
Release 3.0.3 (released Apr 26, 2020)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* C, parse array declarators with static, qualifiers, and VLA specification.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7516: autodoc: crashes if target object raises an error on accessing
|
||||
its attributes
|
||||
|
||||
Release 3.0.2 (released Apr 19, 2020)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* C, parse attributes and add :confval:`c_id_attributes`
|
||||
and :confval:`c_paren_attributes` to support user-defined attributes.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7461: py domain: fails with IndexError for empty tuple in type annotation
|
||||
* #7510: py domain: keyword-only arguments are documented as having a default of
|
||||
None
|
||||
* #7418: std domain: :rst:role:`term` role could not match case-insensitively
|
||||
* #7461: autodoc: empty tuple in type annotation is not shown correctly
|
||||
* #7479: autodoc: Sphinx builds has been slower since 3.0.0 on mocking
|
||||
* C++, fix spacing issue in east-const declarations.
|
||||
* #7414: LaTeX: Xindy language options were incorrect
|
||||
* Sphinx crashes with ImportError on python3.5.1
|
||||
|
||||
Release 3.0.1 (released Apr 11, 2020)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #7418: std domain: :rst:role:`term` role becomes case sensitive
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7428: py domain: a reference to class ``None`` emits a nitpicky warning
|
||||
* #7445: py domain: a return annotation ``None`` in the function signature is
|
||||
not converted to a hyperlink when using intersphinx
|
||||
* #7418: std domain: duplication warning for glossary terms is case insensitive
|
||||
* #7438: C++, fix merging overloaded functions in parallel builds.
|
||||
* #7422: autodoc: fails with ValueError when using autodoc_mock_imports
|
||||
* #7435: autodoc: :confval:`autodoc_typehints`\ ``='description'`` doesn't
|
||||
suppress typehints in signature for classes/methods
|
||||
* #7451: autodoc: fails with AttributeError when an object returns non-string
|
||||
object as a ``__doc__`` member
|
||||
* #7423: crashed when giving a non-string object to logger
|
||||
* #7479: html theme: Do not include xmlns attribute with HTML 5 doctype
|
||||
* #7426: html theme: Escape some links in HTML templates
|
||||
|
||||
Release 3.0.0 (released Apr 06, 2020)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
3.0.0b1
|
||||
|
||||
* LaTeX: drop dependency on :program:`extractbb` for image inclusion in
|
||||
Japanese documents as ``.xbb`` files are unneeded by :program:`dvipdfmx`
|
||||
since TeXLive2015 (refs: #6189)
|
||||
* babel-2.0 or above is available (Unpinned)
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
3.0.0b1
|
||||
|
||||
* Drop features and APIs deprecated in 1.8.x
|
||||
* #247: autosummary: stub files are overwritten automatically by default. see
|
||||
:confval:`autosummary_generate_overwrite` to change the behavior
|
||||
* #5923: autodoc: the members of ``object`` class are not documented by default
|
||||
when ``:inherited-members:`` and ``:special-members:`` are given.
|
||||
* #6830: py domain: ``meta`` fields in info-field-list becomes reserved. They
|
||||
are not displayed on output document now
|
||||
* #6417: py domain: doctree of desc_parameterlist has been changed. The
|
||||
argument names, annotations and default values are wrapped with inline node
|
||||
* The structure of ``sphinx.events.EventManager.listeners`` has changed
|
||||
* Due to the scoping changes for :rst:dir:`productionlist` some uses of
|
||||
:rst:role:`token` must be modified to include the scope which was previously
|
||||
ignored.
|
||||
* #6903: Internal data structure of Python, reST and standard domains have
|
||||
changed. The node_id is added to the index of objects and modules. Now they
|
||||
contains a pair of docname and node_id for cross reference.
|
||||
* #7276: C++ domain: Non intended behavior is removed such as ``say_hello_``
|
||||
links to ``.. cpp:function:: say_hello()``
|
||||
* #7210: js domain: Non intended behavior is removed such as ``parseInt_`` links
|
||||
to ``.. js:function:: parseInt``
|
||||
* #7229: rst domain: Non intended behavior is removed such as ``numref_`` links
|
||||
to ``.. rst:role:: numref``
|
||||
* #6903: py domain: Non intended behavior is removed such as ``say_hello_``
|
||||
links to ``.. py:function:: say_hello()``
|
||||
* #7246: py domain: Drop special cross reference helper for exceptions,
|
||||
functions and methods
|
||||
* The C domain has been rewritten, with additional directives and roles.
|
||||
The existing ones are now more strict, resulting in new warnings.
|
||||
* The attribute ``sphinx_cpp_tagname`` in the ``desc_signature_line`` node
|
||||
has been renamed to ``sphinx_line_type``.
|
||||
* #6462: double backslashes in domain directives are no longer replaced by
|
||||
single backslashes as default. A new configuration value
|
||||
:confval:`strip_signature_backslash` can be used by users to re-enable it.
|
||||
|
||||
3.0.0 final
|
||||
|
||||
* #7222: ``sphinx.util.inspect.unwrap()`` is renamed to ``unwrap_all()``
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
3.0.0b1
|
||||
|
||||
* ``desc_signature['first']``
|
||||
* ``sphinx.directives.DescDirective``
|
||||
* ``sphinx.domains.std.StandardDomain.add_object()``
|
||||
* ``sphinx.domains.python.PyDecoratorMixin``
|
||||
* ``sphinx.ext.autodoc.get_documenters()``
|
||||
* ``sphinx.ext.autosummary.process_autosummary_toc()``
|
||||
* ``sphinx.parsers.Parser.app``
|
||||
* ``sphinx.testing.path.Path.text()``
|
||||
* ``sphinx.testing.path.Path.bytes()``
|
||||
* ``sphinx.util.inspect.getargspec()``
|
||||
* ``sphinx.writers.latex.LaTeXWriter.format_docclass()``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
3.0.0b1
|
||||
|
||||
* #247: autosummary: Add :confval:`autosummary_generate_overwrite` to overwrite
|
||||
old stub file
|
||||
* #5923: autodoc: ``:inherited-members:`` option takes a name of ancestor class
|
||||
not to document inherited members of the class and uppers
|
||||
* #6830: autodoc: consider a member private if docstring contains
|
||||
``:meta private:`` in info-field-list
|
||||
* #7165: autodoc: Support Annotated type (PEP-593)
|
||||
* #2815: autodoc: Support singledispatch functions and methods
|
||||
* #7079: autodoc: :confval:`autodoc_typehints` accepts ``"description"``
|
||||
configuration. It shows typehints as object description
|
||||
* #7314: apidoc: Propagate ``--maxdepth`` option through package documents
|
||||
* #6558: glossary: emit a warning for duplicated glossary entry
|
||||
* #3106: domain: Register hyperlink target for index page automatically
|
||||
* #6558: std domain: emit a warning for duplicated generic objects
|
||||
* #6830: py domain: Add new event: :event:`object-description-transform`
|
||||
* #6895: py domain: Do not emit nitpicky warnings for built-in types
|
||||
* py domain: Support lambda functions in function signature
|
||||
* #6417: py domain: Allow to make a style for arguments of functions and methods
|
||||
* #7238, #7239: py domain: Emit a warning on describing a python object if the
|
||||
entry is already added as the same name
|
||||
* #7341: py domain: type annotations in signature are converted to cross refs
|
||||
* Support priority of event handlers. For more detail, see
|
||||
:py:meth:`.Sphinx.connect()`
|
||||
* #3077: Implement the scoping for :rst:dir:`productionlist` as indicated
|
||||
in the documentation.
|
||||
* #1027: Support backslash line continuation in :rst:dir:`productionlist`.
|
||||
* #7108: config: Allow to show an error message from conf.py via ``ConfigError``
|
||||
* #7032: html: :confval:`html_scaled_image_link` will be disabled for images having
|
||||
``no-scaled-link`` class
|
||||
* #7144: Add CSS class indicating its domain for each desc node
|
||||
* #7211: latex: Use babel for Chinese document when using XeLaTeX
|
||||
* #6672: LaTeX: Support LaTeX Theming (experimental)
|
||||
* #7005: LaTeX: Add LaTeX styling macro for :rst:role:`kbd` role
|
||||
* #7220: genindex: Show "main" index entries at first
|
||||
* #7103: linkcheck: writes all links to ``output.json``
|
||||
* #7025: html search: full text search can be disabled for individual document
|
||||
using ``:nosearch:`` file-wide metadata
|
||||
* #7293: html search: Allow to override JavaScript splitter via
|
||||
``SearchLanguage.js_splitter_code``
|
||||
* #7142: html theme: Add a theme option: ``pygments_dark_style`` to switch the
|
||||
style of code-blocks in dark mode
|
||||
* The C domain has been rewritten adding for example:
|
||||
|
||||
- Cross-referencing respecting the current scope.
|
||||
- Possible to document anonymous entities.
|
||||
- More specific directives and roles for each type of entity,
|
||||
e.g., handling scoping of enumerators.
|
||||
- New role :rst:role:`c:expr` for rendering expressions and types
|
||||
in text.
|
||||
|
||||
* Added ``SphinxDirective.get_source_info()``
|
||||
and ``SphinxRole.get_source_info()``.
|
||||
* #7324: sphinx-build: Emit a warning if multiple files having different file
|
||||
extensions for same document found
|
||||
|
||||
3.0.0 final
|
||||
|
||||
* Added ``ObjectDescription.transform_content()``.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
3.0.0b1
|
||||
|
||||
* C++, fix cross reference lookup in certain cases involving
|
||||
function overloads.
|
||||
* #5078: C++, fix cross reference lookup when a directive contains multiple
|
||||
declarations.
|
||||
* C++, suppress warnings for directly dependent typenames in cross references
|
||||
generated automatically in signatures.
|
||||
* #5637: autodoc: Incorrect handling of nested class names on show-inheritance
|
||||
* #7267: autodoc: error message for invalid directive options has wrong location
|
||||
* #7329: autodoc: info-field-list is wrongly generated from type hints into the
|
||||
class description even if ``autoclass_content='class'`` set
|
||||
* #7331: autodoc: a cython-function is not recognized as a function
|
||||
* #5637: inheritance_diagram: Incorrect handling of nested class names
|
||||
* #7139: ``code-block:: guess`` does not work
|
||||
* #7325: html: source_suffix containing dot leads to wrong source link
|
||||
* #7357: html: Resizing SVG image fails with ValueError
|
||||
* #7278: html search: Fix use of ``html_file_suffix`` instead of
|
||||
``html_link_suffix`` in search results
|
||||
* #7297: html theme: ``bizstyle`` does not support ``sidebarwidth``
|
||||
* #3842: singlehtml: Path to images broken when master doc is not in source root
|
||||
* #7179: std domain: Fix whitespaces are suppressed on referring GenericObject
|
||||
* #7289: console: use bright colors instead of bold
|
||||
* #1539: C, parse array types.
|
||||
* #2377: C, parse function pointers even in complex types.
|
||||
* #7345: sphinx-build: Sphinx crashes if output directory exists as a file
|
||||
* #7290: sphinx-build: Ignore bdb.BdbQuit when handling exceptions
|
||||
* #6240: napoleon: Attributes and Methods sections ignore :noindex: option
|
||||
|
||||
3.0.0 final
|
||||
|
||||
* #7364: autosummary: crashed when :confval:`autosummary_generate` is ``False``
|
||||
* #7370: autosummary: raises UnboundLocalError when unknown module given
|
||||
* #7367: C++, alternate operator spellings are now supported.
|
||||
* C, alternate operator spellings are now supported.
|
||||
* #7368: C++, comma operator in expressions, pack expansion in template
|
||||
argument lists, and more comprehensive error messages in some cases.
|
||||
* C, C++, fix crash and wrong duplicate warnings related to anon symbols.
|
||||
* #6477: Escape first "!" in a cross reference linking no longer possible
|
||||
* #7219: py domain: The index entry generated by ``py:function`` directive is
|
||||
different with one from ``index`` directive with "builtin" type
|
||||
* #7301: capital characters are not allowed for node_id
|
||||
* #7301: epub: duplicated node_ids are generated
|
||||
* #6564: html: a width of table was ignored on HTML builder
|
||||
* #7401: Incorrect argument is passed for :event:`env-get-outdated` handlers
|
||||
* #7355: autodoc: a signature of cython-function is not recognized well
|
||||
* #7222: autodoc: ``__wrapped__`` functions are not documented correctly
|
||||
* #7409: intersphinx: ValueError is raised when an extension sets up
|
||||
:confval:`intersphinx_mapping` on :event:`config-inited` event
|
||||
* #7343: Sphinx builds has been slower since 2.4.0 on debug mode
|
||||
216
doc/changes/3.1.rst
Normal file
@@ -0,0 +1,216 @@
|
||||
==========
|
||||
Sphinx 3.1
|
||||
==========
|
||||
|
||||
|
||||
Release 3.1.2 (released Jul 05, 2020)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #7650: autodoc: the signature of base function will be shown for decorated
|
||||
functions, not a signature of decorator
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7844: autodoc: Failed to detect module when relative module name given
|
||||
* #7856: autodoc: AttributeError is raised when non-class object is given to
|
||||
the autoclass directive
|
||||
* #7850: autodoc: KeyError is raised for invalid mark up when autodoc_typehints
|
||||
is 'description'
|
||||
* #7812: autodoc: crashed if the target name matches to both an attribute and
|
||||
module that are same name
|
||||
* #7650: autodoc: function signature becomes ``(*args, **kwargs)`` if the
|
||||
function is decorated by generic decorator
|
||||
* #7812: autosummary: generates broken stub files if the target code contains
|
||||
an attribute and module that are same name
|
||||
* #7806: viewcode: Failed to resolve viewcode references on 3rd party builders
|
||||
* #7838: html theme: List items have extra vertical space
|
||||
* #7878: html theme: Undesired interaction between "overflow" and "float"
|
||||
|
||||
Release 3.1.1 (released Jun 14, 2020)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #7808: napoleon: a type for attribute are represented as typed field
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #7807: autodoc: Show detailed warning when type_comment is mismatched with its
|
||||
signature
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7808: autodoc: Warnings raised on variable and attribute type annotations
|
||||
* #7802: autodoc: EOFError is raised on parallel build
|
||||
* #7821: autodoc: TypeError is raised for overloaded C-ext function
|
||||
* #7805: autodoc: an object which descriptors returns is unexpectedly documented
|
||||
* #7807: autodoc: wrong signature is shown for the function using contextmanager
|
||||
* #7812: autosummary: generates broken stub files if the target code contains
|
||||
an attribute and module that are same name
|
||||
* #7808: napoleon: Warnings raised on variable and attribute type annotations
|
||||
* #7811: sphinx.util.inspect causes circular import problem
|
||||
|
||||
Release 3.1.0 (released Jun 08, 2020)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #7746: mathjax: Update to 2.7.5
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #7477: imgconverter: Invoke "magick convert" command by default on Windows
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* The first argument for sphinx.ext.autosummary.generate.AutosummaryRenderer has
|
||||
been changed to Sphinx object
|
||||
* ``sphinx.ext.autosummary.generate.AutosummaryRenderer`` takes an object type
|
||||
as an argument
|
||||
* The ``ignore`` argument of ``sphinx.ext.autodoc.Documenter.get_doc()``
|
||||
* The ``template_dir`` argument of ``sphinx.ext.autosummary.generate.
|
||||
AutosummaryRenderer``
|
||||
* The ``module`` argument of ``sphinx.ext.autosummary.generate.
|
||||
find_autosummary_in_docstring()``
|
||||
* The ``builder`` argument of ``sphinx.ext.autosummary.generate.
|
||||
generate_autosummary_docs()``
|
||||
* The ``template_dir`` argument of ``sphinx.ext.autosummary.generate.
|
||||
generate_autosummary_docs()``
|
||||
* The ``ignore`` argument of ``sphinx.util.docstring.prepare_docstring()``
|
||||
* ``sphinx.ext.autosummary.generate.AutosummaryRenderer.exists()``
|
||||
* ``sphinx.util.rpartition()``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* LaTeX: Make the ``toplevel_sectioning`` setting optional in LaTeX theme
|
||||
* LaTeX: Allow to override papersize and pointsize from LaTeX themes
|
||||
* LaTeX: Add :confval:`latex_theme_options` to override theme options
|
||||
* #7410: Allow to suppress "circular toctree references detected" warnings using
|
||||
:confval:`suppress_warnings`
|
||||
* C, added scope control directives, :rst:dir:`c:namespace`,
|
||||
:rst:dir:`c:namespace-push`, and :rst:dir:`c:namespace-pop`.
|
||||
* #2044: autodoc: Suppress default value for instance attributes
|
||||
* #7473: autodoc: consider a member public if docstring contains
|
||||
``:meta public:`` in info-field-list
|
||||
* #7487: autodoc: Allow to generate docs for singledispatch functions by
|
||||
py:autofunction
|
||||
* #7143: autodoc: Support final classes and methods
|
||||
* #7384: autodoc: Support signatures defined by ``__new__()``, metaclasses and
|
||||
builtin base classes
|
||||
* #2106: autodoc: Support multiple signatures on docstring
|
||||
* #4422: autodoc: Support GenericAlias in Python 3.7 or above
|
||||
* #3610: autodoc: Support overloaded functions
|
||||
* #7722: autodoc: Support TypeVar
|
||||
* #7466: autosummary: headings in generated documents are not translated
|
||||
* #7490: autosummary: Add ``:caption:`` option to autosummary directive to set a
|
||||
caption to the toctree
|
||||
* #7469: autosummary: Support module attributes
|
||||
* #248, #6040: autosummary: Add ``:recursive:`` option to autosummary directive
|
||||
to generate stub files recursively
|
||||
* #4030: autosummary: Add :confval:`autosummary_context` to add template
|
||||
variables for custom templates
|
||||
* #7530: html: Support nested <kbd> elements
|
||||
* #7481: html theme: Add right margin to footnote/citation labels
|
||||
* #7482, #7717: html theme: CSS spacing for code blocks with captions and line
|
||||
numbers
|
||||
* #7443: html theme: Add new options :confval:`globaltoc_collapse` and
|
||||
:confval:`globaltoc_includehidden` to control the behavior of globaltoc in
|
||||
sidebar
|
||||
* #7484: html theme: Avoid clashes between sidebar and other blocks
|
||||
* #7476: html theme: Relbar breadcrumb should contain current page
|
||||
* #7506: html theme: A canonical URL is not escaped
|
||||
* #7533: html theme: Avoid whitespace at the beginning of genindex.html
|
||||
* #7541: html theme: Add a "clearer" at the end of the "body"
|
||||
* #7542: html theme: Make admonition/topic/sidebar scrollable
|
||||
* #7543: html theme: Add top and bottom margins to tables
|
||||
* #7695: html theme: Add viewport meta tag for basic theme
|
||||
* #7721: html theme: classic: default codetextcolor/codebgcolor doesn't override
|
||||
Pygments
|
||||
* C and C++: allow semicolon in the end of declarations.
|
||||
* C++, parse parameterized noexcept specifiers.
|
||||
* #7294: C++, parse expressions with user-defined literals.
|
||||
* C++, parse trailing return types.
|
||||
* #7143: py domain: Add ``:final:`` option to :rst:dir:`py:class`,
|
||||
:rst:dir:`py:exception` and :rst:dir:`py:method` directives
|
||||
* #7596: py domain: Change a type annotation for variables to a hyperlink
|
||||
* #7770: std domain: :rst:dir:`option` directive support arguments in the form
|
||||
of ``foo[=bar]``
|
||||
* #7582: napoleon: a type for attribute are represented like type annotation
|
||||
* #7734: napoleon: overescaped trailing underscore on attribute
|
||||
* #7247: linkcheck: Add :confval:`linkcheck_request_headers` to send custom HTTP
|
||||
headers for specific host
|
||||
* #7792: setuptools: Support ``--verbosity`` option
|
||||
* #7683: Add ``allowed_exceptions`` parameter to ``Sphinx.emit()`` to allow
|
||||
handlers to raise specified exceptions
|
||||
* #7295: C++, parse (trailing) requires clauses.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6703: autodoc: incremental build does not work for imported objects
|
||||
* #7564: autodoc: annotations not to be shown for descriptors
|
||||
* #6588: autodoc: Decorated inherited method has no documentation
|
||||
* #7469: autodoc: The change of autodoc-process-docstring for variables is
|
||||
cached unexpectedly
|
||||
* #7559: autodoc: misdetects a sync function is async
|
||||
* #6857: autodoc: failed to detect a classmethod on Enum class
|
||||
* #7562: autodoc: a typehint contains spaces is wrongly rendered under
|
||||
:confval:`autodoc_typehints`\ ``='description'`` mode
|
||||
* #7551: autodoc: failed to import nested class
|
||||
* #7362: autodoc: does not render correct signatures for built-in functions
|
||||
* #7654: autodoc: ``Optional[Union[foo, bar]]`` is presented as
|
||||
``Union[foo, bar, None]``
|
||||
* #7629: autodoc: autofunction emits an unfriendly warning if an invalid object
|
||||
specified
|
||||
* #7650: autodoc: undecorated signature is shown for decorated functions
|
||||
* #7676: autodoc: typo in the default value of autodoc_member_order
|
||||
* #7676: autodoc: wrong value for :member-order: option is ignored silently
|
||||
* #7676: autodoc: member-order="bysource" does not work for C module
|
||||
* #3673: autodoc: member-order="bysource" does not work for a module having
|
||||
``__all__``
|
||||
* #7668: autodoc: wrong retann value is passed to a handler of
|
||||
autodoc-process-signature
|
||||
* #7711: autodoc: fails with ValueError when processing numpy objects
|
||||
* #7791: autodoc: TypeError is raised on documenting singledispatch function
|
||||
* #7551: autosummary: a nested class is indexed as non-nested class
|
||||
* #7661: autosummary: autosummary directive emits warnings twices if failed to
|
||||
import the target module
|
||||
* #7685: autosummary: The template variable "members" contains imported members
|
||||
even if :confval:`autossummary_imported_members` is ``False``
|
||||
* #7671: autosummary: The location of import failure warning is missing
|
||||
* #7535: sphinx-autogen: crashes when custom template uses inheritance
|
||||
* #7536: sphinx-autogen: crashes when template uses i18n feature
|
||||
* #7781: sphinx-build: Wrong error message when outdir is not directory
|
||||
* #7653: sphinx-quickstart: Fix multiple directory creation for nested relpath
|
||||
* #2785: html: Bad alignment of equation links
|
||||
* #7718: html theme: some themes does not respect background color of Pygments
|
||||
style (agogo, haiku, nature, pyramid, scrolls, sphinxdoc and traditional)
|
||||
* #7544: html theme: inconsistent padding in admonitions
|
||||
* #7581: napoleon: bad parsing of inline code in attribute docstrings
|
||||
* #7628: imgconverter: runs imagemagick once unnecessary for builders not
|
||||
supporting images
|
||||
* #7610: incorrectly renders consecutive backslashes for Docutils 0.16
|
||||
* #7646: handle errors on event handlers
|
||||
* #4187: LaTeX: EN DASH disappears from PDF bookmarks in Japanese documents
|
||||
* #7701: LaTeX: Anonymous indirect hyperlink target causes duplicated labels
|
||||
* #7723: LaTeX: pdflatex crashed when URL contains a single quote
|
||||
* #7756: py domain: The default value for positional only argument is not shown
|
||||
* #7760: coverage: Add :confval:`coverage_show_missing_items` to show coverage
|
||||
result to console
|
||||
* C++, fix rendering and xrefs in nested names explicitly starting
|
||||
in global scope, e.g., ``::A::B``.
|
||||
* C, fix rendering and xrefs in nested names explicitly starting
|
||||
in global scope, e.g., ``.A.B``.
|
||||
* #7763: C and C++, don't crash during display stringification of unary
|
||||
expressions and fold expressions.
|
||||
137
doc/changes/3.2.rst
Normal file
@@ -0,0 +1,137 @@
|
||||
==========
|
||||
Sphinx 3.2
|
||||
==========
|
||||
|
||||
|
||||
Release 3.2.1 (released Aug 14, 2020)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #8095: napoleon: Add :confval:`napoleon_preprocess_types` to enable the type
|
||||
preprocessor for numpy style docstrings
|
||||
* #8114: C and C++, parse function attributes after parameters and qualifiers.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8074: napoleon: Crashes during processing C-ext module
|
||||
* #8088: napoleon: "Inline literal start-string without end-string" warning in
|
||||
Numpy style Parameters section
|
||||
* #8084: autodoc: KeyError is raised on documenting an attribute of the broken
|
||||
class
|
||||
* #8091: autodoc: AttributeError is raised on documenting an attribute on Python
|
||||
3.5.2
|
||||
* #8099: autodoc: NameError is raised when target code uses ``TYPE_CHECKING``
|
||||
* C++, fix parsing of template template parameters, broken by the fix of #7944
|
||||
|
||||
Release 3.2.0 (released Aug 08, 2020)
|
||||
=====================================
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* ``sphinx.ext.autodoc.members_set_option()``
|
||||
* ``sphinx.ext.autodoc.merge_special_members_option()``
|
||||
* ``sphinx.writers.texinfo.TexinfoWriter.desc``
|
||||
* C, parsing of pre-v3 style type directives and roles, along with the options
|
||||
:confval:`!c_allow_pre_v3` and :confval:`!c_warn_on_allowed_pre_v3`.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #2076: autodoc: Allow overriding of exclude-members in skip-member function
|
||||
* #8034: autodoc: ``:private-member:`` can take an explicit list of member names
|
||||
to be documented
|
||||
* #2024: autosummary: Add :confval:`autosummary_filename_map` to avoid conflict
|
||||
of filenames between two object with different case
|
||||
* #8011: autosummary: Support instance attributes as a target of autosummary
|
||||
directive
|
||||
* #7849: html: Add :confval:`html_codeblock_linenos_style` to change the style
|
||||
of line numbers for code-blocks
|
||||
* #7853: C and C++, support parameterized GNU style attributes.
|
||||
* #7888: napoleon: Add aliases Warn and Raise.
|
||||
* #7690: napoleon: parse type strings and make them hyperlinks as possible. The
|
||||
conversion rule can be updated via :confval:`napoleon_type_aliases`
|
||||
* #8049: napoleon: Create a hyperlink for each the type of parameter when
|
||||
:confval:`napoleon_use_param` is ``False``
|
||||
* C, added :rst:dir:`c:alias` directive for inserting copies
|
||||
of existing declarations.
|
||||
* #7745: html: inventory is broken if the docname contains a space
|
||||
* #7991: html search: Allow searching for numbers
|
||||
* #7902: html theme: Add a new option :confval:`globaltoc_maxdepth` to control
|
||||
the behavior of globaltoc in sidebar
|
||||
* #7840: i18n: Optimize the dependencies check on bootstrap
|
||||
* #7768: i18n: :confval:`figure_language_filename` supports ``docpath`` token
|
||||
* #5208: linkcheck: Support checks for local links
|
||||
* #5090: setuptools: Link verbosity to distutils' -v and -q option
|
||||
* #6698: doctest: Add ``:trim-doctest-flags:`` and ``:no-trim-doctest-flags:``
|
||||
options to doctest, testcode and testoutput directives
|
||||
* #7052: add ``:noindexentry:`` to the Python, C, C++, and Javascript domains.
|
||||
Update the documentation to better reflect the relationship between this option
|
||||
and the ``:noindex:`` option.
|
||||
* #7899: C, add possibility of parsing of some pre-v3 style type directives and
|
||||
roles and try to convert them to equivalent v3 directives/roles.
|
||||
Set the new option :confval:`!c_allow_pre_v3` to ``True`` to enable this.
|
||||
The warnings printed from this functionality can be suppressed by setting
|
||||
:confval:`!c_warn_on_allowed_pre_v3` to ``True``.
|
||||
The functionality is immediately deprecated.
|
||||
* #7999: C, add support for named variadic macro arguments.
|
||||
* #8071: Allow to suppress "self referenced toctrees" warning
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7886: autodoc: TypeError is raised on mocking generic-typed classes
|
||||
* #7935: autodoc: function signature is not shown when the function has a
|
||||
parameter having ``inspect._empty`` as its default value
|
||||
* #7901: autodoc: type annotations for overloaded functions are not resolved
|
||||
* #904: autodoc: An instance attribute cause a crash of autofunction directive
|
||||
* #1362: autodoc: ``private-members`` option does not work for class attributes
|
||||
* #7983: autodoc: Generator type annotation is wrongly rendered in py36
|
||||
* #8030: autodoc: An uninitialized annotated instance variable is not documented
|
||||
when ``:inherited-members:`` option given
|
||||
* #8032: autodoc: A type hint for the instance variable defined at parent class
|
||||
is not shown in the document of the derived class
|
||||
* #8041: autodoc: An annotated instance variable on super class is not
|
||||
documented when derived class has other annotated instance variables
|
||||
* #7839: autosummary: cannot handle umlauts in function names
|
||||
* #7865: autosummary: Failed to extract summary line when abbreviations found
|
||||
* #7866: autosummary: Failed to extract correct summary line when docstring
|
||||
contains a hyperlink target
|
||||
* #7469: autosummary: "Module attributes" header is not translatable
|
||||
* #7940: apidoc: An extra newline is generated at the end of the rst file if a
|
||||
module has submodules
|
||||
* #4258: napoleon: decorated special methods are not shown
|
||||
* #7799: napoleon: parameters are not escaped for combined params in numpydoc
|
||||
* #7780: napoleon: multiple parameters declaration in numpydoc was wrongly
|
||||
recognized when ``napoleon_use_param=True``
|
||||
* #7715: LaTeX: ``numfig_secnum_depth > 1`` leads to wrong figure links
|
||||
* #7846: html theme: XML-invalid files were generated
|
||||
* #7894: gettext: Wrong source info is shown when using rst_epilog
|
||||
* #7691: linkcheck: HEAD requests are not used for checking
|
||||
* #4888: i18n: Failed to add an explicit title to ``:ref:`` role on translation
|
||||
* #7928: py domain: failed to resolve a type annotation for the attribute
|
||||
* #8008: py domain: failed to parse a type annotation containing ellipsis
|
||||
* #7994: std domain: option directive does not generate old node_id compatible
|
||||
with 2.x or older
|
||||
* #7968: i18n: The content of ``math`` directive is interpreted as reST on
|
||||
translation
|
||||
* #7768: i18n: The ``root`` element for :confval:`figure_language_filename` is
|
||||
not a path that user specifies in the document
|
||||
* #7993: texinfo: TypeError is raised for nested object descriptions
|
||||
* #7993: texinfo: a warning not supporting desc_signature_line node is shown
|
||||
* #7869: :rst:role:`abbr` role without an explanation will show the explanation
|
||||
from the previous abbr role
|
||||
* #8048: graphviz: graphviz.css was copied on building non-HTML document
|
||||
* C and C++, removed ``noindex`` directive option as it did
|
||||
nothing.
|
||||
* #7619: Duplicated node IDs are generated if node has multiple IDs
|
||||
* #2050: Symbols sections are appeared twice in the index page
|
||||
* #8017: Fix circular import in sphinx.addnodes
|
||||
* #7986: CSS: make "highlight" selector more robust
|
||||
* #7944: C++, parse non-type template parameters starting with
|
||||
a dependent qualified name.
|
||||
* C, don't deepcopy the entire symbol table and make a mess every time an
|
||||
enumerator is handled.
|
||||
104
doc/changes/3.3.rst
Normal file
@@ -0,0 +1,104 @@
|
||||
==========
|
||||
Sphinx 3.3
|
||||
==========
|
||||
|
||||
|
||||
Release 3.3.1 (released Nov 12, 2020)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8372: autodoc: autoclass directive became slower than Sphinx 3.2
|
||||
* #7727: autosummary: raise PycodeError when documenting python package
|
||||
without __init__.py
|
||||
* #8350: autosummary: autosummary_mock_imports causes slow down builds
|
||||
* #8364: C, properly initialize attributes in empty symbols.
|
||||
* #8399: i18n: Put system locale path after the paths specified by configuration
|
||||
|
||||
Release 3.3.0 (released Nov 02, 2020)
|
||||
=====================================
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* ``sphinx.builders.latex.LaTeXBuilder.usepackages``
|
||||
* ``sphinx.builders.latex.LaTeXBuilder.usepackages_afger_hyperref``
|
||||
* ``sphinx.ext.autodoc.SingledispatchFunctionDocumenter``
|
||||
* ``sphinx.ext.autodoc.SingledispatchMethodDocumenter``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #8100: html: Show a better error message for failures on copying
|
||||
html_static_files
|
||||
* #8141: C: added a ``maxdepth`` option to :rst:dir:`c:alias` to insert
|
||||
nested declarations.
|
||||
* #8081: LaTeX: Allow to add LaTeX package via ``app.add_latex_package()`` until
|
||||
just before writing .tex file
|
||||
* #7996: manpage: Add :confval:`man_make_section_directory` to make a section
|
||||
directory on build man page
|
||||
* #8289: epub: Allow to suppress "duplicated ToC entry found" warnings from epub
|
||||
builder using :confval:`suppress_warnings`.
|
||||
* #8298: sphinx-quickstart: Add :option:`sphinx-quickstart --no-sep` option
|
||||
* #8304: sphinx.testing: Register public markers in sphinx.testing.fixtures
|
||||
* #8051: napoleon: use the obj role for all See Also items
|
||||
* #8050: napoleon: Apply :confval:`napoleon_preprocess_types` to every field
|
||||
* C and C++, show line numbers for previous declarations when duplicates are
|
||||
detected.
|
||||
* #8183: Remove substitution_reference nodes from doctree only on LaTeX builds
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8085: i18n: Add support for having single text domain
|
||||
* #6640: i18n: Failed to override system message translation
|
||||
* #8143: autodoc: ``AttributeError`` is raised when ``False`` value is passed to
|
||||
:confval:`autodoc_default_options`
|
||||
* #8103: autodoc: functools.cached_property is not considered as a property
|
||||
* #8190: autodoc: parsing error is raised if some extension replaces docstring
|
||||
by string not ending with blank lines
|
||||
* #8142: autodoc: Wrong constructor signature for the class derived from
|
||||
typing.Generic
|
||||
* #8157: autodoc: TypeError is raised when annotation has invalid __args__
|
||||
* #7964: autodoc: Tuple in default value is wrongly rendered
|
||||
* #8200: autodoc: type aliases break type formatting of autoattribute
|
||||
* #7786: autodoc: can't detect overloaded methods defined in other file
|
||||
* #8294: autodoc: single-string __slots__ is not handled correctly
|
||||
* #7785: autodoc: autodoc_typehints='none' does not effect to overloaded functions
|
||||
* #8192: napoleon: description is disappeared when it contains inline literals
|
||||
* #8142: napoleon: Potential of regex denial of service in google style docs
|
||||
* #8169: LaTeX: pxjahyper loaded even when latex_engine is not platex
|
||||
* #8215: LaTeX: 'oneside' classoption causes build warning
|
||||
* #8175: intersphinx: Potential of regex denial of service by broken inventory
|
||||
* #8277: sphinx-build: missing and redundant spacing (and etc) for console
|
||||
output on building
|
||||
* #7973: imgconverter: Check availability of imagemagick many times
|
||||
* #8255: py domain: number in default argument value is changed from hexadecimal
|
||||
to decimal
|
||||
* #8316: html: Prevent arrow keys changing page when button elements are focused
|
||||
* #8343: html search: Fix unnecessary load of images when parsing the document
|
||||
* #8254: html theme: Line numbers misalign with code lines
|
||||
* #8093: The highlight warning has wrong location in some builders (LaTeX,
|
||||
singlehtml and so on)
|
||||
* #8215: Eliminate Fancyhdr build warnings for oneside documents
|
||||
* #8239: Failed to refer a token in productionlist if it is indented
|
||||
* #8268: linkcheck: Report HTTP errors when ``linkcheck_anchors`` is ``True``
|
||||
* #8245: linkcheck: take source directory into account for local files
|
||||
* #8321: linkcheck: ``tel:`` schema hyperlinks are detected as errors
|
||||
* #8323: linkcheck: An exit status is incorrect when links having unsupported
|
||||
schema found
|
||||
* #8188: C, add missing items to internal object types dictionary,
|
||||
e.g., preventing intersphinx from resolving them.
|
||||
* C, fix anon objects in intersphinx.
|
||||
* #8270, C++, properly reject functions as duplicate declarations if a
|
||||
non-function declaration of the same name already exists.
|
||||
* C, fix references to function parameters.
|
||||
Link to the function instead of a non-existing anchor.
|
||||
* #6914: figure numbers are unexpectedly assigned to uncaptioned items
|
||||
* #8320: make "inline" line numbers un-selectable
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
* #8257: Support parallel build in sphinx.testing
|
||||
139
doc/changes/3.4.rst
Normal file
@@ -0,0 +1,139 @@
|
||||
==========
|
||||
Sphinx 3.4
|
||||
==========
|
||||
|
||||
|
||||
Release 3.4.3 (released Jan 08, 2021)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8655: autodoc: Failed to generate document if target module contains an
|
||||
object that raises an exception on ``hasattr()``
|
||||
|
||||
Release 3.4.2 (released Jan 04, 2021)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8164: autodoc: Classes that inherit mocked class are not documented
|
||||
* #8602: autodoc: The ``autodoc-process-docstring`` event is emitted to the
|
||||
non-datadescriptors unexpectedly
|
||||
* #8616: autodoc: AttributeError is raised on non-class object is passed to
|
||||
autoclass directive
|
||||
|
||||
Release 3.4.1 (released Dec 25, 2020)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8559: autodoc: AttributeError is raised when using forward-reference type
|
||||
annotations
|
||||
* #8568: autodoc: TypeError is raised on checking slots attribute
|
||||
* #8567: autodoc: Instance attributes are incorrectly added to Parent class
|
||||
* #8566: autodoc: The ``autodoc-process-docstring`` event is emitted to the
|
||||
alias classes unexpectedly
|
||||
* #8583: autodoc: Unnecessary object comparison via ``__eq__`` method
|
||||
* #8565: linkcheck: Fix PriorityQueue crash when link tuples are not
|
||||
comparable
|
||||
|
||||
Release 3.4.0 (released Dec 20, 2020)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #8105: autodoc: the signature of class constructor will be shown for decorated
|
||||
classes, not a signature of decorator
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* The ``follow_wrapped`` argument of ``sphinx.util.inspect.signature()``
|
||||
* The ``no_docstring`` argument of
|
||||
``sphinx.ext.autodoc.Documenter.add_content()``
|
||||
* ``sphinx.ext.autodoc.Documenter.get_object_members()``
|
||||
* ``sphinx.ext.autodoc.DataDeclarationDocumenter``
|
||||
* ``sphinx.ext.autodoc.GenericAliasDocumenter``
|
||||
* ``sphinx.ext.autodoc.InstanceAttributeDocumenter``
|
||||
* ``sphinx.ext.autodoc.SlotsAttributeDocumenter``
|
||||
* ``sphinx.ext.autodoc.TypeVarDocumenter``
|
||||
* ``sphinx.ext.autodoc.importer._getannotations()``
|
||||
* ``sphinx.ext.autodoc.importer._getmro()``
|
||||
* ``sphinx.pycode.ModuleAnalyzer.parse()``
|
||||
* ``sphinx.util.osutil.movefile()``
|
||||
* ``sphinx.util.requests.is_ssl_error()``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #8119: autodoc: Allow to determine whether a member not included in
|
||||
``__all__`` attribute of the module should be documented or not via
|
||||
:event:`autodoc-skip-member` event
|
||||
* #8219: autodoc: Parameters for generic class are not shown when super class is
|
||||
a generic class and show-inheritance option is given (in Python 3.7 or above)
|
||||
* autodoc: Add ``Documenter.config`` as a shortcut to access the config object
|
||||
* autodoc: Add ``Optional[t]`` to annotation of function and method if a default
|
||||
value equal to ``None`` is set.
|
||||
* #8209: autodoc: Add ``:no-value:`` option to :rst:dir:`autoattribute` and
|
||||
:rst:dir:`autodata` directive to suppress the default value of the variable
|
||||
* #8460: autodoc: Support custom types defined by typing.NewType
|
||||
* #8285: napoleon: Add :confval:`napoleon_attr_annotations` to merge type hints
|
||||
on source code automatically if any type is specified in docstring
|
||||
* #8236: napoleon: Support numpydoc's "Receives" section
|
||||
* #6914: Add a new event :event:`warn-missing-reference` to custom warning
|
||||
messages when failed to resolve a cross-reference
|
||||
* #6914: Emit a detailed warning when failed to resolve a ``:ref:`` reference
|
||||
* #6629: linkcheck: The builder now handles rate limits. See
|
||||
:confval:`linkcheck_rate_limit_timeout` for details.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7613: autodoc: autodoc does not respect __signature__ of the class
|
||||
* #4606: autodoc: the location of the warning is incorrect for inherited method
|
||||
* #8105: autodoc: the signature of class constructor is incorrect if the class
|
||||
is decorated
|
||||
* #8434: autodoc: :confval:`autodoc_type_aliases` does not effect to variables
|
||||
and attributes
|
||||
* #8443: autodoc: autodata directive can't create document for PEP-526 based
|
||||
type annotated variables
|
||||
* #8443: autodoc: autoattribute directive can't create document for PEP-526
|
||||
based uninitialized variables
|
||||
* #8480: autodoc: autoattribute could not create document for __slots__
|
||||
attributes
|
||||
* #8503: autodoc: autoattribute could not create document for a GenericAlias as
|
||||
class attributes correctly
|
||||
* #8534: autodoc: autoattribute could not create document for a commented
|
||||
attribute in alias class
|
||||
* #8452: autodoc: autodoc_type_aliases doesn't work when autodoc_typehints is
|
||||
set to "description"
|
||||
* #8541: autodoc: autodoc_type_aliases doesn't work for the type annotation to
|
||||
instance attributes
|
||||
* #8460: autodoc: autodata and autoattribute directives do not display type
|
||||
information of TypeVars
|
||||
* #8493: autodoc: references to builtins not working in class aliases
|
||||
* #8522: autodoc: ``__bool__`` method could be called
|
||||
* #8067: autodoc: A typehint for the instance variable having type_comment on
|
||||
super class is not displayed
|
||||
* #8545: autodoc: a __slots__ attribute is not documented even having docstring
|
||||
* #741: autodoc: inherited-members doesn't work for instance attributes on super
|
||||
class
|
||||
* #8477: autosummary: non utf-8 reST files are generated when template contains
|
||||
multibyte characters
|
||||
* #8501: autosummary: summary extraction splits text after "el at." unexpectedly
|
||||
* #8524: html: Wrong url_root has been generated on a document named "index"
|
||||
* #8419: html search: Do not load ``language_data.js`` in non-search pages
|
||||
* #8549: i18n: ``-D gettext_compact=0`` is no longer working
|
||||
* #8454: graphviz: The layout option for graph and digraph directives don't work
|
||||
* #8131: linkcheck: Use GET when HEAD requests cause Too Many Redirects, to
|
||||
accommodate infinite redirect loops on HEAD
|
||||
* #8437: Makefile: ``make clean`` with empty BUILDDIR is dangerous
|
||||
* #8365: py domain: ``:type:`` and ``:rtype:`` gives false ambiguous class
|
||||
lookup warnings
|
||||
* #8352: std domain: Failed to parse an option that starts with bracket
|
||||
* #8519: LaTeX: Prevent page brake in the middle of a seealso
|
||||
* #8520: C, fix copying of AliasNode.
|
||||
225
doc/changes/3.5.rst
Normal file
@@ -0,0 +1,225 @@
|
||||
==========
|
||||
Sphinx 3.5
|
||||
==========
|
||||
|
||||
|
||||
Release 3.5.4 (released Apr 11, 2021)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #9071: Restrict Docutils to 0.16
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9078: autodoc: Async staticmethods and classmethods are considered as non
|
||||
async coroutine-functions with Python3.10
|
||||
* #8870, #9001, #9051: html theme: The style are not applied with Docutils 0.17
|
||||
|
||||
- toctree captions
|
||||
- The content of ``sidebar`` directive
|
||||
- figures
|
||||
|
||||
Release 3.5.3 (released Mar 20, 2021)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #8959: using UNIX path separator in image directive confuses Sphinx on Windows
|
||||
|
||||
Release 3.5.2 (released Mar 06, 2021)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8943: i18n: Crashed by broken translation messages in ES, EL and HR
|
||||
* #8936: LaTeX: A custom LaTeX builder fails with unknown node error
|
||||
* #8952: Exceptions raised in a Directive cause parallel builds to hang
|
||||
|
||||
Release 3.5.1 (released Feb 16, 2021)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8883: autodoc: AttributeError is raised on assigning __annotations__ on
|
||||
read-only class
|
||||
* #8884: html: minified js stemmers not included in the distributed package
|
||||
* #8885: html: AttributeError is raised if CSS/JS files are installed via
|
||||
:confval:`html_context`
|
||||
* #8880: viewcode: ExtensionError is raised on incremental build after
|
||||
unparsable python module found
|
||||
|
||||
Release 3.5.0 (released Feb 14, 2021)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* LaTeX: ``multicol`` (it is anyhow a required part of the official latex2e
|
||||
base distribution)
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Update Underscore.js to 1.12.0
|
||||
* #6550: html: The config variable ``html_add_permalinks`` is replaced by
|
||||
:confval:`html_permalinks` and :confval:`html_permalinks_icon`
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* pending_xref node for viewcode extension
|
||||
* ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.anchors_ignore``
|
||||
* ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.auth``
|
||||
* ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.broken``
|
||||
* ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.good``
|
||||
* ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.redirected``
|
||||
* ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.rqueue``
|
||||
* ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.to_ignore``
|
||||
* ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.workers``
|
||||
* ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.wqueue``
|
||||
* ``sphinx.builders.linkcheck.node_line_or_0()``
|
||||
* ``sphinx.ext.autodoc.AttributeDocumenter.isinstanceattribute()``
|
||||
* ``sphinx.ext.autodoc.directive.DocumenterBridge.reporter``
|
||||
* ``sphinx.ext.autodoc.importer.get_module_members()``
|
||||
* ``sphinx.ext.autosummary.generate._simple_info()``
|
||||
* ``sphinx.ext.autosummary.generate._simple_warn()``
|
||||
* ``sphinx.writers.html.HTMLTranslator.permalink_text``
|
||||
* ``sphinx.writers.html5.HTML5Translator.permalink_text``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #8022: autodoc: autodata and autoattribute directives does not show right-hand
|
||||
value of the variable if docstring contains ``:meta hide-value:`` in
|
||||
info-field-list
|
||||
* #8514: autodoc: Default values of overloaded functions are taken from actual
|
||||
implementation if they're ellipsis
|
||||
* #8775: autodoc: Support type union operator (PEP-604) in Python 3.10 or above
|
||||
* #8297: autodoc: Allow to extend :confval:`autodoc_default_options` via
|
||||
directive options
|
||||
* #759: autodoc: Add a new configuration :confval:`autodoc_preserve_defaults` as
|
||||
an experimental feature. It preserves the default argument values of
|
||||
functions in source code and keep them not evaluated for readability.
|
||||
* #8619: html: kbd role generates customizable HTML tags for compound keys
|
||||
* #8634: html: Allow to change the order of JS/CSS via ``priority`` parameter
|
||||
for :meth:`.Sphinx.add_js_file` and :meth:`.Sphinx.add_css_file`
|
||||
* #6241: html: Allow to add JS/CSS files to the specific page when an extension
|
||||
calls ``app.add_js_file()`` or ``app.add_css_file()`` on
|
||||
:event:`html-page-context` event
|
||||
* #6550: html: Allow to use HTML permalink texts via
|
||||
:confval:`html_permalinks_icon`
|
||||
* #1638: html: Add permalink icons to glossary terms
|
||||
* #8868: html search: performance issue with massive lists
|
||||
* #8867: html search: Update JavaScript stemmer code to the latest version of
|
||||
Snowball (v2.1.0)
|
||||
* #8852: i18n: Allow to translate heading syntax in MyST-Parser
|
||||
* #8649: imgconverter: Skip availability check if builder supports the image
|
||||
type
|
||||
* #8573: napoleon: Allow to change the style of custom sections using
|
||||
:confval:`napoleon_custom_sections`
|
||||
* #8004: napoleon: Type definitions in Google style docstrings are rendered as
|
||||
references when :confval:`napoleon_preprocess_types` enabled
|
||||
* #6241: mathjax: Include mathjax.js only on the document using equations
|
||||
* #8775: py domain: Support type union operator (PEP-604)
|
||||
* #8651: std domain: cross-reference for a rubric having inline item is broken
|
||||
* #7642: std domain: Optimize case-insensitive match of term
|
||||
* #8681: viewcode: Support incremental build
|
||||
* #8132: Add :confval:`project_copyright` as an alias of :confval:`copyright`
|
||||
* #207: Now :confval:`highlight_language` supports multiple languages
|
||||
* #2030: :rst:dir:`code-block` and :rst:dir:`literalinclude` supports automatic
|
||||
dedent via no-argument ``:dedent:`` option
|
||||
* C++, also hyperlink operator overloads in expressions and alias declarations.
|
||||
* #8247: Allow production lists to refer to tokens from other production groups
|
||||
* #8813: Show what extension (or module) caused it on errors on event handler
|
||||
* #8213: C++: add ``maxdepth`` option to :rst:dir:`cpp:alias` to insert nested
|
||||
declarations.
|
||||
* C, add ``noroot`` option to :rst:dir:`c:alias` to render only nested
|
||||
declarations.
|
||||
* C++, add ``noroot`` option to :rst:dir:`cpp:alias` to render only nested
|
||||
declarations.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8727: apidoc: namespace module file is not generated if no submodules there
|
||||
* #741: autodoc: inherited-members doesn't work for instance attributes on super
|
||||
class
|
||||
* #8592: autodoc: ``:meta public:`` does not effect to variables
|
||||
* #8594: autodoc: empty ``__all__`` attribute is ignored
|
||||
* #8315: autodoc: Failed to resolve struct.Struct type annotation
|
||||
* #8652: autodoc: All variable comments in the module are ignored if the module
|
||||
contains invalid type comments
|
||||
* #8693: autodoc: Default values for overloaded functions are rendered as string
|
||||
* #8134: autodoc: crashes when mocked decorator takes arguments
|
||||
* #8800: autodoc: Uninitialized attributes in superclass are recognized as
|
||||
undocumented
|
||||
* #8655: autodoc: Failed to generate document if target module contains an
|
||||
object that raises an exception on ``hasattr()``
|
||||
* #8306: autosummary: mocked modules are documented as empty page when using
|
||||
:recursive: option
|
||||
* #8232: graphviz: Image node is not rendered if graph file is in subdirectory
|
||||
* #8618: html: kbd role produces incorrect HTML when compound-key separators (-,
|
||||
+ or ^) are used as keystrokes
|
||||
* #8629: html: A type warning for html_use_opensearch is shown twice
|
||||
* #8714: html: kbd role with "Caps Lock" rendered incorrectly
|
||||
* #8123: html search: fix searching for terms containing + (Requires a custom
|
||||
search language that does not split on +)
|
||||
* #8665: html theme: Could not override globaltoc_maxdepth in theme.conf
|
||||
* #8446: html: consecutive spaces are displayed as single space
|
||||
* #8745: i18n: crashes with KeyError when translation message adds a new auto
|
||||
footnote reference
|
||||
* #4304: linkcheck: Fix race condition that could lead to checking the
|
||||
availability of the same URL twice
|
||||
* #8791: linkcheck: The docname for each hyperlink is not displayed
|
||||
* #7118: sphinx-quickstart: questionnaire got Mojibake if libreadline unavailable
|
||||
* #8094: texinfo: image files on the different directory with document are not
|
||||
copied
|
||||
* #8782: todo: Cross references in todolist get broken
|
||||
* #8720: viewcode: module pages are generated for epub on incremental build
|
||||
* #8704: viewcode: anchors are generated in incremental build after singlehtml
|
||||
* #8756: viewcode: highlighted code is generated even if not referenced
|
||||
* #8671: :confval:`highlight_options` is not working
|
||||
* #8341: C, fix intersphinx lookup types for names in declarations.
|
||||
* C, C++: in general fix intersphinx and role lookup types.
|
||||
* #8683: :confval:`html_last_updated_fmt` does not support UTC offset (%z)
|
||||
* #8683: :confval:`html_last_updated_fmt` generates wrong time zone for %Z
|
||||
* #1112: ``download`` role creates duplicated copies when relative path is
|
||||
specified
|
||||
* #2616 (fifth item): LaTeX: footnotes from captions are not clickable,
|
||||
and for manually numbered footnotes only first one with same number is
|
||||
an hyperlink
|
||||
* #7576: LaTeX with French babel and memoir crash: "Illegal parameter number
|
||||
in definition of ``\FNH@prefntext``"
|
||||
* #8055: LaTeX (docs): A potential display bug with the LaTeX generation step
|
||||
in Sphinx (how to generate one-column index)
|
||||
* #8072: LaTeX: Directive :rst:dir:`hlist` not implemented in LaTeX
|
||||
* #8214: LaTeX: The :rst:role:`index` role and the glossary generate duplicate
|
||||
entries in the LaTeX index (if both used for same term)
|
||||
* #8735: LaTeX: wrong internal links in pdf to captioned code-blocks when
|
||||
:confval:`numfig` is not ``True``
|
||||
* #8442: LaTeX: some indexed terms are ignored when using xelatex engine
|
||||
(or pdflatex and :confval:`latex_use_xindy` set to ``True``) with memoir class
|
||||
* #8750: LaTeX: URLs as footnotes fail to show in PDF if originating from
|
||||
inside function type signatures
|
||||
* #8780: LaTeX: long words in narrow columns may not be hyphenated
|
||||
* #8788: LaTeX: ``\titleformat`` last argument in sphinx.sty should be
|
||||
bracketed, not braced (and is anyhow not needed)
|
||||
* #8849: LaTex: code-block printed out of margin (see the opt-in LaTeX syntax
|
||||
boolean :ref:`verbatimforcewraps <latexsphinxsetupforcewraps>` for use via
|
||||
the :ref:`'sphinxsetup' <latexsphinxsetup>` key of ``latex_elements``)
|
||||
* #8183: LaTeX: Remove substitution_reference nodes from doctree only on LaTeX
|
||||
builds
|
||||
* #8865: LaTeX: Restructure the index nodes inside title nodes only on LaTeX
|
||||
builds
|
||||
* #8796: LaTeX: potentially critical low level TeX coding mistake has gone
|
||||
unnoticed so far
|
||||
* C, :rst:dir:`c:alias` skip symbols without explicit declarations
|
||||
instead of crashing.
|
||||
* C, :rst:dir:`c:alias` give a warning when the root symbol is not declared.
|
||||
* C, ``expr`` role should start symbol lookup in the current scope.
|
||||
246
doc/changes/4.0.rst
Normal file
@@ -0,0 +1,246 @@
|
||||
==========
|
||||
Sphinx 4.0
|
||||
==========
|
||||
|
||||
|
||||
Release 4.0.3 (released Jul 05, 2021)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* C, add C23 keywords ``_Decimal32``, ``_Decimal64``, and ``_Decimal128``.
|
||||
* #9354: C, add :confval:`c_extra_keywords` to allow user-defined keywords
|
||||
during parsing.
|
||||
* Revert the removal of ``sphinx.util:force_decode()`` to become some 3rd party
|
||||
extensions available again during 5.0
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9330: changeset domain: :rst:dir:`versionchanged` with contents being a list
|
||||
will cause error during pdf build
|
||||
* #9313: LaTeX: complex table with merged cells broken since 4.0
|
||||
* #9305: LaTeX: backslash may cause Improper discretionary list pdf build error
|
||||
with Japanese engines
|
||||
* #9354: C, remove special macro names from the keyword list.
|
||||
See also :confval:`c_extra_keywords`.
|
||||
* #9322: KeyError is raised on PropagateDescDomain transform
|
||||
|
||||
Release 4.0.2 (released May 20, 2021)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #9216: Support jinja2-3.0
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #9222: Update Underscore.js to 1.13.1
|
||||
* #9217: manpage: Stop creating a section directory on build manpage by default
|
||||
(see :confval:`man_make_section_directory`)
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9210: viewcode: crashed if non importable modules found on parallel build
|
||||
* #9240: Unknown node error for pending_xref_condition is raised if an extension
|
||||
that does not support the node installs a missing-reference handler
|
||||
|
||||
Release 4.0.1 (released May 11, 2021)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9189: autodoc: crashed when ValueError is raised on generating signature
|
||||
from a property of the class
|
||||
* #9188: autosummary: warning is emitted if list value is set to
|
||||
autosummary_generate
|
||||
* #8380: html search: tags for search result are broken
|
||||
* #9198: i18n: Babel emits errors when running compile_catalog
|
||||
* #9205: py domain: The :canonical: option causes "more than one target for
|
||||
cross-reference" warning
|
||||
* #9201: websupport: UndefinedError is raised: 'css_tag' is undefined
|
||||
|
||||
Release 4.0.0 (released May 09, 2021)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
4.0.0b1
|
||||
|
||||
* Drop python 3.5 support
|
||||
* Drop Docutils 0.12 and 0.13 support
|
||||
* LaTeX: add ``tex-gyre`` font dependency
|
||||
|
||||
4.0.0b2
|
||||
|
||||
* Support Docutils 0.17. Please notice it changes the output of HTML builder.
|
||||
Some themes do not support it, and you need to update your custom CSS to
|
||||
upgrade it.
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
4.0.0b1
|
||||
|
||||
* #8539: autodoc: info-field-list is generated into the class description when
|
||||
:confval:`autodoc_typehints`\ ``='description'`` and
|
||||
:confval:`autoclass_content`\ ``='class'`` set
|
||||
* #8898: extlinks: "%s" becomes required keyword in the link caption string
|
||||
* domain: The ``Index`` class becomes subclasses of ``abc.ABC`` to indicate
|
||||
methods that must be overridden in the concrete classes
|
||||
* #4826: py domain: The structure of python objects is changed. A boolean value
|
||||
is added to indicate that the python object is canonical one
|
||||
* #7425: MathJax: The MathJax was changed from 2 to 3. Users using a custom
|
||||
MathJax configuration may have to set the old MathJax path or update their
|
||||
configuration for version 3. See :mod:`sphinx.ext.mathjax`.
|
||||
* #7784: i18n: The msgid for alt text of image is changed
|
||||
* #5560: napoleon: :confval:`napoleon_use_param` also affect "other parameters"
|
||||
section
|
||||
* #7996: manpage: Make a section directory on build manpage by default (see
|
||||
:confval:`man_make_section_directory`)
|
||||
* #7849: html: Change the default setting of
|
||||
:confval:`html_codeblock_linenos_style` to ``'inline'``
|
||||
* #8380: html search: search results are wrapped with ``<p>`` instead of
|
||||
``<div>``
|
||||
* html theme: Move a script tag for documentation_options.js in
|
||||
basic/layout.html to ``script_files`` variable
|
||||
* html theme: Move CSS tags in basic/layout.html to ``css_files`` variable
|
||||
* #8915: html theme: Emit a warning for ``sphinx_rtd_theme`` 0.2.4 or older
|
||||
* #8508: LaTeX: uplatex becomes a default setting of latex_engine for Japanese
|
||||
documents
|
||||
* #5977: py domain: ``:var:``, ``:cvar:`` and ``:ivar:`` fields do not create
|
||||
cross-references
|
||||
* #4550: The ``align`` attribute of ``figure`` and ``table`` nodes becomes
|
||||
``None`` by default instead of ``'default'``
|
||||
* #8769: LaTeX refactoring: split sphinx.sty into multiple files and rename
|
||||
some auxiliary files created in ``latex`` build output repertory
|
||||
* #8937: Use explicit title instead of <no title>
|
||||
* #8487: The :file: option for csv-table directive now recognizes an absolute
|
||||
path as a relative path from source directory
|
||||
|
||||
4.0.0b2
|
||||
|
||||
* #9023: Change the CSS classes on :rst:role:`cpp:expr` and
|
||||
:rst:role:`cpp:texpr`.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* :confval:`html_codeblock_linenos_style`
|
||||
* ``favicon`` and ``logo`` variable in HTML templates
|
||||
* ``sphinx.directives.patches.CSVTable``
|
||||
* ``sphinx.directives.patches.ListTable``
|
||||
* ``sphinx.directives.patches.RSTTable``
|
||||
* ``sphinx.ext.autodoc.directive.DocumenterBridge.filename_set``
|
||||
* ``sphinx.ext.autodoc.directive.DocumenterBridge.warn()``
|
||||
* ``sphinx.registry.SphinxComponentRegistry.get_source_input()``
|
||||
* ``sphinx.registry.SphinxComponentRegistry.source_inputs``
|
||||
* ``sphinx.transforms.FigureAligner``
|
||||
* ``sphinx.util.pycompat.convert_with_2to3()``
|
||||
* ``sphinx.util.pycompat.execfile_()``
|
||||
* ``sphinx.util.smartypants``
|
||||
* ``sphinx.util.typing.DirectiveOption``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
4.0.0b1
|
||||
|
||||
* #8924: autodoc: Support ``bound`` argument for TypeVar
|
||||
* #7383: autodoc: Support typehints for properties
|
||||
* #5603: autodoc: Allow to refer to a python class using its canonical name
|
||||
when the class has two different names; a canonical name and an alias name
|
||||
* #8539: autodoc: Add :confval:`autodoc_typehints_description_target` to control
|
||||
the behavior of ``autodoc_typehints=description``
|
||||
* #8841: autodoc: :confval:`autodoc_docstring_signature` will continue to look
|
||||
for multiple signature lines without backslash character
|
||||
* #7549: autosummary: Enable :confval:`autosummary_generate` by default
|
||||
* #8898: extlinks: Allow %s in link caption string
|
||||
* #4826: py domain: Add ``:canonical:`` option to python directives to describe
|
||||
the location where the object is defined
|
||||
* #7199: py domain: Add :confval:`python_use_unqualified_type_names` to suppress
|
||||
the module name of the python reference if it can be resolved (experimental)
|
||||
* #7068: py domain: Add :rst:dir:`py:property` directive to describe a property
|
||||
* #7784: i18n: The alt text for image is translated by default (without
|
||||
:confval:`gettext_additional_targets` setting)
|
||||
* #2018: html: :confval:`html_favicon` and :confval:`html_logo` now accept URL
|
||||
for the image
|
||||
* #8070: html search: Support searching for 2characters word
|
||||
* #9036: html theme: Allow to inherite the search page
|
||||
* #8938: imgconverter: Show the error of the command availability check
|
||||
* #7830: Add debug logs for change detection of sources and templates
|
||||
* #8201: Emit a warning if toctree contains duplicated entries
|
||||
* #8326: ``master_doc`` is now renamed to :confval:`root_doc`
|
||||
* #8942: C++, add support for the C++20 spaceship operator, ``<=>``.
|
||||
* #7199: A new node, ``sphinx.addnodes.pending_xref_condition`` has been added.
|
||||
It can be used to choose appropriate content of the reference by conditions.
|
||||
|
||||
4.0.0b2
|
||||
|
||||
* #8818: autodoc: Super class having ``Any`` arguments causes nitpicky warning
|
||||
* #9095: autodoc: TypeError is raised on processing broken metaclass
|
||||
* #9110: autodoc: metadata of GenericAlias is not rendered as a reference in
|
||||
py37+
|
||||
* #9098: html: copy-range protection for doctests doesn't work in Safari
|
||||
* #9103: LaTeX: imgconverter: conversion runs even if not needed
|
||||
* #8127: py domain: Ellipsis in info-field-list causes nitpicky warning
|
||||
* #9121: py domain: duplicated warning is emitted when both canonical and its
|
||||
alias objects are defined on the document
|
||||
* #9023: More CSS classes on domain descriptions, see :ref:`nodes` for details.
|
||||
* #8195: mathjax: Rename :confval:`mathjax_config` to
|
||||
:confval:`mathjax2_config` and add :confval:`mathjax3_config`
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
4.0.0b1
|
||||
|
||||
* #8917: autodoc: Raises a warning if function has wrong __globals__ value
|
||||
* #8415: autodoc: a TypeVar imported from other module is not resolved (in
|
||||
Python 3.7 or above)
|
||||
* #8992: autodoc: Failed to resolve types.TracebackType type annotation
|
||||
* #8905: html: ``html_add_permalinks=None`` and ``html_add_permalinks=""``
|
||||
are ignored
|
||||
* #8380: html search: Paragraphs in search results are not identified as ``<p>``
|
||||
* #8915: html theme: The translation of ``sphinx_rtd_theme`` does not work
|
||||
* #8342: Emit a warning if a unknown domain is given for directive or role (ex.
|
||||
``:unknown:doc:``)
|
||||
* #7241: LaTeX: No wrapping for ``cpp:enumerator``
|
||||
* #8711: LaTeX: backticks in code-blocks trigger latexpdf build warning (and font
|
||||
change) with late TeXLive 2019
|
||||
* #8253: LaTeX: Figures with no size defined get overscaled (compared to images
|
||||
with size explicitly set in pixels) (fixed for ``'pdflatex'/'lualatex'`` only)
|
||||
* #8881: LaTeX: The depth of bookmarks panel in PDF is not enough for navigation
|
||||
* #8874: LaTeX: the fix to two minor Pygments LaTeXFormatter output issues ignore
|
||||
Pygments style
|
||||
* #8925: LaTeX: 3.5.0 ``verbatimmaxunderfull`` setting does not work as
|
||||
expected
|
||||
* #8980: LaTeX: missing line break in ``\pysigline``
|
||||
* #8995: LaTeX: legacy ``\pysiglinewithargsret`` does not compute correctly
|
||||
available horizontal space and should use a ragged right style
|
||||
* #9009: LaTeX: "release" value with underscore leads to invalid LaTeX
|
||||
* #8911: C++: remove the longest matching prefix in
|
||||
:confval:`cpp_index_common_prefix` instead of the first that matches.
|
||||
* C, properly reject function declarations when a keyword is used
|
||||
as parameter name.
|
||||
* #8933: viewcode: Failed to create back-links on parallel build
|
||||
* #8960: C and C++, fix rendering of (member) function pointer types in
|
||||
function parameter lists.
|
||||
* C++, fix linking of names in array declarators, pointer to member
|
||||
(function) declarators, and in the argument to ``sizeof...``.
|
||||
* C, fix linking of names in array declarators.
|
||||
|
||||
4.0.0b2
|
||||
|
||||
* C, C++, fix ``KeyError`` when an ``alias`` directive is the first C/C++
|
||||
directive in a file with another C/C++ directive later.
|
||||
|
||||
4.0.0b3
|
||||
|
||||
* #9167: html: Failed to add CSS files to the specific page
|
||||
150
doc/changes/4.1.rst
Normal file
@@ -0,0 +1,150 @@
|
||||
==========
|
||||
Sphinx 4.1
|
||||
==========
|
||||
|
||||
|
||||
Release 4.1.2 (released Jul 27, 2021)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #9435: linkcheck: Disable checking automatically generated anchors on
|
||||
github.com (ex. anchors in reST/Markdown documents)
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9489: autodoc: Custom types using ``typing.NewType`` are not displayed well
|
||||
with the HEAD of 3.10
|
||||
* #9490: autodoc: Some objects under ``typing`` module are not displayed well
|
||||
with the HEAD of 3.10
|
||||
* #9436, #9471: autodoc: crashed if ``autodoc_class_signature = "separated"``
|
||||
* #9456: html search: html_copy_source can't control the search summaries
|
||||
* #9500: LaTeX: Failed to build Japanese document on Windows
|
||||
* #9435: linkcheck: Failed to check anchors in github.com
|
||||
|
||||
Release 4.1.1 (released Jul 15, 2021)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #9434: sphinxcontrib-htmlhelp-2.0.0 or above
|
||||
* #9434: sphinxcontrib-serializinghtml-1.1.5 or above
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9438: html: HTML logo or Favicon specified as file not being found on output
|
||||
|
||||
Release 4.1.0 (released Jul 12, 2021)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* Support jinja2-3.0
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* The ``app`` argument of ``sphinx.environment.BuildEnvironment`` becomes
|
||||
required
|
||||
* ``sphinx.application.Sphinx.html_theme``
|
||||
* ``sphinx.ext.autosummary._app``
|
||||
* ``sphinx.util.docstrings.extract_metadata()``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #8107: autodoc: Add ``class-doc-from`` option to :rst:dir:`autoclass`
|
||||
directive to control the content of the specific class like
|
||||
:confval:`autoclass_content`
|
||||
* #8588: autodoc: :confval:`autodoc_type_aliases` now supports dotted name. It
|
||||
allows you to define an alias for a class with module name like
|
||||
``foo.bar.BazClass``
|
||||
* #9175: autodoc: Special member is not documented in the module
|
||||
* #9195: autodoc: The arguments of ``typing.Literal`` are wrongly rendered
|
||||
* #9185: autodoc: :confval:`autodoc_typehints` allows ``'both'`` setting to
|
||||
allow typehints to be included both in the signature and description
|
||||
* #4257: autodoc: Add :confval:`autodoc_class_signature` to separate the class
|
||||
entry and the definition of ``__init__()`` method
|
||||
* #8061, #9218: autodoc: Support variable comment for alias classes
|
||||
* #3014: autodoc: Add :event:`autodoc-process-bases` to modify the base classes
|
||||
of the class definitions
|
||||
* #9272: autodoc: Render enum values for the default argument value better
|
||||
* #9384: autodoc: ``autodoc_typehints='none'`` now erases typehints for
|
||||
variables, attributes and properties
|
||||
* #3257: autosummary: Support instance attributes for classes
|
||||
* #9358: html: Add "heading" role to the toctree items
|
||||
* #9225: html: Add span tag to the return typehint of method/function
|
||||
* #9129: html search: Show search summaries when ``html_copy_source = False``
|
||||
* #9307: html search: Prevent corrections and completions in search field
|
||||
* #9120: html theme: Eliminate prompt characters of code-block from copyable
|
||||
text
|
||||
* #9176: i18n: Emit a debug message if message catalog file not found under
|
||||
:confval:`locale_dirs`
|
||||
* #9414: LaTeX: Add xeCJKVerbAddon to default fvset config for Chinese documents
|
||||
* #9016: linkcheck: Support checking anchors on github.com
|
||||
* #9016: linkcheck: Add a new event :event:`linkcheck-process-uri` to modify
|
||||
URIs before checking hyperlinks
|
||||
* #6525: linkcheck: Add :confval:`linkcheck_allowed_redirects` to mark
|
||||
hyperlinks that are redirected to expected URLs as "working"
|
||||
* #1874: py domain: Support union types using ``|`` in info-field-list
|
||||
* #9268: py domain: :confval:`python_use_unqualified_type_names` supports type
|
||||
field in info-field-list
|
||||
* #9097: Optimize the parallel build
|
||||
* #9131: Add :confval:`nitpick_ignore_regex` to ignore nitpicky warnings using
|
||||
regular expressions
|
||||
* #9174: Add ``Sphinx.set_html_assets_policy`` to tell extensions to include
|
||||
HTML assets in all the pages. Extensions can check this via
|
||||
``Sphinx.registry.html_assets_policy``
|
||||
* C++, add support for
|
||||
|
||||
- ``inline`` variables,
|
||||
- ``consteval`` functions,
|
||||
- ``constinit`` variables,
|
||||
- ``char8_t``,
|
||||
- ``explicit(<constant expression>)`` specifier,
|
||||
- digit separators in literals, and
|
||||
- constraints in placeholder type specifiers, aka. adjective syntax
|
||||
(e.g., ``Sortable auto &v``).
|
||||
|
||||
* C, add support for digit separators in literals.
|
||||
* #9166: LaTeX: support containers in LaTeX output
|
||||
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #8872: autodoc: stacked singledispatches are wrongly rendered
|
||||
* #8597: autodoc: a docsting having metadata only should be treated as
|
||||
undocumented
|
||||
* #9185: autodoc: typehints for overloaded functions and methods are inaccurate
|
||||
* #9250: autodoc: The inherited method not having docstring is wrongly parsed
|
||||
* #9283: autodoc: autoattribute directive failed to generate document for an
|
||||
attribute not having any comment
|
||||
* #9364: autodoc: single element tuple on the default argument value is wrongly
|
||||
rendered
|
||||
* #9362: autodoc: AttributeError is raised on processing a subclass of Tuple[()]
|
||||
* #9404: autodoc: TypeError is raised on processing dict-like object (not a
|
||||
class) via autoclass directive
|
||||
* #9317: html: Pushing left key causes visiting the next page at the first page
|
||||
* #9381: html: URL for html_favicon and html_log does not work
|
||||
* #9270: html theme : pyramid theme generates incorrect logo links
|
||||
* #9217: manpage: The name of manpage directory that is generated by
|
||||
:confval:`man_make_section_directory` is not correct
|
||||
* #9350: manpage: Fix font isn't reset after keyword at the top of samp role
|
||||
* #9306: Linkcheck reports broken link when remote server closes the connection
|
||||
on HEAD request
|
||||
* #9280: py domain: "exceptions" module is not displayed
|
||||
* #9418: py domain: a Callable annotation with no parameters
|
||||
(e.g. ``Callable[[], None])`` will be rendered with a bracket missing
|
||||
(``Callable[], None]``)
|
||||
* #9319: quickstart: Make sphinx-quickstart exit when conf.py already exists
|
||||
* #9387: xml: XML Builder ignores custom visitors
|
||||
* #9224: ``:param:`` and ``:type:`` fields does not support a type containing
|
||||
whitespace (ex. ``Dict[str, str]``)
|
||||
* #8945: when transforming typed fields, call the specified role instead of
|
||||
making an single xref. For C and C++, use the ``expr`` role for typed fields.
|
||||
56
doc/changes/4.2.rst
Normal file
@@ -0,0 +1,56 @@
|
||||
==========
|
||||
Sphinx 4.2
|
||||
==========
|
||||
|
||||
|
||||
Release 4.2.0 (released Sep 12, 2021)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #9445: autodoc: Support class properties
|
||||
* #9479: autodoc: Emit a warning if target is a mocked object
|
||||
* #9560: autodoc: Allow to refer NewType instances with module name in Python
|
||||
3.10 or above
|
||||
* #9447: html theme: Expose the version of Sphinx in the form of tuple as a
|
||||
template variable ``sphinx_version_tuple``
|
||||
* #9594: manpage: Suppress the title of man page if description is empty
|
||||
* #9445: py domain: :rst:dir:`py:property` directive supports ``:classmethod:``
|
||||
option to describe the class property
|
||||
* #9524: test: SphinxTestApp can take ``builddir`` as an argument
|
||||
* #9535: C and C++, support more fundamental types, including GNU extensions.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9608: apidoc: apidoc does not generate a module definition for implicit
|
||||
namespace package
|
||||
* #9504: autodoc: generate incorrect reference to the parent class if the target
|
||||
class inherites the class having ``_name`` attribute
|
||||
* #9537, #9589: autodoc: Some objects under ``typing`` module are not displayed
|
||||
well with the HEAD of 3.10
|
||||
* #9487: autodoc: typehint for cached_property is not shown
|
||||
* #9509: autodoc: AttributeError is raised on failed resolving typehints
|
||||
* #9518: autodoc: autodoc_docstring_signature does not effect to ``__init__()``
|
||||
and ``__new__()``
|
||||
* #9522: autodoc: PEP 585 style typehints having arguments (ex. ``list[int]``)
|
||||
are not displayed well
|
||||
* #9481: autosummary: some warnings contain non-existing filenames
|
||||
* #9568: autosummary: summarise overlined sectioned headings correctly
|
||||
* #9600: autosummary: Type annotations which contain commas in autosummary table
|
||||
are not removed completely
|
||||
* #9481: c domain: some warnings contain non-existing filenames
|
||||
* #9481: cpp domain: some warnings contain non-existing filenames
|
||||
* #9456: html search: abbreation marks are inserted to the search result if
|
||||
failed to fetch the content of the page
|
||||
* #9617: html search: The JS requirement warning is shown if browser is slow
|
||||
* #9267: html theme: CSS and JS files added by theme were loaded twice
|
||||
* #9585: py domain: ``:type:`` option for :rst:dir:`py:property` directive does
|
||||
not create a hyperlink
|
||||
* #9576: py domain: Literal typehint was converted to a cross reference
|
||||
* #9535 comment: C++, fix parsing of defaulted function parameters that are
|
||||
function pointers.
|
||||
* #9564: smartquotes: don't adjust typography for text with
|
||||
language-highlighted ``:code:`` role.
|
||||
* #9512: sphinx-build: crashed with the HEAD of Python 3.10
|
||||
138
doc/changes/4.3.rst
Normal file
@@ -0,0 +1,138 @@
|
||||
==========
|
||||
Sphinx 4.3
|
||||
==========
|
||||
|
||||
|
||||
Release 4.3.2 (released Dec 19, 2021)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9917: C and C++, parse fundamental types no matter the order of simple type
|
||||
specifiers.
|
||||
|
||||
Release 4.3.1 (released Nov 28, 2021)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #9864: mathjax: Support changing the loading method of MathJax to "defer" via
|
||||
:confval:`mathjax_options`
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9838: autodoc: AttributeError is raised on building document for functions
|
||||
decorated by functools.lru_cache
|
||||
* #9879: autodoc: AttributeError is raised on building document for an object
|
||||
having invalid __doc__ attribute
|
||||
* #9844: autodoc: Failed to process a function wrapped with functools.partial if
|
||||
:confval:`autodoc_preserve_defaults` enabled
|
||||
* #9872: html: Class namespace collision between autodoc signatures and
|
||||
Docutils 0.17
|
||||
* #9868: imgmath: Crashed if the dvisvgm command failed to convert equation
|
||||
* #9864: mathjax: Failed to render equations via MathJax v2. The loading method
|
||||
of MathJax is back to "async" method again
|
||||
|
||||
Release 4.3.0 (released Nov 11, 2021)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* Support Python 3.10
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #9649: ``searchindex.js``: the embedded data has changed format to allow
|
||||
objects with the same name in different domains.
|
||||
* #9672: The rendering of Python domain declarations is implemented
|
||||
with more Docutils nodes to allow better CSS styling.
|
||||
It may break existing styling.
|
||||
* #9672: the signature of
|
||||
``domains.python.PyObject.get_signature_prefix`` has changed to
|
||||
return a list of nodes instead of a plain string.
|
||||
* #9695: ``domains.js.JSObject.display_prefix`` has been changed into a method
|
||||
``get_display_prefix`` which now returns a list of nodes
|
||||
instead of a plain string.
|
||||
* #9695: The rendering of Javascript domain declarations is implemented
|
||||
with more Docutils nodes to allow better CSS styling.
|
||||
It may break existing styling.
|
||||
* #9450: mathjax: Load MathJax via "defer" strategy
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* ``sphinx.ext.autodoc.AttributeDocumenter._datadescriptor``
|
||||
* ``sphinx.writers.html.HTMLTranslator._fieldlist_row_index``
|
||||
* ``sphinx.writers.html.HTMLTranslator._table_row_index``
|
||||
* ``sphinx.writers.html5.HTML5Translator._fieldlist_row_index``
|
||||
* ``sphinx.writers.html5.HTML5Translator._table_row_index``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #9639: autodoc: Support asynchronous generator functions
|
||||
* #9664: autodoc: ``autodoc-process-bases`` supports to inject reST snippet as a
|
||||
base class
|
||||
* #9691: C, added new info-field ``retval``
|
||||
for :rst:dir:`c:function` and :rst:dir:`c:macro`.
|
||||
* C++, added new info-field ``retval`` for :rst:dir:`cpp:function`.
|
||||
* #9618: i18n: Add :confval:`gettext_allow_fuzzy_translations` to allow "fuzzy"
|
||||
messages for translation
|
||||
* #9672: More CSS classes on Python domain descriptions
|
||||
* #9695: More CSS classes on Javascript domain descriptions
|
||||
* #9683: Revert the removal of ``add_stylesheet()`` API. It will be kept until
|
||||
the Sphinx 6.0 release
|
||||
* #2068, add :confval:`intersphinx_disabled_reftypes` for disabling
|
||||
interphinx resolution of cross-references that do not have an explicit
|
||||
inventory specification. Specific types of cross-references can be disabled,
|
||||
e.g., ``std:doc`` or all cross-references in a specific domain,
|
||||
e.g., ``std:*``.
|
||||
* #9623: Allow to suppress "toctree contains reference to excluded document"
|
||||
warnings using :confval:`suppress_warnings`
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9630: autodoc: Failed to build cross references if :confval:`primary_domain`
|
||||
is not 'py'
|
||||
* #9644: autodoc: Crashed on getting source info from problematic object
|
||||
* #9655: autodoc: mocked object having doc comment is warned unexpectedly
|
||||
* #9651: autodoc: return type field is not generated even if
|
||||
:confval:`autodoc_typehints_description_target` is set to "documented" when
|
||||
its info-field-list contains ``:returns:`` field
|
||||
* #9657: autodoc: The base class for a subclass of mocked object is incorrect
|
||||
* #9607: autodoc: Incorrect base class detection for the subclasses of the
|
||||
generic class
|
||||
* #9755: autodoc: memory addresses are shown for aliases
|
||||
* #9752: autodoc: Failed to detect type annotation for slots attribute
|
||||
* #9756: autodoc: Crashed if classmethod does not have __func__ attribute
|
||||
* #9757: autodoc: :confval:`autodoc_inherit_docstrings` does not effect to
|
||||
overridden classmethods
|
||||
* #9781: autodoc: :confval:`autodoc_preserve_defaults` does not support
|
||||
hexadecimal numeric
|
||||
* #9630: autosummary: Failed to build summary table if :confval:`primary_domain`
|
||||
is not 'py'
|
||||
* #9670: html: Fix download file with special characters
|
||||
* #9710: html: Wrong styles for even/odd rows in nested tables
|
||||
* #9763: html: parameter name and its type annotation are not separated in HTML
|
||||
* #9649: HTML search: when objects have the same name but in different domains,
|
||||
return all of them as result instead of just one.
|
||||
* #7634: intersphinx: references on the file in sub directory are broken
|
||||
* #9737: LaTeX: hlist is rendered as a list containing "aggedright" text
|
||||
* #9678: linkcheck: file extension was shown twice in warnings
|
||||
* #9697: py domain: An index entry with parens was registered for ``py:method``
|
||||
directive with ``:property:`` option
|
||||
* #9775: py domain: Literal typehint was converted to a cross reference when
|
||||
:confval:`autodoc_typehints`\ ``='description'``
|
||||
* #9708: needs_extension failed to check double-digit version correctly
|
||||
* #9688: Fix Sphinx patched :dudir:`code` does not recognize ``:class:`` option
|
||||
* #9733: Fix for logging handler flushing warnings in the middle of the docs
|
||||
build
|
||||
* #9656: Fix warnings without subtype being incorrectly suppressed
|
||||
* Intersphinx, for unresolved references with an explicit inventory,
|
||||
e.g., ``proj:myFunc``, leave the inventory prefix in the unresolved text.
|
||||
85
doc/changes/4.4.rst
Normal file
@@ -0,0 +1,85 @@
|
||||
==========
|
||||
Sphinx 4.4
|
||||
==========
|
||||
|
||||
|
||||
Release 4.4.0 (released Jan 17, 2022)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #10007: Use ``importlib_metadata`` for python-3.9 or older
|
||||
* #10007: Drop ``setuptools``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #9075: autodoc: Add a config variable :confval:`autodoc_typehints_format`
|
||||
to suppress the leading module names of typehints of function signatures (ex.
|
||||
``io.StringIO`` -> ``StringIO``)
|
||||
* #9831: Autosummary now documents only the members specified in a module's
|
||||
``__all__`` attribute if :confval:`autosummary_ignore_module_all` is set to
|
||||
``False``. The default behaviour is unchanged. Autogen also now supports
|
||||
this behavior with the ``--respect-module-all`` switch.
|
||||
* #9555: autosummary: Improve error messages on failure to load target object
|
||||
* #9800: extlinks: Emit warning if a hardcoded link is replaceable
|
||||
by an extlink, suggesting a replacement.
|
||||
* #9961: html: Support nested <kbd> HTML elements in other HTML builders
|
||||
* #10013: html: Allow to change the loading method of JS via ``loading_method``
|
||||
parameter for :meth:`.Sphinx.add_js_file`
|
||||
* #9551: html search: "Hide Search Matches" link removes "highlight" parameter
|
||||
from URL
|
||||
* #9815: html theme: Wrap sidebar components in div to allow customizing their
|
||||
layout via CSS
|
||||
* #9827: i18n: Sort items in glossary by translated terms
|
||||
* #9899: py domain: Allows to specify cross-reference specifier (``.`` and
|
||||
``~``) as ``:type:`` option
|
||||
* #9894: linkcheck: add option ``linkcheck_exclude_documents`` to disable link
|
||||
checking in matched documents.
|
||||
* #9793: sphinx-build: Allow to use the parallel build feature in macOS on macOS
|
||||
and Python3.8+
|
||||
* #10055: sphinx-build: Create directories when ``-w`` option given
|
||||
* #9993: std domain: Allow to refer an inline target (ex. ``_`target name```)
|
||||
via :rst:role:`ref` role
|
||||
* #9981: std domain: Strip value part of the option directive from general index
|
||||
* #9391: texinfo: improve variable in ``samp`` role
|
||||
* #9578: texinfo: Add :confval:`texinfo_cross_references` to disable cross
|
||||
references for readability with standalone readers
|
||||
* #9822, #9062: add new Intersphinx role :rst:role:`external` for explicit
|
||||
lookup in the external projects, without resolving to the local project.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9866: autodoc: doccomment for the imported class was ignored
|
||||
* #9883: autodoc: doccomment for the alias to mocked object was ignored
|
||||
* #9908: autodoc: debug message is shown on building document using NewTypes
|
||||
with Python 3.10
|
||||
* #9968: autodoc: instance variables are not shown if __init__ method has
|
||||
position-only-arguments
|
||||
* #9194: autodoc: types under the "typing" module are not hyperlinked
|
||||
* #10009: autodoc: Crashes if target object raises an error on getting docstring
|
||||
* #10058: autosummary: Imported members are not shown when
|
||||
``autodoc_class_signature = 'separated'``
|
||||
* #9947: i18n: topic directive having a bullet list can't be translatable
|
||||
* #9878: mathjax: MathJax configuration is placed after loading MathJax itself
|
||||
* #9932: napoleon: empty "returns" section is generated even if no description
|
||||
* #9857: Generated RFC links use outdated base url
|
||||
* #9909: HTML, prevent line-wrapping in literal text.
|
||||
* #10061: html theme: Configuration values added by themes are not be able to
|
||||
override from conf.py
|
||||
* #10073: imgconverter: Unnecessary availability check is called for "data" URIs
|
||||
* #9925: LaTeX: prohibit also with ``'xelatex'`` line splitting at dashes of
|
||||
inline and parsed literals
|
||||
* #9944: LaTeX: extra vertical whitespace for some nested declarations
|
||||
* #9940: LaTeX: Multi-function declaration in Python domain has cramped
|
||||
vertical spacing in latexpdf output
|
||||
* #10015: py domain: types under the "typing" module are not hyperlinked defined
|
||||
at info-field-list
|
||||
* #9390: texinfo: Do not emit labels inside footnotes
|
||||
* #9413: xml: Invalid XML was generated when cross referencing python objects
|
||||
* #9979: Error level messages were displayed as warning messages
|
||||
* #10057: Failed to scan documents if the project is placed onto the root
|
||||
directory
|
||||
* #9636: code-block: ``:dedent:`` without argument did strip newlines
|
||||
66
doc/changes/4.5.rst
Normal file
@@ -0,0 +1,66 @@
|
||||
==========
|
||||
Sphinx 4.5
|
||||
==========
|
||||
|
||||
|
||||
Release 4.5.0 (released Mar 28, 2022)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #10112: extlinks: Disable hardcoded links detector by default
|
||||
* #9993, #10177: std domain: Disallow to refer an inline target via
|
||||
:rst:role:`ref` role
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* ``sphinx.ext.napoleon.docstring.GoogleDocstring._qualify_name()``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #10260: Enable ``FORCE_COLOR`` and ``NO_COLOR`` for terminal colouring
|
||||
* #10234: autosummary: Add "autosummary" CSS class to summary tables
|
||||
* #10125: extlinks: Improve suggestion message for a reference having title
|
||||
* #10112: extlinks: Add :confval:`extlinks_detect_hardcoded_links` to enable
|
||||
hardcoded links detector feature
|
||||
* #9494, #9456: html search: Add a config variable
|
||||
:confval:`html_show_search_summary` to enable/disable the search summaries
|
||||
* #9337: HTML theme, add option ``enable_search_shortcuts`` that enables :kbd:`/` as
|
||||
a Quick search shortcut and :kbd:`Esc` shortcut that
|
||||
removes search highlighting.
|
||||
* #10107: i18n: Allow to suppress translation warnings by adding ``#noqa``
|
||||
comment to the tail of each translation message
|
||||
* #10252: C++, support attributes on classes, unions, and enums.
|
||||
* #10253: :rst:role:`pep` role now generates URLs based on `peps.python.org
|
||||
<https://peps.python.org>`_
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #9876: autodoc: Failed to document an imported class that is built from native
|
||||
binary module
|
||||
* #10133: autodoc: Crashed when mocked module is used for type annotation
|
||||
* #10146: autodoc: :confval:`autodoc_default_options` does not support
|
||||
``no-value`` option
|
||||
* #9971: autodoc: TypeError is raised when the target object is annotated by
|
||||
unhashable object
|
||||
* #10205: extlinks: Failed to compile regexp on checking hardcoded links
|
||||
* #10277: html search: Could not search short words (ex. "use")
|
||||
* #9529: LaTeX: named auto numbered footnote (ex. ``[#named]``) that is referred
|
||||
multiple times was rendered to a question mark
|
||||
* #9924: LaTeX: multi-line :rst:dir:`cpp:function` directive has big vertical
|
||||
spacing in Latexpdf
|
||||
* #10158: LaTeX: excessive whitespace since v4.4.0 for undocumented
|
||||
variables/structure members
|
||||
* #10175: LaTeX: named footnote reference is linked to an incorrect footnote if
|
||||
the name is also used in the different document
|
||||
* #10269: manpage: Failed to resolve the title of :rst:role:`ref` cross references
|
||||
* #10179: i18n: suppress "rST localization" warning
|
||||
* #10118: imgconverter: Unnecessary availability check is called for remote URIs
|
||||
* #10181: napoleon: attributes are displayed like class attributes for google
|
||||
style docstrings when :confval:`napoleon_use_ivar` is enabled
|
||||
* #10122: sphinx-build: make.bat does not check the installation of sphinx-build
|
||||
command before showing help
|
||||
191
doc/changes/5.0.rst
Normal file
@@ -0,0 +1,191 @@
|
||||
==========
|
||||
Sphinx 5.0
|
||||
==========
|
||||
|
||||
|
||||
Release 5.0.2 (released Jun 17, 2022)
|
||||
=====================================
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #10523: HTML Theme: Expose the Docutils's version info tuple as a template
|
||||
variable, ``docutils_version_info``. Patch by Adam Turner.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10538: autodoc: Inherited class attribute having docstring is documented even
|
||||
if :confval:`autodoc_inherit_docstring` is disabled
|
||||
* #10509: autosummary: autosummary fails with a shared library
|
||||
* #10497: py domain: Failed to resolve strings in Literal. Patch by Adam Turner.
|
||||
* #10523: HTML Theme: Fix double brackets on citation references in Docutils 0.18+.
|
||||
Patch by Adam Turner.
|
||||
* #10534: Missing CSS for nav.contents in Docutils 0.18+. Patch by Adam Turner.
|
||||
|
||||
Release 5.0.1 (released Jun 03, 2022)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10498: gettext: TypeError is raised when sorting warning messages if a node
|
||||
has no line number. Patch by Adam Turner.
|
||||
* #10493: HTML Theme: :dudir:`topic` directive is rendered incorrectly with
|
||||
Docutils 0.18. Patch by Adam Turner.
|
||||
* #10495: IndexError is raised for a :rst:role:`kbd` role having a separator.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 5.0.0 (released May 30, 2022)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
5.0.0 b1
|
||||
|
||||
* #10164: Support `Docutils 0.18`_. Patch by Adam Turner.
|
||||
|
||||
.. _Docutils 0.18: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-18-2021-10-26
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
5.0.0 b1
|
||||
|
||||
* #10031: autosummary: ``sphinx.ext.autosummary.import_by_name()`` now raises
|
||||
``ImportExceptionGroup`` instead of ``ImportError`` when it failed to import
|
||||
target object. Please handle the exception if your extension uses the
|
||||
function to import Python object. As a workaround, you can disable the
|
||||
behavior via ``grouped_exception=False`` keyword argument until v7.0.
|
||||
* #9962: texinfo: Customizing styles of emphasized text via ``@definfoenclose``
|
||||
command was not supported because the command was deprecated since texinfo 6.8
|
||||
* #2068: :confval:`intersphinx_disabled_reftypes` has changed default value
|
||||
from an empty list to ``['std:doc']`` as avoid too surprising silent
|
||||
intersphinx resolutions.
|
||||
To migrate: either add an explicit inventory name to the references
|
||||
intersphinx should resolve, or explicitly set the value of this configuration
|
||||
variable to an empty list.
|
||||
* #10197: html theme: Reduce ``body_min_width`` setting in basic theme to 360px
|
||||
* #9999: LaTeX: separate terms from their definitions by a CR (refs: #9985)
|
||||
* #10062: Change the default language to ``'en'`` if any language is not set in
|
||||
``conf.py``
|
||||
|
||||
5.0.0 final
|
||||
|
||||
* #10474: :confval:`language` does not accept ``None`` as it value. The default
|
||||
value of ``language`` becomes to ``'en'`` now.
|
||||
Patch by Adam Turner and Takeshi KOMIYA.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
5.0.0 b1
|
||||
|
||||
* #10028: jQuery and underscore.js will no longer be automatically injected into
|
||||
themes from Sphinx 6.0. If you develop a theme or extension that uses the
|
||||
``jQuery``, ``$``, or ``$u`` global objects, you need to update your
|
||||
JavaScript or use the mitigation below.
|
||||
|
||||
To re-add jQuery and underscore.js, you will need to copy ``jquery.js`` and
|
||||
``underscore.js`` from `the Sphinx repository`_ to your ``static`` directory,
|
||||
and add the following to your ``layout.html``:
|
||||
|
||||
.. _the Sphinx repository: https://github.com/sphinx-doc/sphinx/tree/v5.3.0/sphinx/themes/basic/static
|
||||
.. code-block:: html+jinja
|
||||
|
||||
{%- block scripts %}
|
||||
<script src="{{ pathto('_static/jquery.js', resource=True) }}"></script>
|
||||
<script src="{{ pathto('_static/underscore.js', resource=True) }}"></script>
|
||||
{{ super() }}
|
||||
{%- endblock %}
|
||||
|
||||
Patch by Adam Turner.
|
||||
* setuptools integration. The ``build_sphinx`` sub-command for setup.py is
|
||||
marked as deprecated to follow the policy of setuptools team.
|
||||
* The ``locale`` argument of ``sphinx.util.i18n:babel_format_date()`` becomes
|
||||
required
|
||||
* The ``language`` argument of ``sphinx.util.i18n:format_date()`` becomes
|
||||
required
|
||||
* ``sphinx.builders.html.html5_ready``
|
||||
* ``sphinx.io.read_doc()``
|
||||
* ``sphinx.util.docutils.__version_info__``
|
||||
* ``sphinx.util.docutils.is_html5_writer_available()``
|
||||
* ``sphinx.writers.latex.LaTeXWriter.docclasses``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
5.0.0 b1
|
||||
|
||||
* #9075: autodoc: The default value of :confval:`autodoc_typehints_format` is
|
||||
changed to ``'smart'``. It will suppress the leading module names of
|
||||
typehints (ex. ``io.StringIO`` -> ``StringIO``).
|
||||
* #8417: autodoc: ``:inherited-members:`` option now takes multiple classes. It
|
||||
allows to suppress inherited members of several classes on the module at once
|
||||
by specifying the option to :rst:dir:`automodule` directive
|
||||
* #9792: autodoc: Add new option for ``autodoc_typehints_description_target`` to
|
||||
include undocumented return values but not undocumented parameters.
|
||||
* #10285: autodoc: singledispatch functions having typehints are not documented
|
||||
* autodoc: :confval:`autodoc_typehints_format` now also applies to attributes,
|
||||
data, properties, and type variable bounds.
|
||||
* #10258: autosummary: Recognize a documented attribute of a module as
|
||||
non-imported
|
||||
* #10028: Removed internal usages of JavaScript frameworks (jQuery and
|
||||
underscore.js) and modernised ``doctools.js`` and ``searchtools.js`` to
|
||||
EMCAScript 2018. Patch by Adam Turner.
|
||||
* #10302: C++, add support for conditional expressions (``?:``).
|
||||
* #5157, #10251: Inline code is able to be highlighted via :dudir:`role`
|
||||
directive
|
||||
* #10337: Make sphinx-build faster by caching Publisher object during build.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
5.0.0 b1
|
||||
|
||||
* #10200: apidoc: Duplicated submodules are shown for modules having both .pyx
|
||||
and .so files. Patch by Adam Turner and Takeshi KOMIYA.
|
||||
* #10279: autodoc: Default values for keyword only arguments in overloaded
|
||||
functions are rendered as a string literal
|
||||
* #10280: autodoc: :confval:`autodoc_docstring_signature` unexpectedly generates
|
||||
return value typehint for constructors if docstring has multiple signatures
|
||||
* #10266: autodoc: :confval:`autodoc_preserve_defaults` does not work for
|
||||
mixture of keyword only arguments with/without defaults
|
||||
* #10310: autodoc: class methods are not documented when decorated with mocked
|
||||
function
|
||||
* #10305: autodoc: Failed to extract optional forward-ref'ed typehints correctly
|
||||
via :confval:`autodoc_type_aliases`
|
||||
* #10421: autodoc: :confval:`autodoc_preserve_defaults` doesn't work on class
|
||||
methods
|
||||
* #10214: html: invalid language tag was generated if :confval:`language`
|
||||
contains a country code (ex. zh_CN)
|
||||
* #9974: html: Updated jQuery version from 3.5.1 to 3.6.0
|
||||
* #10236: html search: objects are duplicated in search result
|
||||
* #9962: texinfo: Deprecation message for ``@definfoenclose`` command on
|
||||
building texinfo document
|
||||
* #10000: LaTeX: glossary terms with common definition are rendered with
|
||||
too much vertical whitespace
|
||||
* #10188: LaTeX: alternating multiply referred footnotes produce a ``?`` in
|
||||
pdf output
|
||||
* #10363: LaTeX: make ``'howto'`` title page rule use ``\linewidth`` for
|
||||
compatibility with usage of a ``twocolumn`` class option
|
||||
* #10318: ``:prepend:`` option of :rst:dir:`literalinclude` directive does not
|
||||
work with ``:dedent:`` option
|
||||
|
||||
5.0.0 final
|
||||
|
||||
* #9575: autodoc: The annotation of return value should not be shown when
|
||||
``autodoc_typehints="description"``
|
||||
* #9648: autodoc: ``*args`` and ``**kwargs`` entries are duplicated when
|
||||
``autodoc_typehints="description"``
|
||||
* #8180: autodoc: Docstring metadata ignored for attributes
|
||||
* #10443: epub: EPUB builder can't detect the mimetype of .webp file
|
||||
* #10104: gettext: Duplicated locations are shown if 3rd party extension does
|
||||
not provide correct information
|
||||
* #10456: py domain: ``:meta:`` fields are displayed if docstring contains two
|
||||
or more meta-field
|
||||
* #9096: sphinx-build: the value of progress bar for parallel build is wrong
|
||||
* #10110: sphinx-build: exit code is not changed when error is raised on
|
||||
builder-finished event
|
||||
88
doc/changes/5.1.rst
Normal file
@@ -0,0 +1,88 @@
|
||||
==========
|
||||
Sphinx 5.1
|
||||
==========
|
||||
|
||||
|
||||
Release 5.1.1 (released Jul 26, 2022)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10701: Fix ValueError in the new ``deque`` based ``sphinx.ext.napoleon``
|
||||
iterator implementation.
|
||||
* #10702: Restore compatibility with third-party builders.
|
||||
|
||||
Release 5.1.0 (released Jul 24, 2022)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #10656: Support `Docutils 0.19`_. Patch by Adam Turner.
|
||||
|
||||
.. _Docutils 0.19: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-19-2022-07-05
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* #10467: Deprecated ``sphinx.util.stemmer`` in favour of ``snowballstemmer``.
|
||||
Patch by Adam Turner.
|
||||
* #9856: Deprecated ``sphinx.ext.napoleon.iterators``.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #10444: html theme: Allow specifying multiple CSS files through the ``stylesheet``
|
||||
setting in ``theme.conf`` or by setting ``html_style`` to an iterable of strings.
|
||||
* #10366: std domain: Add support for emphasising placeholders in :rst:dir:`option`
|
||||
directives through a new :confval:`option_emphasise_placeholders` configuration
|
||||
option.
|
||||
* #10439: std domain: Use the repr of some variables when displaying warnings,
|
||||
making whitespace issues easier to identify.
|
||||
* #10571: quickstart: Reduce content in the generated ``conf.py`` file. Patch by
|
||||
Pradyun Gedam.
|
||||
* #10648: LaTeX: CSS-named-alike additional :ref:`'sphinxsetup' <latexsphinxsetup>`
|
||||
keys allow to configure four separate border-widths, four paddings, four
|
||||
corner radii, a shadow (possibly inset), colours for border, background, shadow
|
||||
for each of the code-block, topic, attention, caution, danger, error and warning
|
||||
directives.
|
||||
* #10655: LaTeX: Explain non-standard encoding in LatinRules.xdy
|
||||
* #10599: HTML Theme: Wrap consecutive footnotes in an ``<aside>`` element when
|
||||
using Docutils 0.18 or later, to allow for easier styling. This matches the
|
||||
behaviour introduced in Docutils 0.19. Patch by Adam Turner.
|
||||
* #10518: config: Add ``include_patterns`` as the opposite of ``exclude_patterns``.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10594: HTML Theme: field term colons are doubled if using Docutils 0.18+
|
||||
* #10596: Build failure if Docutils version is 0.18 (not 0.18.1) due
|
||||
to missing ``Node.findall()``
|
||||
* #10506: LaTeX: build error if highlighting inline code role in figure caption
|
||||
(refs: #10251)
|
||||
* #10634: Make -P (pdb) option work better with exceptions triggered from events
|
||||
* #10550: py domain: Fix spurious whitespace in unparsing various operators (``+``,
|
||||
``-``, ``~``, and ``**``). Patch by Adam Turner (refs: #10551).
|
||||
* #10460: logging: Always show node source locations as absolute paths.
|
||||
* HTML Search: HTML tags are displayed as a part of object name
|
||||
* HTML Search: search snippets should not be folded
|
||||
* HTML Search: Minor errors are emitted on fetching search snippets
|
||||
* HTML Search: The markers for header links are shown in the search result
|
||||
* #10520: HTML Theme: Fix use of sidebar classes in ``agogo.css_t``.
|
||||
* #6679: HTML Theme: Fix inclusion of hidden toctrees in the agogo theme.
|
||||
* #10566: HTML Theme: Fix enable_search_shortcuts does not work
|
||||
* #8686: LaTeX: Text can fall out of code-block at end of page and leave artifact
|
||||
on next page
|
||||
* #10633: LaTeX: user injected ``\color`` commands in topic or admonition boxes may
|
||||
cause color leaks in PDF due to upstream `framed.sty
|
||||
<https://ctan.org/pkg/framed>`_ bug
|
||||
* #10638: LaTeX: framed coloured boxes in highlighted code (e.g. highlighted
|
||||
diffs using Pygments style ``'manni'``) inherit thickness of code-block frame
|
||||
* #10647: LaTeX: Only one ``\label`` is generated for ``desc_signature`` node
|
||||
even if it has multiple node IDs
|
||||
* #10579: i18n: UnboundLocalError is raised on translating raw directive
|
||||
* #9577, #10088: py domain: Fix warning for duplicate Python references when
|
||||
using ``:any:`` and autodoc.
|
||||
* #10548: HTML Search: fix minor summary issues.
|
||||
78
doc/changes/5.2.rst
Normal file
@@ -0,0 +1,78 @@
|
||||
==========
|
||||
Sphinx 5.2
|
||||
==========
|
||||
|
||||
|
||||
Release 5.2.3 (released Sep 30, 2022)
|
||||
=====================================
|
||||
|
||||
* #10878: Fix base64 image embedding in ``sphinx.ext.imgmath``
|
||||
* #10886: Add ``:nocontentsentry:`` flag and global domain table of contents
|
||||
entry control option. Patch by Adam Turner
|
||||
|
||||
Release 5.2.2 (released Sep 27, 2022)
|
||||
=====================================
|
||||
|
||||
* #10872: Restore link targets for autodoc modules to the top of content.
|
||||
Patch by Dominic Davis-Foster.
|
||||
|
||||
Release 5.2.1 (released Sep 25, 2022)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10861: Always normalise the ``pycon3`` lexer to ``pycon``.
|
||||
* Fix using ``sphinx.ext.autosummary`` with modules containing titles in the
|
||||
module-level docstring.
|
||||
|
||||
Release 5.2.0.post0 (released Sep 24, 2022)
|
||||
===========================================
|
||||
|
||||
* Recreated source tarballs for Debian maintainers.
|
||||
|
||||
Release 5.2.0 (released Sep 24, 2022)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #10356: Sphinx now uses declarative metadata with ``pyproject.toml`` to
|
||||
create packages, using PyPA's ``flit`` project as a build backend. Patch by
|
||||
Adam Turner.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* #10843: Support for HTML 4 output. Patch by Adam Turner.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #10738: napoleon: Add support for docstring types using 'of', like
|
||||
``type of type``. Example: ``tuple of int``.
|
||||
* #10286: C++, support requires clauses not just between the template
|
||||
parameter lists and the declaration.
|
||||
* #10755: linkcheck: Check the source URL of raw directives that use the ``url``
|
||||
option.
|
||||
* #10781: Allow :rst:role:`ref` role to be used with definitions and fields.
|
||||
* #10717: HTML Search: Increase priority for full title and
|
||||
subtitle matches in search results
|
||||
* #10718: HTML Search: Save search result score to the HTML element for debugging
|
||||
* #10673: Make toctree accept 'genindex', 'modindex' and 'search' docnames
|
||||
* #6316, #10804: Add domain objects to the table of contents. Patch by Adam Turner
|
||||
* #6692: HTML Search: Include explicit :rst:dir:`index` directive index entries
|
||||
in the search index and search results. Patch by Adam Turner
|
||||
* #10816: imgmath: Allow embedding images in HTML as base64
|
||||
* #10854: HTML Search: Use browser localstorage for highlight control, stop
|
||||
storing highlight parameters in URL query strings. Patch by Adam Turner.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10723: LaTeX: 5.1.0 has made the 'sphinxsetup' ``verbatimwithframe=false``
|
||||
become without effect.
|
||||
* #10257: C++, ensure consistent non-specialization template argument
|
||||
representation.
|
||||
* #10729: C++, fix parsing of certain non-type template parameter packs.
|
||||
* #10715: Revert #10520: "Fix" use of sidebar classes in ``agogo.css_t``
|
||||
19
doc/changes/5.3.rst
Normal file
@@ -0,0 +1,19 @@
|
||||
==========
|
||||
Sphinx 5.3
|
||||
==========
|
||||
|
||||
|
||||
Release 5.3.0 (released Oct 16, 2022)
|
||||
=====================================
|
||||
|
||||
* #10759: LaTeX: add :confval:`latex_table_style` and support the
|
||||
``'booktabs'``, ``'borderless'``, and ``'colorrows'`` styles.
|
||||
(thanks to Stefan Wiehler for initial pull requests #6666, #6671)
|
||||
* #10840: One can cross-reference including an option value like
|
||||
``:option:`--module=foobar```, ``:option:`--module[=foobar]```,
|
||||
or ``:option:`--module foobar```.
|
||||
Patch by Martin Liska.
|
||||
* #10881: autosectionlabel: Record the generated section label to the debug log.
|
||||
* #10268: Correctly URI-escape image filenames.
|
||||
* #10887: domains: Allow sections in all the content of all object description
|
||||
directives (e.g. :rst:dir:`py:function`). Patch by Adam Turner
|
||||
80
doc/changes/6.0.rst
Normal file
@@ -0,0 +1,80 @@
|
||||
==========
|
||||
Sphinx 6.0
|
||||
==========
|
||||
|
||||
|
||||
Release 6.0.1 (released Jan 05, 2023)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* Require Pygments 2.13 or later.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10944: imgmath: Fix resolving image paths for files in nested folders.
|
||||
|
||||
Release 6.0.0 (released Dec 29, 2022)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #10468: Drop Python 3.6 support
|
||||
* #10470: Drop Python 3.7, Docutils 0.14, Docutils 0.15, Docutils 0.16, and
|
||||
Docutils 0.17 support. Patch by Adam Turner
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #7405: Removed the jQuery and underscore.js JavaScript frameworks.
|
||||
|
||||
These frameworks are no longer be automatically injected into themes from
|
||||
Sphinx 6.0. If you develop a theme or extension that uses the
|
||||
``jQuery``, ``$``, or ``$u`` global objects, you need to update your
|
||||
JavaScript to modern standards, or use the mitigation below.
|
||||
|
||||
The first option is to use the sphinxcontrib.jquery_ extension, which has been
|
||||
developed by the Sphinx team and contributors. To use this, add
|
||||
``sphinxcontrib.jquery`` to the ``extensions`` list in ``conf.py``, or call
|
||||
``app.setup_extension("sphinxcontrib.jquery")`` if you develop a Sphinx theme
|
||||
or extension.
|
||||
|
||||
The second option is to manually ensure that the frameworks are present.
|
||||
To re-add jQuery and underscore.js, you will need to copy ``jquery.js`` and
|
||||
``underscore.js`` from `the Sphinx repository`_ to your ``static`` directory,
|
||||
and add the following to your ``layout.html``:
|
||||
|
||||
.. _the Sphinx repository: https://github.com/sphinx-doc/sphinx/tree/v5.3.0/sphinx/themes/basic/static
|
||||
.. code-block:: html+jinja
|
||||
|
||||
{%- block scripts %}
|
||||
<script src="{{ pathto('_static/jquery.js', resource=True) }}"></script>
|
||||
<script src="{{ pathto('_static/underscore.js', resource=True) }}"></script>
|
||||
{{ super() }}
|
||||
{%- endblock %}
|
||||
|
||||
.. _sphinxcontrib.jquery: https://github.com/sphinx-contrib/jquery/
|
||||
|
||||
Patch by Adam Turner.
|
||||
* #10471, #10565: Removed deprecated APIs scheduled for removal in Sphinx 6.0. See
|
||||
:ref:`dev-deprecated-apis` for details. Patch by Adam Turner.
|
||||
* #10901: C Domain: Remove support for parsing pre-v3 style type directives and
|
||||
roles. Also remove associated configuration variables ``c_allow_pre_v3`` and
|
||||
``c_warn_on_allowed_pre_v3``. Patch by Adam Turner.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #10924: LaTeX: adopt better looking defaults for tables and code-blocks.
|
||||
See :confval:`latex_table_style` and the ``pre_border-radius`` and
|
||||
``pre_background-TeXcolor`` :ref:`additionalcss` for the former defaults
|
||||
and how to re-enact them if desired.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10984: LaTeX: Document :confval:`latex_additional_files` behavior for files
|
||||
with ``.tex`` extension.
|
||||
106
doc/changes/6.1.rst
Normal file
@@ -0,0 +1,106 @@
|
||||
==========
|
||||
Sphinx 6.1
|
||||
==========
|
||||
|
||||
|
||||
Release 6.1.3 (released Jan 10, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11116: Reverted to previous Sphinx 5 node copying method
|
||||
* #11117: Reverted changes to parallel image processing from Sphinx 6.1.0
|
||||
* #11119: Suppress ``ValueError`` in the ``linkcheck`` builder
|
||||
|
||||
Release 6.1.2 (released Jan 07, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11101: LaTeX: ``div.topic_padding`` key of sphinxsetup documented at 5.1.0 was
|
||||
implemented with name ``topic_padding``
|
||||
* #11099: LaTeX: ``shadowrule`` key of sphinxsetup causes PDF build to crash
|
||||
since Sphinx 5.1.0
|
||||
* #11096: LaTeX: ``shadowsize`` key of sphinxsetup causes PDF build to crash
|
||||
since Sphinx 5.1.0
|
||||
* #11095: LaTeX: shadow of :dudir:`topic` and :dudir:`contents <table-of-contents>`
|
||||
boxes not in page margin since Sphinx 5.1.0
|
||||
* #11100: Fix copying images when running under parallel mode.
|
||||
|
||||
Release 6.1.1 (released Jan 05, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11091: Fix ``util.nodes.apply_source_workaround`` for ``literal_block`` nodes
|
||||
with no source information in the node or the node's parents.
|
||||
|
||||
Release 6.1.0 (released Jan 05, 2023)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* Adopted the `Ruff`_ code linter.
|
||||
|
||||
.. _Ruff: https://github.com/charliermarsh/ruff
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #10979: gettext: Removed support for pluralisation in ``get_translation``.
|
||||
This was unused and complicated other changes to ``sphinx.locale``.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* ``sphinx.util`` functions:
|
||||
|
||||
* Renamed ``sphinx.util.typing.stringify()``
|
||||
to ``sphinx.util.typing.stringify_annotation()``
|
||||
* Moved ``sphinx.util.xmlname_checker()``
|
||||
to ``sphinx.builders.epub3._XML_NAME_PATTERN``
|
||||
|
||||
Moved to ``sphinx.util.display``:
|
||||
|
||||
* ``sphinx.util.status_iterator``
|
||||
* ``sphinx.util.display_chunk``
|
||||
* ``sphinx.util.SkipProgressMessage``
|
||||
* ``sphinx.util.progress_message``
|
||||
|
||||
Moved to ``sphinx.util.http_date``:
|
||||
|
||||
* ``sphinx.util.epoch_to_rfc1123``
|
||||
* ``sphinx.util.rfc1123_to_epoch``
|
||||
|
||||
Moved to ``sphinx.util.exceptions``:
|
||||
|
||||
* ``sphinx.util.save_traceback``
|
||||
* ``sphinx.util.format_exception_cut_frames``
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* Cache doctrees in the build environment during the writing phase.
|
||||
* Make all writing phase tasks support parallel execution.
|
||||
* #11072: Use PEP 604 (``X | Y``) display conventions for ``typing.Optional``
|
||||
and ``typing.Optional`` types within the Python domain and autodoc.
|
||||
* #10700: autodoc: Document ``typing.NewType()`` types as classes rather than
|
||||
'data'.
|
||||
* Cache doctrees between the reading and writing phases.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #10962: HTML: Fix the multi-word key name lookup table.
|
||||
* Fixed support for Python 3.12 alpha 3 (changes in the ``enum`` module).
|
||||
* #11069: HTML Theme: Removed outdated "shortcut" link relation keyword.
|
||||
* #10952: Properly terminate parallel processes on programme interruption.
|
||||
* #10988: Speed up ``TocTree.resolve()`` through more efficient copying.
|
||||
* #6744: LaTeX: support for seealso directive should be via an environment
|
||||
to allow styling.
|
||||
* #11074: LaTeX: Can't change sphinxnote to use sphinxheavybox starting with
|
||||
5.1.0
|
||||
112
doc/changes/6.2.rst
Normal file
@@ -0,0 +1,112 @@
|
||||
==========
|
||||
Sphinx 6.2
|
||||
==========
|
||||
|
||||
|
||||
Release 6.2.1 (released Apr 25, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11355: Revert the default type of :confval:`nitpick_ignore` and
|
||||
:confval:`nitpick_ignore_regex` to ``list``.
|
||||
|
||||
Release 6.2.0 (released Apr 23, 2023)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* Require Docutils 0.18.1 or greater.
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* LaTeX: removal of some internal TeX ``\dimen`` registers (not previously
|
||||
publicly documented) as per 5.1.0 code comments in ``sphinx.sty``:
|
||||
``\sphinxverbatimsep``, ``\sphinxverbatimborder``, ``\sphinxshadowsep``,
|
||||
``\sphinxshadowsize``, and ``\sphinxshadowrule``. (refs: #11105)
|
||||
* Remove ``.egg`` support from pycode ``ModuleAnalyser``; Python eggs are a
|
||||
now-obsolete binary distribution format
|
||||
* #11089: Remove deprecated code in ``sphinx.builders.linkcheck``.
|
||||
Patch by Daniel Eades
|
||||
* Remove internal-only ``sphinx.locale.setlocale``
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* #11247: Deprecate the legacy ``intersphinx_mapping`` format
|
||||
* ``sphinx.util.osutil.cd`` is deprecated in favour of ``contextlib.chdir``.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #11277: :rst:dir:`autoproperty` allows the return type to be specified as
|
||||
a type comment (e.g., ``# type: () -> int``). Patch by Bénédikt Tran
|
||||
* #10811: Autosummary: extend ``__all__`` to imported members for template rendering
|
||||
when option ``autosummary_ignore_module_all`` is set to ``False``. Patch by
|
||||
Clement Pinard
|
||||
* #11147: Add a ``content_offset`` parameter to ``nested_parse_with_titles()``,
|
||||
allowing for correct line numbers during nested parsing.
|
||||
Patch by Jeremy Maitin-Shepard
|
||||
* Update to Unicode CLDR 42
|
||||
* Add a ``--jobs`` synonym for ``-j``. Patch by Hugo van Kemenade
|
||||
* LaTeX: a command ``\sphinxbox`` for styling text elements with a (possibly
|
||||
rounded) box, optional background color and shadow, has been added.
|
||||
See :ref:`sphinxbox`. (refs: #11224)
|
||||
* LaTeX: add ``\sphinxstylenotetitle``, ..., ``\sphinxstylewarningtitle``, ...,
|
||||
for an extra layer of mark-up freeing up ``\sphinxstrong`` for other uses.
|
||||
See :ref:`latex-macros`. (refs: #11267)
|
||||
* LaTeX: :dudir:`note`, :dudir:`hint`, :dudir:`important` and :dudir:`tip` can
|
||||
now each be styled as the other admonitions, i.e. possibly with a background
|
||||
color, individual border widths and paddings, possibly rounded corners, and
|
||||
optional shadow. See :ref:`additionalcss`. (refs: #11234)
|
||||
* LaTeX: admonitions and :dudir:`topic` (and
|
||||
:dudir:`contents <table-of-contents>`) directives, and not only
|
||||
:rst:dir:`code-block`, support ``box-decoration-break=slice``.
|
||||
* LaTeX: let rounded boxes support up to 4 distinct border-widths (refs: #11243)
|
||||
* LaTeX: new options ``noteTextColor``, ``noteTeXextras`` et al.
|
||||
See :ref:`additionalcss`.
|
||||
* LaTeX: support elliptical corners in rounded boxes. (refs: #11254)
|
||||
* #11150: Include source location in highlighting warnings, when lexing fails.
|
||||
Patch by Jeremy Maitin-Shepard
|
||||
* #11281: Support for :confval:`imgmath_latex` ``= 'tectonic'`` or
|
||||
``= 'xelatex'``. Patch by Dimitar Dimitrov
|
||||
* #11109, #9643: Add :confval:`python_display_short_literal_types` option for
|
||||
condensed rendering of ``Literal`` types.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11079: LaTeX: figures with align attribute may disappear and strangely impact
|
||||
following lists
|
||||
* #11093: LaTeX: fix "multiply-defined references" PDF build warnings when one or
|
||||
more reST labels directly precede an :rst:dir:`py:module` or :rst:dir:`automodule`
|
||||
directive. Patch by Bénédikt Tran (picnixz)
|
||||
* #11110: LaTeX: Figures go missing from latex pdf if their files have the same
|
||||
base name and they use a post transform. Patch by aaron-cooper
|
||||
* LaTeX: fix potential color leak from shadow to border of rounded boxes, if
|
||||
shadow color is set but border color is not
|
||||
* LaTeX: fix unintended 1pt upwards vertical shift of code blocks frames
|
||||
respective to contents (when using rounded corners)
|
||||
* #11235: LaTeX: added ``\color`` in topic (or admonition) contents may cause color
|
||||
leak to the shadow and border at a page break
|
||||
* #11264: LaTeX: missing space before colon after "Voir aussi" for :rst:dir:`seealso`
|
||||
directive in French
|
||||
* #11268: LaTeX: longtable with left alignment breaks out of current list
|
||||
indentation context in PDF. Thanks to picnixz.
|
||||
* #11274: LaTeX: external links are not properly escaped for ``\sphinxupquote``
|
||||
compatibility
|
||||
* #11147: Fix source file/line number info in object description content and in
|
||||
other uses of ``nested_parse_with_titles``. Patch by Jeremy Maitin-Shepard.
|
||||
* #11192: Restore correct parallel search index building.
|
||||
Patch by Jeremy Maitin-Shepard
|
||||
* Use the new Transifex ``tx`` client
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
* Fail testing when any Python warnings are emitted
|
||||
* Migrate remaining ``unittest.TestCase`` style test functions to pytest style
|
||||
* Remove tests that rely on setuptools
|
||||
52
doc/changes/7.0.rst
Normal file
@@ -0,0 +1,52 @@
|
||||
==========
|
||||
Sphinx 7.0
|
||||
==========
|
||||
|
||||
|
||||
Release 7.0.1 (released May 12, 2023)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #11411: Support `Docutils 0.20`_. Patch by Adam Turner.
|
||||
|
||||
.. _Docutils 0.20: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-20-2023-05-04
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11418: Clean up remaining references to ``sphinx.setup_command``
|
||||
following the removal of support for setuptools.
|
||||
Patch by Willem Mulder.
|
||||
|
||||
Release 7.0.0 (released Apr 29, 2023)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* #11359: Remove long-deprecated aliases for ``MecabSplitter`` and
|
||||
``DefaultSplitter`` in ``sphinx.search.ja``.
|
||||
* #11360: Remove deprecated ``make_old_id`` functions in domain object
|
||||
description classes.
|
||||
* #11363: Remove the Setuptools integration (``build_sphinx`` hook in
|
||||
``setup.py``).
|
||||
* #11364: Remove deprecated ``sphinx.ext.napoleon.iterators`` module.
|
||||
* #11365: Remove support for the ``jsdump`` format in ``sphinx.search``.
|
||||
* #11366: Make ``locale`` a required argument to
|
||||
``sphinx.util.i18n.format_date()``.
|
||||
* #11370: Remove deprecated ``sphinx.util.stemmer`` module.
|
||||
* #11371: Remove deprecated ``sphinx.pycode.ast.parse()`` function.
|
||||
* #11372: Remove deprecated ``sphinx.io.read_doc()`` function.
|
||||
* #11373: Removed deprecated ``sphinx.util.get_matching_files()`` function.
|
||||
* #11378: Remove deprecated ``sphinx.util.docutils.is_html5_writer_available()``
|
||||
function.
|
||||
* #11379: Make the ``env`` argument to ``Builder`` subclasses required.
|
||||
* #11380: autosummary: Always emit grouped import exceptions.
|
||||
* #11381: Remove deprecated ``style`` key for HTML templates.
|
||||
* #11382: Remove deprecated ``sphinx.writers.latex.LaTeXTranslator.docclasses``
|
||||
attribute.
|
||||
* #11383: Remove deprecated ``sphinx.builders.html.html5_ready`` and
|
||||
``sphinx.builders.html.HTMLTranslator`` attributes.
|
||||
* #11385: Remove support for HTML 4 output.
|
||||
114
doc/changes/7.1.rst
Normal file
@@ -0,0 +1,114 @@
|
||||
==========
|
||||
Sphinx 7.1
|
||||
==========
|
||||
|
||||
|
||||
Release 7.1.2 (released Aug 02, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11542: linkcheck: Properly respect :confval:`linkcheck_anchors`
|
||||
and do not spuriously report failures to validate anchors.
|
||||
Patch by James Addison.
|
||||
|
||||
Release 7.1.1 (released Jul 27, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11514: Fix ``SOURCE_DATE_EPOCH`` in multi-line copyright footer.
|
||||
Patch by Bénédikt Tran.
|
||||
|
||||
Release 7.1.0 (released Jul 24, 2023)
|
||||
=====================================
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
* Releases are no longer signed, given the `change in PyPI policy`_.
|
||||
|
||||
.. _change in PyPI policy: https://blog.pypi.org/posts/2023-05-23-removing-pgp/
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* #11412: Emit warnings on using a deprecated Python-specific index entry type
|
||||
(namely, ``module``, ``keyword``, ``operator``, ``object``, ``exception``,
|
||||
``statement``, and ``builtin``) in the :rst:dir:`index` directive, and
|
||||
set the removal version to Sphinx 9. Patch by Adam Turner.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #11415: Add a checksum to JavaScript and CSS asset URIs included within
|
||||
generated HTML, using the CRC32 algorithm.
|
||||
* :meth:`~sphinx.application.Sphinx.require_sphinx` now allows the version
|
||||
requirement to be specified as ``(major, minor)``.
|
||||
* #11011: Allow configuring a line-length limit for object signatures, via
|
||||
:confval:`maximum_signature_line_length` and the domain-specific variants.
|
||||
If the length of the signature (in characters) is greater than the configured
|
||||
limit, each parameter in the signature will be split to its own logical line.
|
||||
This behaviour may also be controlled by options on object description
|
||||
directives, for example :rst:dir:`py:function:single-line-parameter-list`.
|
||||
Patch by Thomas Louf, Adam Turner, and Jean-François B.
|
||||
* #10983: Support for multiline copyright statements in the footer block.
|
||||
Patch by Stefanie Molin
|
||||
* ``sphinx.util.display.status_iterator`` now clears the current line
|
||||
with ANSI control codes, rather than overprinting with space characters.
|
||||
* #11431: linkcheck: Treat SSL failures as broken links.
|
||||
Patch by James Addison.
|
||||
* #11157: Keep the ``translated`` attribute on translated nodes.
|
||||
* #11451: Improve the traceback displayed when using :option:`sphinx-build -T`
|
||||
in parallel builds. Patch by Bénédikt Tran
|
||||
* #11324: linkcheck: Use session-basd HTTP requests.
|
||||
* #11438: Add support for the :rst:dir:`py:class` and :rst:dir:`py:function`
|
||||
directives for PEP 695 (generic classes and functions declarations) and
|
||||
PEP 696 (default type parameters). Multi-line support (#11011) is enabled
|
||||
for type parameters list and can be locally controlled on object description
|
||||
directives, e.g., :rst:dir:`py:function:single-line-type-parameter-list`.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11484: linkcheck: Allow HTML anchors to be ignored on a per-URL basis
|
||||
via :confval:`linkcheck_anchors_ignore_for_url` while
|
||||
still checking the validity of the page itself.
|
||||
Patch by Bénédikt Tran
|
||||
* #1246: Add translation progress statistics and inspection support,
|
||||
via a new substitution (``|translation progress|``) and a new
|
||||
configuration variable (:confval:`translation_progress_classes`).
|
||||
These enable determining the percentage of translated elements within
|
||||
a document, and the remaining translated and untranslated elements.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Restored the ``footnote-reference`` class that has been removed in
|
||||
the latest (unreleased) version of Docutils.
|
||||
* #11486: Use :rfc:`8081` font file MIME types in the EPUB builder.
|
||||
Using the correct MIME type will prevent warnings from ``epubcheck``
|
||||
and will generate a valid EPUB.
|
||||
* #11435: Use microsecond-resolution timestamps for outdated file detection
|
||||
in ``BuildEnvironment.get_outdated_files``.
|
||||
* #11437: Top-level headings starting with a reStructuredText role
|
||||
now render properly when :confval:`rst_prolog` is set.
|
||||
Previously, a file starting with the below would have
|
||||
improperly rendered due to where the prologue text
|
||||
was inserted into the document.
|
||||
|
||||
.. code:: rst
|
||||
|
||||
:mod:`lobster` -- The lobster module
|
||||
====================================
|
||||
|
||||
...
|
||||
|
||||
Patch by Bénédikt Tran.
|
||||
* #11337: Fix a ``MemoryError`` in ``sphinx.ext.intersphinx`` when using ``None``
|
||||
or ``typing.*`` as inline type references. Patch by Bénédikt Tran (picnixz)
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
* #11345: Always delete ``docutils.conf`` in test directories when running
|
||||
``SphinxTestApp.cleanup()``.
|
||||
207
doc/changes/7.2.rst
Normal file
@@ -0,0 +1,207 @@
|
||||
==========
|
||||
Sphinx 7.2
|
||||
==========
|
||||
|
||||
|
||||
Release 7.2.6 (released Sep 13, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11679: Add the :envvar:`!SPHINX_AUTODOC_RELOAD_MODULES` environment variable,
|
||||
which if set reloads modules when using autodoc with ``TYPE_CHECKING = True``.
|
||||
Patch by Matt Wozniski and Adam Turner.
|
||||
* #11679: Use :py:func:`importlib.reload` to reload modules in autodoc.
|
||||
Patch by Matt Wozniski and Adam Turner.
|
||||
|
||||
Release 7.2.5 (released Aug 30, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11645: Fix a regression preventing autodoc from importing modules within
|
||||
packages that make use of ``if typing.TYPE_CHECKING:`` to guard circular
|
||||
imports needed by type checkers.
|
||||
Patch by Matt Wozniski.
|
||||
* #11634: Fixed inheritance diagram relative link resolution
|
||||
for sibling files in a subdirectory.
|
||||
Patch by Albert Shih.
|
||||
* #11659: Allow ``?config=...`` in :confval:`mathjax_path`.
|
||||
* #11654: autodoc: Fail with a more descriptive error message
|
||||
when an object claims to be an instance of ``type``,
|
||||
but is not a class.
|
||||
Patch by James Braza.
|
||||
* 11620: Cease emitting :event:`source-read` events for files read via
|
||||
the :dudir:`include` directive.
|
||||
* 11620: Add a new :event:`include-read` for observing and transforming
|
||||
the content of included files via the :dudir:`include` directive.
|
||||
* #11627: Restore support for copyright lines of the form ``YYYY``
|
||||
when ``SOURCE_DATE_EPOCH`` is set.
|
||||
|
||||
Release 7.2.4 (released Aug 28, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11618: Fix a regression in the MoveModuleTargets transform,
|
||||
introduced in #10478 (#9662).
|
||||
* #11649: linkcheck: Resolve hanging tests for timezones west of London
|
||||
and incorrect conversion from UTC to offsets from the UNIX epoch.
|
||||
Patch by Dmitry Shachnev and Adam Turner.
|
||||
|
||||
Release 7.2.3 (released Aug 23, 2023)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #11576: Require sphinxcontrib-serializinghtml 1.1.9.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Fix regression in ``autodoc.Documenter.parse_name()``.
|
||||
* Fix regression in JSON serialisation.
|
||||
* #11543: autodoc: Support positional-only parameters in ``classmethod`` methods
|
||||
when ``autodoc_preserve_defaults`` is ``True``.
|
||||
* Restore support string methods on path objects.
|
||||
This is deprecated and will be removed in Sphinx 8.
|
||||
Use :py:func:`os.fspath` to convert :py:class:`~pathlib.Path` objects to strings,
|
||||
or :py:class:`~pathlib.Path`'s methods to work with path objects.
|
||||
|
||||
Release 7.2.2 (released Aug 17, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Fix the signature of the ``StateMachine.insert_input()`` patch,
|
||||
for when calling with keyword arguments.
|
||||
* Fixed membership testing (``in``) for the :py:class:`str` interface
|
||||
of the asset classes (``_CascadingStyleSheet`` and ``_JavaScript``),
|
||||
which several extensions relied upon.
|
||||
* Fixed a type error in ``SingleFileHTMLBuilder._get_local_toctree``,
|
||||
``includehidden`` may be passed as a string or a boolean.
|
||||
* Fix ``:noindex:`` for ``PyModule`` and ``JSModule``.
|
||||
|
||||
Release 7.2.1 (released Aug 17, 2023)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Restored the the :py:class:`str` interface of the asset classes
|
||||
(``_CascadingStyleSheet`` and ``_JavaScript``),
|
||||
which several extensions relied upon.
|
||||
This will be removed in Sphinx 9.
|
||||
* Restored calls to ``Builder.add_{css,js}_file()``,
|
||||
which several extensions relied upon.
|
||||
* Restored the private API ``TocTree.get_toctree_ancestors()``,
|
||||
which several extensions relied upon.
|
||||
|
||||
Release 7.2.0 (released Aug 17, 2023)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #11511: Drop Python 3.8 support.
|
||||
* #11576: Require Pygments 2.14 or later.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* #11512: Deprecate ``sphinx.util.md5`` and ``sphinx.util.sha1``.
|
||||
Use ``hashlib`` instead.
|
||||
* #11526: Deprecate ``sphinx.testing.path``.
|
||||
Use ``os.path`` or ``pathlib`` instead.
|
||||
* #11528: Deprecate ``sphinx.util.split_index_msg`` and ``sphinx.util.split_into``.
|
||||
Use ``sphinx.util.index_entries.split_index_msg`` instead.
|
||||
* Deprecate ``sphinx.builders.html.Stylesheet``
|
||||
and ``sphinx.builders.html.Javascript``.
|
||||
Use ``sphinx.application.Sphinx.add_css_file()``
|
||||
and ``sphinx.application.Sphinx.add_js_file()`` instead.
|
||||
* #11582: Deprecate ``sphinx.builders.html.StandaloneHTMLBuilder.css_files`` and
|
||||
``sphinx.builders.html.StandaloneHTMLBuilder.script_files``.
|
||||
Use ``sphinx.application.Sphinx.add_css_file()``
|
||||
and ``sphinx.application.Sphinx.add_js_file()`` instead.
|
||||
* #11459: Deprecate ``sphinx.ext.autodoc.preserve_defaults.get_function_def()``.
|
||||
Patch by Bénédikt Tran.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #11526: Support ``os.PathLike`` types and ``pathlib.Path`` objects
|
||||
in many more places.
|
||||
* #5474: coverage: Print summary statistics tables.
|
||||
Patch by Jorge Leitao.
|
||||
* #6319: viewcode: Add :confval:`viewcode_line_numbers` to control
|
||||
whether line numbers are added to rendered source code.
|
||||
Patch by Ben Krikler.
|
||||
* #9662: Add the ``:no-typesetting:`` option to suppress textual output
|
||||
and only create a linkable anchor.
|
||||
Patch by Latosha Maltba.
|
||||
* #11221: C++: Support domain objects in the table of contents.
|
||||
Patch by Rouslan Korneychuk.
|
||||
* #10938: doctest: Add :confval:`doctest_show_successes` option.
|
||||
Patch by Trey Hunner.
|
||||
* #11533: Add ``:no-index:``, ``:no-index-entry:``, and ``:no-contents-entry:``.
|
||||
* #11572: Improve ``debug`` logging of reasons why files are detected as out of
|
||||
date.
|
||||
Patch by Eric Larson.
|
||||
* #10678: Emit :event:`source-read` events for files read via
|
||||
the :dudir:`include` directive.
|
||||
Patch by Halldor Fannar.
|
||||
* #11570: Use short names when using :pep:`585` built-in generics.
|
||||
Patch by Riccardo Mori.
|
||||
* #11300: Improve ``SigElementFallbackTransform`` fallback logic and signature
|
||||
text elements nodes. See :doc:`the documentation </extdev/nodes>` for more
|
||||
details.
|
||||
Patch by Bénédikt Tran.
|
||||
* Allow running Sphinx with ``python -m sphinx build ...``.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11077: graphviz: Fix relative links from within the graph.
|
||||
Patch by Ralf Grubenmann.
|
||||
* #11529: Line Block in LaTeX builder outputs spurious empty token.
|
||||
Patch by Adrian Vollmer.
|
||||
* #11196: autosummary: Summary line extraction failed with "e.g."
|
||||
* #10614: Fixed a number of bugs in inheritance diagrams that resulted in
|
||||
missing or broken links.
|
||||
Patch by Albert Shih.
|
||||
* #9428: Exclude substitution definitions when running the ``gettext`` builder.
|
||||
Patch by Alvin Wong.
|
||||
* #10795: Raise a descriptive error if ``graphviz_dot`` is falsy.
|
||||
* #11546: Translated nodes identical to their original text are now marked
|
||||
with the ``translated=True`` attribute.
|
||||
* #10049: html: Change "Permalink" to "Link" for title text in link anchors.
|
||||
* #4225: Relax Pygments parsing on lexing failures.
|
||||
* #11246: Allow inline links in the first line of a docstring and one-line
|
||||
type comments ``#: :meta ...:`` when using :mod:`sphinx.ext.napoleon`.
|
||||
Patch by Bénédikt Tran.
|
||||
* #10930: Highlight all search terms on the search results page.
|
||||
Patch by Dmitry Shachnev.
|
||||
* #11473: Type annotations containing :py:data:`~typing.Literal` enumeration
|
||||
values now render correctly.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11591: Fix support for C coverage in ``sphinx.ext.coverage`` extension.
|
||||
Patch by Stephen Finucane.
|
||||
* #11594: HTML Theme: Enhancements to horizontal scrolling on smaller
|
||||
devices in the ``agogo`` theme.
|
||||
Patch by Lukas Engelter.
|
||||
* #11459: Fix support for async and lambda functions in
|
||||
``sphinx.ext.autodoc.preserve_defaults``.
|
||||
Patch by Bénédikt Tran.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
* #11577: pytest: Fail tests on "XPASS".
|
||||
* #11577: pytest: Use "importlib" import mode.
|
||||
* #11577: pytest: Set PYTHONWARNINGS=error.
|
||||
* #11577: pytest: Set strict config and strict markers.
|
||||
280
doc/changes/7.3.rst
Normal file
@@ -0,0 +1,280 @@
|
||||
==========
|
||||
Sphinx 7.3
|
||||
==========
|
||||
|
||||
|
||||
Release 7.3.7 (released Apr 19, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12299: Defer loading themes defined via entry points until
|
||||
their explicit use by the user or a child theme.
|
||||
Patch by Adam Turner.
|
||||
* #12305: Return the default value for ``theme.get_config()`` with
|
||||
an unsupported theme configuration section.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 7.3.6 (released Apr 17, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12295: Re-export all AST types in the C and C++ domains.
|
||||
Patch by Adam Turner.
|
||||
* #12295: Re-export various objects from ``sphinx.domains.python._annotations``
|
||||
in ``sphinx.domains.python``.
|
||||
Patch by Jacob Chesslo and Adam Turner.
|
||||
|
||||
Release 7.3.5 (released Apr 17, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12295: Re-export various objects from ``sphinx.domains.python._object``
|
||||
in ``sphinx.domains.python``.
|
||||
Patch by Jacob Chesslo and Adam Turner.
|
||||
|
||||
Release 7.3.4 (released Apr 17, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Handle cases when ``Any`` is not an instance of ``type``.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 7.3.3 (released Apr 17, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12290: Fix a false-positive warning when setting a configuration value
|
||||
with ``Any`` as the valid type to a type other than the value's default.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 7.3.2 (released Apr 17, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Preload all themes defined via entry points.
|
||||
Patch by Adam Turner.
|
||||
* Fix a bad interaction between the ``'Furo'`` theme and the new-style for
|
||||
configuration values.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 7.3.1 (released Apr 17, 2024)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* Require ``tomli`` on Python 3.10 and earlier.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 7.3.0 (released Apr 16, 2024)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #11858: Increase the minimum supported version of Alabaster to 0.7.14.
|
||||
Patch by Adam Turner.
|
||||
* #11411: Support `Docutils 0.21`_. Patch by Adam Turner.
|
||||
|
||||
.. _Docutils 0.21: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-21-2024-04-09
|
||||
* #12012: Use ``types-docutils`` instead of ``docutils-stubs``.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* #11693: Support for old-style :file:`Makefile` and :file:`make.bat` output
|
||||
in :program:`sphinx-quickstart`, and the associated options :option:`!-M`,
|
||||
:option:`!-m`, :option:`!--no-use-make-mode`, and :option:`!--use-make-mode`.
|
||||
* #11285: Direct access to :attr:`!sphinx.testing.util.SphinxTestApp._status`
|
||||
or :attr:`!sphinx.testing.util.SphinxTestApp._warning` is deprecated. Use
|
||||
the public properties :attr:`!sphinx.testing.util.SphinxTestApp.status`
|
||||
and :attr:`!sphinx.testing.util.SphinxTestApp.warning` instead.
|
||||
Patch by Bénédikt Tran.
|
||||
* tests: :func:`!sphinx.testing.util.strip_escseq` is deprecated in favour of
|
||||
:func:`!sphinx.util.console.strip_colors`.
|
||||
Patch by Bénédikt Tran.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
* #12265: Support theme configuration via ``theme.toml``.
|
||||
* #11701: HTML Search: Adopt the new `\<search\>`_ element.
|
||||
Patch by Bénédikt Tran.
|
||||
|
||||
.. _`\<search\>`: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search
|
||||
* #11776: Add long option names to ``sphinx-build``.
|
||||
Patch by Hugo van Kemenade, Adam Turner, Bénédikt Tran, and Ezio Melotti.
|
||||
* Organise the ``sphinx-build`` options into groups.
|
||||
Patch by Adam Turner.
|
||||
* #11855: Defer computation of configuration values.
|
||||
Patch by Adam Turner.
|
||||
* Add ``:no-search:`` as an alias of the ``:nosearch:`` metadata field.
|
||||
Patch by Adam Turner.
|
||||
* #11803: autodoc: Use an overridden ``__repr__()`` function in an enum,
|
||||
if defined. Patch by Shengyu Zhang.
|
||||
* #11825: Allow custom targets in the manpage role.
|
||||
Patch by Nicolas Peugnet.
|
||||
* #11892: Improved performance when resolving cross references in the C++ domain.
|
||||
Patch by Rouslan Korneychuk.
|
||||
* #11905: Add a :rst:dir:`versionremoved` directive.
|
||||
Patch by Hugo van Kemenade, Adam Turner, and C.A.M. Gerlach.
|
||||
* #11981: Improve rendering of signatures using ``slice`` syntax,
|
||||
e.g., ``def foo(arg: np.float64[:,:]) -> None: ...``.
|
||||
* The manpage builder now adds `OSC 8`_ anchors to hyperlinks, using
|
||||
the `groff`_ device control command.
|
||||
|
||||
.. _OSC 8: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
|
||||
.. _groff: https://lists.gnu.org/archive/html/groff/2021-10/msg00000.html
|
||||
* #11015: Change the text of the :rst:dir:`versionadded` directive from
|
||||
``New in [...]`` to ``Added in [...]``.
|
||||
Patch by Bénédikt Tran.
|
||||
* #12131: Added :confval:`show_warning_types` configuration option.
|
||||
Patch by Chris Sewell.
|
||||
* #12193: Improve ``external`` warnings for unknown roles.
|
||||
In particular, suggest related role names if an object type is mistakenly used.
|
||||
Patch by Chris Sewell.
|
||||
* Add public type alias :class:`sphinx.util.typing.ExtensionMetadata`.
|
||||
This can be used by extension developers
|
||||
to annotate the return type of their ``setup`` function.
|
||||
Patch by Chris Sewell.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #11668: Raise a useful error when ``theme.conf`` is missing.
|
||||
Patch by Vinay Sajip.
|
||||
* #11622: Ensure that the order of keys in ``searchindex.js`` is deterministic.
|
||||
Patch by Pietro Albini.
|
||||
* #11617: ANSI control sequences are stripped from the output when writing to
|
||||
a warnings file with :option:`-w <sphinx-build -w>`.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11666: Skip all hidden directories in ``CatalogRepository.pofiles``.
|
||||
Patch by Aryaz Eghbali.
|
||||
* #9686: html builder: Fix MathJax lazy loading when equations appear in titles.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11483: singlehtml builder: Fix MathJax lazy loading when the index does not
|
||||
contain any math equations.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11697: HTML Search: add 'noindex' meta robots tag.
|
||||
Patch by James Addison.
|
||||
* #11678: Fix a possible ``ZeroDivisionError`` in ``sphinx.ext.coverage``.
|
||||
Patch by Stephen Finucane.
|
||||
* #11756: LaTeX: build error with recent TeXLive due to missing ``substitutefont``
|
||||
package (triggered if using ``fontenc`` with ``T2A`` option and document
|
||||
language is not a Cyrillic one).
|
||||
Patch by Jean-François B.
|
||||
* #11675: Fix rendering of progression bars in environments that do not support
|
||||
ANSI control sequences.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11861: Whitelist more types with an incorrect ``__module__`` attribute.
|
||||
Patch by Adam Turner.
|
||||
* #11715: Apply ``tls_verify`` and ``tls_cacerts`` config to
|
||||
``ImageDownloader``.
|
||||
Patch by Nick Touran.
|
||||
* Allow hyphens in group names for :rst:dir:`productionlist` cross-references.
|
||||
Patch by Adam Turner.
|
||||
* #11433: Added the :confval:`linkcheck_allow_unauthorized` configuration option.
|
||||
Set this option to ``False`` to report HTTP 401 (unauthorized) server
|
||||
responses as broken.
|
||||
Patch by James Addison.
|
||||
* #11868: linkcheck: added a distinct ``timeout`` reporting status code.
|
||||
This can be enabled by setting :confval:`linkcheck_report_timeouts_as_broken`
|
||||
to ``False``.
|
||||
Patch by James Addison.
|
||||
* #11869: Refresh the documentation for the ``linkcheck_timeout`` setting.
|
||||
Patch by James Addison.
|
||||
* #11874: Configure a default 30-second value for ``linkcheck_timeout``.
|
||||
Patch by James Addison.
|
||||
* #11886: Print the Jinja2 template path chain in ``TemplateNotFound`` exceptions.
|
||||
Patch by Colin Marquardt.
|
||||
* #11598: Do not use query components in URLs for assets in EPUB rendering.
|
||||
Patch by David Runge.
|
||||
* #11904: Support unary subtraction when parsing annotations.
|
||||
Patch by James Addison.
|
||||
* #11925: Blacklist the ``sphinxprettysearchresults`` extension; the functionality
|
||||
it provides was merged into Sphinx v2.0.0.
|
||||
Patch by James Addison.
|
||||
* #11917: Fix rendering of annotated inherited members for Python 3.9.
|
||||
Patch by Janet Carson.
|
||||
* #11935: C Domain: Fix namespace-pop context.
|
||||
Patch by Frank Dana.
|
||||
* #11923: Avoid zombie processes when parallel builds fail.
|
||||
Patch by Felix von Drigalski.
|
||||
* #11353: Support enumeration classes inheriting from mixin or data types.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11962: Fix target resolution when using ``:paramtype:`` fields.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11944: Use anchor in search preview.
|
||||
Patch by Will Lachance.
|
||||
* #12008: Fix case-sensitive lookup of ``std:label`` names in intersphinx inventory.
|
||||
Patch by Michael Goerz.
|
||||
* #11958: HTML Search: Fix partial matches overwriting full matches.
|
||||
Patch by William Lachance.
|
||||
* #11959: Fix multiple term matching when word appears in both title and document.
|
||||
Patch by Will Lachance.
|
||||
* #11474: Fix doctrees caching causing files not be rebuilt in some cases,
|
||||
e.g., when :confval:`numfig` is ``True``.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11278: autodoc: Fix rendering of :class:`functools.singledispatchmethod`
|
||||
combined with :func:`@classmethod <classmethod>`.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11894: Do not add checksums to css files if building using the htmlhelp builder.
|
||||
Patch by reduerK akiM.
|
||||
* #12052: Remove ``<script>`` and ``<style>`` tags from the content of search result
|
||||
summary snippets.
|
||||
Patch by James Addison.
|
||||
* #11578: HTML Search: Order non-main index entries after other results.
|
||||
Patch by Brad King.
|
||||
* #12147: autosummary: Fix a bug whereby the wrong file extension
|
||||
may be used,
|
||||
when multiple suffixes are specified in :confval:`source_suffix`.
|
||||
Patch by Sutou Kouhei.
|
||||
* #10786: improve the error message when a file to be copied (e.g., an asset)
|
||||
is removed during Sphinx execution.
|
||||
Patch by Bénédikt Tran.
|
||||
* #12040: HTML Search: Ensure that document titles that are partially-matched by
|
||||
the user search query are included in search results.
|
||||
Patch by James Addison.
|
||||
* #11970: singlehtml builder: make target URIs to be same-document references in
|
||||
the sense of :rfc:`RFC 3986, §4.4 <3986#section-4.4>`, e.g., ``index.html#foo``
|
||||
becomes ``#foo``. Patch by Eric Norige.
|
||||
* #12271: Partially revert Docutils' r9562__ to fix EPUB files.
|
||||
Patch by Adam Turner.
|
||||
|
||||
__ https://sourceforge.net/p/docutils/code/9562/
|
||||
* #12253: Escape reserved path characters in the remote images post-transform
|
||||
download cache.
|
||||
Patch by James Addison and Adam Turner.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
* Reorganise tests into directories.
|
||||
Patch by Adam Turner.
|
||||
* Clean up global state in ``SphinxTestApp``.
|
||||
Patch by Adam Turner.
|
||||
* #11285: :func:`!pytest.mark.sphinx` and :class:`!sphinx.testing.util.SphinxTestApp`
|
||||
accept *warningiserror*, *keep_going* and *verbosity* as keyword arguments.
|
||||
Patch by Bénédikt Tran.
|
||||
* #11285: :class:`!sphinx.testing.util.SphinxTestApp` *status* and *warning*
|
||||
arguments are checked to be :class:`io.StringIO` objects (the public API
|
||||
incorrectly assumed this without checking it).
|
||||
Patch by Bénédikt Tran.
|
||||
* Report the result of ``test_run_epubcheck`` as ``skipped`` instead of
|
||||
``success`` when either Java or ``epubcheck`` are not available.
|
||||
* Use dynamic allocation of unused port numbers for the test HTTP(S) servers.
|
||||
As a side-effect, this removes the need for test server lockfiles,
|
||||
meaning that any remaining ``tests/test-server.lock`` files can safely be
|
||||
deleted.
|
||||
263
doc/changes/7.4.rst
Normal file
@@ -0,0 +1,263 @@
|
||||
==========
|
||||
Sphinx 7.4
|
||||
==========
|
||||
|
||||
|
||||
Release 7.4.7 (released Jul 20, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12096: Warn when files are overwritten in the build directory.
|
||||
Patch by Adam Turner and Bénédikt Tran.
|
||||
* #12620: Ensure that old-style object description options are respected.
|
||||
Patch by Adam Turner.
|
||||
* #12601, #12625: Support callable objects in :py:class:`~typing.Annotated` type
|
||||
metadata in the Python domain.
|
||||
Patch by Adam Turner.
|
||||
* #12601, #12622: Resolve :py:class:`~typing.Annotated` warnings with
|
||||
``sphinx.ext.autodoc``,
|
||||
especially when using :mod:`dataclasses` as type metadata.
|
||||
Patch by Adam Turner.
|
||||
* #12589, #12626: autosummary: Fix warnings with :rst:role:`!autolink`.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 7.4.6 (released Jul 18, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12589, #9743, #12609: autosummary: Do not add the package prefix when
|
||||
generating autosummary directives for modules within a package.
|
||||
Patch by Adam Turner.
|
||||
* #12613: Reduce log severity for ambiguity detection during inventory loading.
|
||||
Patch by James Addison.
|
||||
|
||||
Release 7.4.5 (released Jul 16, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12593, #12600: Revert coercing the type of selected :confval:`html_sidebars`
|
||||
values to a list.
|
||||
Log an error message when string values are detected.
|
||||
Patch by Adam Turner.
|
||||
* #12594: LaTeX: since 7.4.0, :rst:dir:`seealso` and other "light" admonitions
|
||||
now break PDF builds if they contain a :dudir:`figure` directive; and also
|
||||
if they are contained in a table cell (rendered by ``tabulary``).
|
||||
Patch by Jean-François B.
|
||||
|
||||
Release 7.4.4 (released Jul 15, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12585, #12586: Do not warn when an intersphinx inventory contains
|
||||
case-insensitively ambiguous duplicate items.
|
||||
Patch by James Addison.
|
||||
|
||||
Release 7.4.3 (released Jul 15, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12582: Restore support for list-styled :confval:`source_suffix` values
|
||||
with extensions that register parsers.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 7.4.2 (released Jul 15, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12580, #12583: Resolve failures with the C domain on incremental builds
|
||||
with Sphinx 7.3.7 and earlier.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 7.4.1 (released Jul 15, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Fix invalid HTML when a rubric node with invalid ``heading-level`` is used.
|
||||
Patch by Adam Turner.
|
||||
* #12579, #12581: Restore support for ``typing.ParamSpec`` in autodoc.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 7.4.0 (released Jul 15, 2024)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #12555: Drop Docutils 0.18.1 and Docutils 0.19 support.
|
||||
Patch by Adam Turner.
|
||||
* LaTeX: the ``xcolor`` package is now required (but is for example part of
|
||||
Ubuntu ``texlive-latex-recommended`` which has always been required).
|
||||
* LaTeX: the ``fontawesome5`` LaTeX package is needed for the default choices
|
||||
of icons now used in admonition titles in PDF output; but if unavailable the
|
||||
PDF build will simply silently omit rendering such icons. Check the
|
||||
documentation of the ``iconpackage`` key of :ref:`'sphinxsetup'
|
||||
<latexsphinxsetup>` for more.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* LaTeX: the ``sphinxlightbox`` environment is not used anymore, all types
|
||||
of admonitions use (by default) only ``sphinxheavybox``.
|
||||
|
||||
Features added
|
||||
--------------
|
||||
|
||||
.. rst-class:: compact
|
||||
|
||||
* #11165: Support the `officially recommended`_ ``.jinja`` suffix for template
|
||||
files.
|
||||
Patch by James Addison and Adam Turner
|
||||
|
||||
.. _officially recommended: https://jinja.palletsprojects.com/en/latest/templates/#template-file-extension
|
||||
* #12325: Flatten ``Union[Literal[T], Literal[U], ...]`` to ``Literal[T, U, ...]``
|
||||
when turning annotations into strings.
|
||||
Patch by Adam Turner.
|
||||
* #12319: ``sphinx.ext.extlinks``: Add ``extlink-{name}`` CSS class to links.
|
||||
Patch by Hugo van Kemenade.
|
||||
* #12387: Improve CLI progress message, when copying assets.
|
||||
Patch by INADA Nakoi and Bénédikt Tran.
|
||||
* #12361: Add :attr:`.BuildEnvironment.parser`.
|
||||
Patch by Chris Sewell.
|
||||
* #12358: Add :attr:`.Sphinx.fresh_env_used`.
|
||||
Patch by Chris Sewell.
|
||||
* #12329: Add detection of ambiguous ``std:label`` and ``std:term`` references during
|
||||
loading and resolution of Intersphinx targets.
|
||||
Patch by James Addison.
|
||||
* #12422: Do not duplicate "navigation" in aria-label of built-in themes.
|
||||
Patch by Thomas Weißschuh
|
||||
* #12421: Include project name in ``logo_alt`` of built-in themes.
|
||||
Patch by Thomas Weißschuh
|
||||
* #12448: Add :option:`sphinx-apidoc --remove-old` option.
|
||||
Patch by Chris Sewell.
|
||||
* #12456: Add :option:`sphinx-autogen --remove-old` option.
|
||||
Patch by Chris Sewell.
|
||||
* #12479: Add warning subtype ``toc.no_title``.
|
||||
Patch by Ondřej Navrátil.
|
||||
* #12492: Add helper methods for parsing reStructuredText content into nodes from
|
||||
within a directive.
|
||||
|
||||
- :py:meth:`~sphinx.util.docutils.SphinxDirective.parse_content_to_nodes()`
|
||||
parses the directive's content and returns a list of Docutils nodes.
|
||||
- :py:meth:`~sphinx.util.docutils.SphinxDirective.parse_text_to_nodes()`
|
||||
parses the provided text and returns a list of Docutils nodes.
|
||||
- :py:meth:`~sphinx.util.docutils.SphinxDirective.parse_inline()`
|
||||
parses the provided text into inline elements and text nodes.
|
||||
|
||||
Patch by Adam Turner.
|
||||
* #12258: Support ``typing_extensions.Unpack``
|
||||
Patch by Bénédikt Tran and Adam Turner.
|
||||
* #12524: Add a ``class`` option to the :rst:dir:`toctree` directive.
|
||||
Patch by Tim Hoffmann.
|
||||
* #12536: Add the :rst:dir:`confval` directive.
|
||||
Patch by Adam Turner.
|
||||
* #12537: :confval:`c_id_attributes`, :confval:`c_paren_attributes`,
|
||||
:confval:`cpp_id_attributes`, and :confval:`cpp_paren_attributes`
|
||||
can now be a tuple of strings.
|
||||
:confval:`c_extra_keywords`, :confval:`gettext_additional_targets`,
|
||||
:confval:`html_domain_indices`, :confval:`latex_domain_indices`,
|
||||
and :confval:`texinfo_domain_indices`,
|
||||
can now be a set of strings.
|
||||
Patch by Adam Turner.
|
||||
* #12523: Added configuration option, :confval:`math_numsep`, to define the
|
||||
separator for math numbering.
|
||||
Patch by Thomas Fanning
|
||||
* #11592: Add :confval:`coverage_modules` to the coverage builder
|
||||
to allow explicitly specifying which modules should be documented.
|
||||
Patch by Stephen Finucane.
|
||||
* #7896, #11989: Add a :rst:dir:`py:type` directive for documenting type aliases,
|
||||
and a :rst:role:`py:type` role for linking to them.
|
||||
Patch by Ashley Whetter.
|
||||
* #12549: Add optional ``description`` argument to
|
||||
:meth:`.Sphinx.add_config_value`.
|
||||
Patch by Chris Sewell.
|
||||
* #6792: Prohibit module import cycles in :mod:`sphinx.ext.autosummary`.
|
||||
Patch by Trevor Bekolay.
|
||||
* #12508: LaTeX: Revamped styling of all admonitions, with addition of a
|
||||
title row with icon.
|
||||
Patch by Jean-François B.
|
||||
* #11773: Display :py:class:`~typing.Annotated` annotations
|
||||
with their metadata in the Python domain.
|
||||
Patch by Adam Turner and David Stansby.
|
||||
* #12506: Add ``heading-level`` option to :rst:dir:`rubric` directive.
|
||||
Patch by Chris Sewell.
|
||||
* #12567: Add the :event:`write-started` event.
|
||||
Patch by Chris Sewell.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #12314: Properly format ``collections.abc.Callable`` in annotations.
|
||||
Patch by Adam Turner.
|
||||
* #12162: Fix a performance regression in the C domain that has
|
||||
been present since version 3.0.0.
|
||||
Patch by Donald Hunter.
|
||||
* #12320: Fix removal of anchors from search summaries (regression in 7.3.0).
|
||||
Patch by Will Lachance.
|
||||
* #12251: Fix ``merge_domaindata()`` in ``sphinx.ext.duration``.
|
||||
Patch by Matthias Geier.
|
||||
* #12224: Properly detect WebP files.
|
||||
Patch by Benjamin Cabé.
|
||||
* #12380: LaTeX: Avoid footnote markers ``Page N`` when ``N`` is already
|
||||
the current page number.
|
||||
Patch by Jean-François B.
|
||||
* #12410: LaTeX: for French and ``'lualatex'`` as :confval:`latex_engine`
|
||||
use ``babel`` as with ``'xelatex'`` (and not ``polyglossia``).
|
||||
Patch by Jean-François B.
|
||||
* #8807, #12520: LaTeX: let :rst:dir:`todolist` produce correct hyperlinks
|
||||
in PDF.
|
||||
Patch by Jean-François B.
|
||||
* #12416: Ensure that configuration setting aliases are always synchronised
|
||||
when one value or the other is modified.
|
||||
Patch by Bénédikt Tran.
|
||||
* #12220: Fix loading custom template translations for ``en`` locale.
|
||||
Patch by Nicolas Peugnet.
|
||||
* #12459: Add valid-type arguments to the ``linkcheck_rate_limit_timeout``
|
||||
configuration setting.
|
||||
Patch by James Addison.
|
||||
* #12331: Resolve data-URI-image-extraction regression from v7.3.0 affecting
|
||||
builders without native support for data-URIs in their output format.
|
||||
Patch by James Addison.
|
||||
* #12494: Fix invalid genindex.html file produced with translated docs
|
||||
(regression in 7.1.0).
|
||||
Patch by Nicolas Peugnet.
|
||||
* #11961: Omit anchor references from document title entries in the search index,
|
||||
removing duplication of search results.
|
||||
Patch by James Addison.
|
||||
* #12425: Use Docutils' SVG processing in the HTML builder
|
||||
and remove Sphinx's custom logic.
|
||||
Patch by Tunç Başar Köse.
|
||||
* #12391: Adjust scoring of matches during HTML search so that document main
|
||||
titles tend to rank higher than subsection titles. In addition, boost matches
|
||||
on the name of programming domain objects relative to title/subtitle matches.
|
||||
Patch by James Addison and Will Lachance.
|
||||
* #9634: Do not add a fallback language by stripping the country code.
|
||||
Patch by Alvin Wong.
|
||||
* #12352: Add domain objects to the table of contents
|
||||
in the same order as defined in the document.
|
||||
Previously, each domain used language-specific nesting rules,
|
||||
which removed control from document authors.
|
||||
Patch by Jakob Lykke Andersen and Adam Turner.
|
||||
* #11041: linkcheck: Ignore URLs that respond with non-Unicode content.
|
||||
Patch by James Addison.
|
||||
* #12543: Fix :pep:`695` formatting for LaTeX output.
|
||||
Patch by Bénédikt Tran.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
* karma: refactor HTML search tests to use fixtures generated by Sphinx.
|
||||
Patch by James Addison.
|
||||
115
doc/changes/8.0.rst
Normal file
@@ -0,0 +1,115 @@
|
||||
==========
|
||||
Sphinx 8.0
|
||||
==========
|
||||
|
||||
|
||||
Release 8.0.2 (released Jul 30, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Fix the ``pygments.Formatter.__class_getitem__`` patch.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 8.0.1 (released Jul 30, 2024)
|
||||
=====================================
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Patch ``pygments.Formatter.__class_getitem__`` in Pygments 2.17.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Release 8.0.0 (released Jul 29, 2024)
|
||||
=====================================
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* #12633: Drop Python 3.9 support.
|
||||
|
||||
Incompatible changes
|
||||
--------------------
|
||||
|
||||
.. rst-class:: compact
|
||||
|
||||
* Remove deprecated functions from ``sphinx.util``:
|
||||
|
||||
* Removed ``sphinx.util.path_stabilize``
|
||||
(use ``sphinx.util.osutil.path_stabilize``).
|
||||
* Removed ``sphinx.util.display_chunk``
|
||||
(use ``sphinx.util.display.display_chunk``).
|
||||
* Removed ``sphinx.util.status_iterator``
|
||||
(use ``sphinx.util.display.status_iterator``).
|
||||
* Removed ``sphinx.util.SkipProgressMessage``
|
||||
(use ``sphinx.util.display.SkipProgressMessage``).
|
||||
* Removed ``sphinx.util.progress_message``
|
||||
(use ``sphinx.util.display.progress_message``).
|
||||
* Removed ``sphinx.util.epoch_to_rfc1123``
|
||||
(use ``sphinx.http_date.epoch_to_rfc1123``).
|
||||
* Removed ``sphinx.util.rfc1123_to_epoch``
|
||||
(use ``sphinx.http_date.rfc1123_to_epoch``).
|
||||
* Removed ``sphinx.util.save_traceback``
|
||||
(use ``sphinx.exceptions.save_traceback``).
|
||||
* Removed ``sphinx.util.format_exception_cut_frames``
|
||||
(use ``sphinx.exceptions.format_exception_cut_frames``).
|
||||
* Removed ``sphinx.util.xmlname_checker``
|
||||
(use ``sphinx.builders.epub3._XML_NAME_PATTERN``).
|
||||
|
||||
Patch by Adam Turner.
|
||||
* Removed :py:func:`!sphinx.util.osutil.cd`
|
||||
(use :py:func:`contextlib.chdir`).
|
||||
Patch by Adam Turner.
|
||||
* Removed :py:func:`!sphinx.util.typing.stringify`
|
||||
(use :py:func:`!sphinx.util.typing.stringify_annotation`).
|
||||
Patch by Adam Turner.
|
||||
* #12593: Raise an error for invalid :confval:`html_sidebars` values.
|
||||
Patch by Adam Turner.
|
||||
* #12593: Raise an error in :py:func:`!Theme.get_config` for invalid sections.
|
||||
Patch by Adam Turner.
|
||||
* #11693: Remove support for old-style :file:`Makefile` and :file:`make.bat`
|
||||
output in :program:`sphinx-quickstart`.
|
||||
* #11693: Remove the :option:`!--no-use-make-mode`, :option:`!-M`,
|
||||
:option:`!--use-make-mode`, and :option:`!-m` options
|
||||
from :program:`sphinx-quickstart`.
|
||||
Patch by Adam Turner.
|
||||
* Removed the tuple interface to :py:class:`!sphinx.ext.autodoc.ObjectMember`.
|
||||
Patch by Adam Turner.
|
||||
* #12630: Sphinx 8 makes two changes to the ``linkcheck`` configuration defaults:
|
||||
|
||||
* :confval:`linkcheck_allow_unauthorized` is now ``False`` by default.
|
||||
* :confval:`linkcheck_report_timeouts_as_broken` is now ``False`` by default.
|
||||
|
||||
Patch by James Addison.
|
||||
* #12597: Change the default of :confval:`show_warning_types`
|
||||
from ``False`` to ``True``.
|
||||
Patch by Chris Sewell.
|
||||
* #12083: Remove support for the old (2008--2010) Sphinx 0.5 and Sphinx 0.6
|
||||
:confval:`intersphinx_mapping` format.
|
||||
Patch by Bénédikt Tran and Adam Turner.
|
||||
* #12096: Do not overwrite user-supplied files when copying assets
|
||||
unless forced with ``force=True``.
|
||||
Patch by Adam Turner.
|
||||
* #12646: Remove :py:func:`!sphinx.util.inspect.isNewType`.
|
||||
Use ``isinstance(obj, typing.NewType)`` instead on Python 3.10 and newer.
|
||||
Patch by Adam Turner.
|
||||
* Remove the long-deprecated (since Sphinx 2) alias
|
||||
to :py:class:`!VersionChange` in
|
||||
:py:mod:`!sphinx.directives.other`
|
||||
(Deprecated since Sphinx 2).
|
||||
Use :py:class:`!sphinx.domains.changeset.VersionChange` directly.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
* #12643: Renamed ``sphinx.ext.intersphinx.normalize_intersphinx_mapping``
|
||||
to ``sphinx.ext.intersphinx.validate_intersphinx_mapping``.
|
||||
The old name will be removed in Sphinx 10.
|
||||
Patch by Adam Turner.
|
||||
* #12650, #12686, #12690: Extend the deprecation for string methods on
|
||||
:py:class:`~pathlib.Path` objects to Sphinx 9.
|
||||
Use :py:func:`os.fspath` to convert :py:class:`~pathlib.Path` objects to strings,
|
||||
or :py:class:`~pathlib.Path`'s methods to work with path objects.
|
||||
Patch by Adam Turner.
|
||||