Commit Graph

16453 Commits

Author SHA1 Message Date
Takeshi KOMIYA
12ec8f0cae Fix #8651: cross-reference for a rubric having inline item is broken
The implementation of the standard domain so far has considered the
first child of the rubric node is the title of the rubric.  But it can
may multiple nodes when the rubric title is marked up.

This extracts the title of the rubric from the whole of the children
of it.
2021-01-11 22:50:45 +09:00
Takeshi KOMIYA
98993b40c5
Merge pull request #8672 from tk0miya/8671_highlight_options_not_working
Fix #8671: highlight_options is not working
2021-01-11 20:48:54 +09:00
Takeshi KOMIYA
d7cdb9e22d Fix #8671: highlight_options is not working
Sadly HTML and LaTeX writers compares the highlight languages using
`is` operator.  As a result, it has not worked even if languages are
same.  This replaces the comparison operator by `==`.
2021-01-11 20:37:05 +09:00
Takeshi KOMIYA
6e445e1175
Merge pull request #8673 from tk0miya/refactor_writers
refactor: Access config object from self directly in writers
2021-01-11 20:35:39 +09:00
Takeshi KOMIYA
410b8e03f3 refactor: Access config object from self directly in writers 2021-01-10 23:49:12 +09:00
Takeshi KOMIYA
b51c947c51
Merge pull request #8670 from tk0miya/fix_highlight_lang
doc: Fix highlight language
2021-01-10 22:35:00 +09:00
Takeshi KOMIYA
f433581b04 doc: Fix highlight language 2021-01-10 22:22:30 +09:00
Takeshi KOMIYA
7acafa991b Update CHANGES for PR #8665 2021-01-10 15:04:59 +09:00
Takeshi KOMIYA
ffba1d7068
Merge pull request #8665 from JeanKossaifi/3.x
Cast maxdepth to int in toctree
2021-01-10 15:03:03 +09:00
Jean Kossaifi
169c45bb35 Deal with empty string case. 2021-01-09 22:14:16 +00:00
Jean Kossaifi
f77461b4b7 Cast maxdepth to int in toctree
When specifying the max-depth for the toctree in theme.conf that isn't automatically cast to int, causing a hard to locate error.
2021-01-09 21:59:53 +00:00
Takeshi KOMIYA
d9569a84a2 Merge branch '3.4.x' into 3.x 2021-01-08 01:18:53 +09:00
Takeshi KOMIYA
458ccbea0b Bump version 2021-01-08 01:17:58 +09:00
Takeshi KOMIYA
55cdadf973 Bump to 3.4.3 final 2021-01-08 01:16:15 +09:00
Takeshi KOMIYA
ca9342cc44
Merge pull request #8631 from tk0miya/6241_assets_for_specific_page
Close #6241: html: Allow to add JS/CSS files to the specific page
2021-01-08 01:11:17 +09:00
Takeshi KOMIYA
ac12d8dabe
Merge pull request #8656 from tk0miya/8655_exception_on_hasattr
Fix #8655: autodoc: Crashes when object raises an exception on hasattr()
2021-01-07 02:12:27 +09:00
Takeshi KOMIYA
af4e615a8a Close #6241: html: Allow to add JS/CSS files to the specific page
Allow to add JS/CSS files to the specific page when an extension calls
`app.add_js_file()` or `app.add_css_file()` on `html-page-context`
event.
2021-01-07 02:12:07 +09:00
Takeshi KOMIYA
a51c8a5652 Fix #8655: autodoc: Crashes when object raises an exception on hasattr()
autodoc crashes when the target object raises an exception on
`hasattr()`.  The `hasattr()` function internally calls the
`obj.__getattr__()` or `obj.__getattribute__()` of the target object.
Hence the reaction can be changed on the target object.

