Takeshi KOMIYA
5460ea103b
Merge branch '3.x'
2021-01-08 01:23:17 +09: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
v3.4.3
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
5ba5602d71
Merge pull request #8638 from tk0miya/5977_dont_link_var_field
...
Close #5977 : :var: field do not create a cross-reference …
2021-01-06 01:00:12 +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
v3.4.2
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
dc24c9363b
Merge pull request #8643 from tk0miya/refactor_basic/layout.html
...
refactor: Move CSS tags in basic/layout.html to ``css_files`` variable
2021-01-04 21:36:09 +09:00
Takeshi KOMIYA
967aeb2725
Merge pull request #8644 from tk0miya/refactor_smartypants
...
refactor: Do not import sphinx.util.smartypants because of deprecated
2021-01-04 21:34:01 +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
946f53590c
refactor: Do not import sphinx.util.smartypants because of deprecated
2021-01-03 02:45:55 +09:00
Takeshi KOMIYA
5b392e3951
refactor: Move CSS tags in basic/layout.html to `css_files` variable
...
To make CSS customizable, all CSS files in basic/layout.html has their
priority: 200. Therefore, extensions and users can insert their own
custom CSS files before or just after them.
As a side effect, the CSS tags in basic/layout.html are removed. These
CSS files will be rendered via `css_files` template variable.
refs: #8634 , c5f0398010
2021-01-03 02:41:17 +09:00
Takeshi KOMIYA
a9c7dd7037
Merge branch '3.x'
2021-01-03 00:20:27 +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
918086b559
Close #5977 : :var: field do not create a cross-reference
...
Since its beginning, `:var:` field has created a cross-reference to the
attribute having the same name. It is meaningful only if the attribute
is documented by `py:attribute` directive. It means the `:var:` field
and `:attr:` role are almost the same and conflicted. Additionally,
the cross-reference points incorrect variable if the target is not
documented.
Thus, the cross-reference feature of `:var:` field is disabled.
2021-01-01 22:53:23 +09:00
Takeshi KOMIYA
9cac2001f7
test: py domain: Add a testcase for :var: field
2021-01-01 18:15:42 +09:00
Takeshi KOMIYA
4b452338f9
Merge branch '3.x'
2021-01-01 13:57:19 +09:00
Takeshi KOMIYA
7ecf6b88aa
Merge branch '3.4.x' into 3.x
2021-01-01 13:56:19 +09:00
Takeshi KOMIYA
1544097af5
Merge branch '3.x'
2021-01-01 13:55:12 +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