This starts to use `safe_getattr()` to check the object is mocked or not
and to prevent an unexpected error.
2021-01-05 23:37:40 +09:00
Takeshi KOMIYA
ac7d574fce refactor: mathjax: Add a constant for the URL of mathjax 2021-01-04 22:22:08 +09:00
Takeshi KOMIYA
2d53b7cd66 Update CHANGES for PR #8649 2021-01-04 22:18:28 +09:00
Takeshi KOMIYA
41e6f152eb
Merge pull request #8649 from sephalon/imgconverter-availability
Skip imgconverter availability check if builder supports the image type
2021-01-04 22:17:37 +09:00
Takeshi KOMIYA
8131e03a52 Merge branch '3.4.x' into 3.x 2021-01-04 21:46:40 +09:00
Takeshi KOMIYA
4755557a7d Bump version 2021-01-04 21:43:54 +09:00
Takeshi KOMIYA
83d5a323ef Bump to 3.4.2 final 2021-01-04 21:42:37 +09:00
Takeshi KOMIYA
1429e6f92e
Merge pull request #8646 from tk0miya/refactor_typehints
refactor: Update typehints for ObjectDescription using Generic
2021-01-04 21:37:02 +09:00
Takeshi KOMIYA
1361126aa2
Merge pull request #8641 from tk0miya/8639_update_docs
doc: Add explanation for the priority attribute of html_*_files
2021-01-04 21:32:44 +09:00
Takeshi KOMIYA
b59a48d413
Merge pull request #8650 from tk0miya/update_release_checklist
doc: Quote URLs in release checklist
2021-01-04 21:24:48 +09:00
Takeshi KOMIYA
b3f8bd1e3c doc: Quote URLs in release checklist
To improve the install process, the commands on the checklist is updated
to allow to copy & paste it to console.
2021-01-04 21:12:27 +09:00
Stefan Wiehler
ef23669653 Skip imgconverter availability check if builder supports the image type
Close #7973: ImgConverter runs is_available in HTML builder
Close missinglinkelectronics/sphinxcontrib-svg2pdfconverter#8: Extension should only run on LaTeX builder
2021-01-04 10:32:46 +01:00
Takeshi KOMIYA
bad2444ed5 refactor: Update typehints for ObjectDescription using Generic 2021-01-03 22:50:38 +09:00
Takeshi KOMIYA
7739b7d7dd doc: Add explanation about stable sort of html_*_files 2021-01-03 00:17:19 +09:00
Takeshi KOMIYA
e9a4ebf70d doc: Add explanation for the priority attribute of html_*_files 2021-01-03 00:16:10 +09:00
Takeshi KOMIYA
1b7d16505e
Merge pull request #8639 from tk0miya/8634_css_priority
Close #8634: html: Allow to change the order of JS/CSS
2021-01-02 23:34:18 +09:00
Takeshi KOMIYA
99c580d563
Merge pull request #8640 from xuhdev/recursive
DOC: `modules` are only available when `recursive` is on
2021-01-02 12:12:33 +09:00
Hong Xu
1f020196a7 DOC: modules are only available when recursive is on
See
7ecf6b88aa/sphinx/ext/autosummary/generate.py (L314-L315)
2021-01-01 11:12:58 -08:00
Takeshi KOMIYA
c5f0398010 Close #8634: html: Allow to change the order of JS/CSS
`Sphinx.add_js_file()` and `Sphinx.add_css_file()` take `priority`
argument to change the order of JS/CSS files.
2021-01-02 02:06:34 +09:00
Takeshi KOMIYA
7ecf6b88aa Merge branch '3.4.x' into 3.x 2021-01-01 13:56:19 +09:00
Takeshi KOMIYA
1346ddf317
Merge pull request #8635 from tk0miya/update_copyright
A happy new year! (Updating copyright)
2021-01-01 13:51:51 +09:00
Takeshi KOMIYA
f996859420 A happy new year!
.. note::

   $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \;
   $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
2021-01-01 13:40:48 +09:00
Takeshi KOMIYA
54ef601049
Merge pull request #8630 from tk0miya/8629_warning_for_html_use_opensearch_twice
Fix #8629: html: A type warning for html_use_opensearch is shown twice
2021-01-01 13:14:39 +09:00
Takeshi KOMIYA
b2c9297bd2
Merge pull request #8627 from tk0miya/8315_struct.Struct
Fix #8315: autodoc: Failed to resolve struct.Struct type annotation
2021-01-01 13:13:11 +09:00
Takeshi KOMIYA
663074e3ce
Merge pull request #8626 from tk0miya/refactor_test_autosummary
refactor: test: Use rollback_sysmodules fixture in test_ext_autosummary
2021-01-01 13:12:35 +09:00
Takeshi KOMIYA
05b67f2a3e
Merge pull request #8633 from tk0miya/merge_3.4.x
Merge 3.4.x to 3.x
2021-01-01 13:11:56 +09:00
Takeshi KOMIYA
d82a3c2047
Merge pull request #8625 from tk0miya/refactor_autodoc3
refactor: autodoc: Allow None value from get_doc()
2021-01-01 13:08:36 +09:00
Takeshi KOMIYA
63e0127b38 refactor autodoc to adjust new AttributeDocumenter 2020-12-31 21:37:35 +09:00
Takeshi KOMIYA
9ec65ff039 Merge branch '3.4.x' into merge_3.4.x 2020-12-31 21:33:43 +09:00
Takeshi KOMIYA
0f1fcdc113
Merge pull request #8632 from tk0miya/fix_test_markup
Fix test: missing compound class for kbd tag
2020-12-31 21:30:56 +09:00
Takeshi KOMIYA
5383846ced
Merge pull request #8622 from tk0miya/8616_AttributeError_for_non_class
Fix #8616: autodoc: AttributeError when non-class is passed to autoclass
2020-12-31 21:22:06 +09:00
Takeshi KOMIYA
2eb8927b89 Fix test: missing compound class for kbd tag 2020-12-31 21:20:38 +09:00
Takeshi KOMIYA
1353a7b82f
Merge branch '3.4.x' into 8616_AttributeError_for_non_class 2020-12-31 21:12:29 +09:00