Jakob Lykke Andersen
f3b440777b
C++, support explicit member instantiations
...
See michaeljones/breathe#325
2017-12-04 22:38:37 +01:00
Stephen Finucane
77ff7d7e90
sphinx-build: Use 'ArgumentParser.error'
...
This simplifies a common pattern used here. This does result in a change
in the output code from 1 to 2 for some cases, but this shouldn't be an
issue as we already emit 2 for any parser issues.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-04 17:19:58 +00:00
Stephen Finucane
d46273ca4a
quickstart: Rework how we collect extensions
...
This is a little more flexible than the existing set up and makes
maximum use of argparse capabilities.
This has the side-effect of no longer including configuration for the
'sphinx.ext.todo' extension when said extension is not enabled.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-03 19:24:58 +00:00
Stephen Finucane
4c0f657ee6
quickstart: Rework 'do_prompt' function
...
The 'd' and 'key' values are used on a single line. Move these outside
the function to allow us to do other things with this function.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-03 19:24:58 +00:00
Stephen Finucane
88d7dc1bd3
quickstart: Simplify --(no-)option handling
...
The standard pattern for doing this is to use a common 'dest'.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-03 19:24:58 +00:00
Jakob Lykke Andersen
0ff217e1b2
C++, fix hyperlinking of nested names
2017-12-01 20:07:35 +01:00
jfbu
10ec24b80d
Fix #4267 by passing warn
option to package textcomp.
...
This silences its silly build-breaking errors in case some font
substitution proved necessary for the characters it supports.
2017-11-29 17:07:10 +01:00
Jakob Lykke Andersen
eff13bc4c4
C++, fix bug in new sizeof... expression parsing
...
See sphinx-doc/sphinx#4114
2017-11-27 07:51:30 +01:00
Jakob Lykke Andersen
56b520958f
C++: properly link class reference to class from inside constructor
...
Fixes sphinx-doc/sphinx#4099
2017-11-26 22:37:26 +01:00
Jakob Lykke Andersen
d6ec677c61
C++, parse decltype(<expr>)
...
Fixes sphinx-doc/sphinx#4094
2017-11-26 21:41:15 +01:00
Jakob Lykke Andersen
e7ba2abfb2
Fix type annotation error
2017-11-26 20:40:04 +01:00
Jakob Lykke Andersen
6e721e98fe
C++, parse more unary expressions
...
Last part, fixes sphinx-doc/sphinx#4114
2017-11-26 20:32:24 +01:00
Jakob Lykke Andersen
94934b2bdf
C++, reintroduce expression fallback parser
...
Part of fixing sphinx-doc/sphinx#4114 .
This reverts commit b55526f4e8
.
2017-11-26 15:36:35 +01:00
Jakob Lykke Andersen
0aa9d4c87e
C++, parse more types of integer literals
...
Fixes case 0 of sphinx-doc/sphinx#4114
2017-11-26 12:45:27 +01:00
Jakob Lykke Andersen
466241d43a
C++, small cleanup after PR #4189
2017-11-25 14:37:27 +01:00
Jakob Lykke Andersen
697248aec7
Merge branch 'cxx2a-concepts' of git://github.com/mickk-on-cpp/sphinx into mickk-on-cpp-cxx2a-concepts
2017-11-20 22:31:37 +01:00
Takeshi KOMIYA
931148eadb
Merge pull request #4238 from tk0miya/refactor_env.read_doc
...
Refactor env.read doc
2017-11-16 10:58:36 +09:00
Takeshi KOMIYA
6c2beef4f1
Merge pull request #4236 from tk0miya/4226_apidoc_generates_oldstyle_makefile
...
Fix #4226 : apidoc: Generate new style makefile (make-mode)
2017-11-12 18:55:08 +09:00
Takeshi KOMIYA
199256e675
Fix #4226 : apidoc: Generate new style makefile (make-mode)
2017-11-12 12:26:51 +09:00
Takeshi KOMIYA
0c98d04507
Merge pull request #4233 from tk0miya/4221_napoleon_loads_autodoc_explicitly
...
Fix #4221 : napoleon depends on autodoc, but users need to load it man…
2017-11-12 11:32:50 +09:00
Takeshi KOMIYA
a605f2b619
Merge pull request #4234 from pv/autosummary-importfix
...
Fix issue in usage of import_module in autosummary
2017-11-12 11:30:42 +09:00
Rob Ruana
9095ee4bc4
Merge branch 'stable' into 4221_napoleon_loads_autodoc_explicitly
2017-11-11 13:29:20 -05:00
Pauli Virtanen
189e25ac0e
Fix issue in import_module returning wrong module
2017-11-11 18:00:03 +01:00
Takeshi KOMIYA
baaa0e3640
Merge branch 'stable'
2017-11-12 01:53:28 +09:00
Takeshi KOMIYA
bdebbdf873
Update CHANGES for PR #2299
2017-11-12 01:51:40 +09:00
Takeshi KOMIYA
c1555638ae
Merge pull request #2299 from scVENUS/fix_attribute_docstrings_of_imported_class
...
Fix #2298 : automodule fails to document a class attribute.
2017-11-12 01:48:48 +09:00
Takeshi KOMIYA
4abe6cb62e
Fix #4221 : napoleon depends on autodoc, but users need to load it manually
2017-11-11 21:53:20 +09:00
Takeshi KOMIYA
3d8ce5a7c4
Fix mypy violations
2017-11-11 20:56:07 +09:00
Takeshi KOMIYA
507f172866
Make ShowUrlsTransform as a subclass of Transform
2017-11-11 18:35:53 +09:00
Takeshi KOMIYA
63a5eaf185
Merge pull request #4232 from sphinx-doc/4212_autosummary-importsafe
...
4212 autosummary importsafe
2017-11-11 18:31:14 +09:00
Takeshi KOMIYA
c3113d2e17
Update CHANGES for PR #4231
2017-11-11 18:30:32 +09:00
Takeshi KOMIYA
4e11b78f01
Merge pull request #4231 from berkerpeksag/fix-3549
...
Apply fixFirefoxAnchorBug only under Firefox
2017-11-11 18:28:55 +09:00
Takeshi KOMIYA
8b090c6372
Fix flake8 violation
2017-11-11 17:00:50 +09:00
Takeshi KOMIYA
2c1ac5243c
Update CHANGES for PR #4212
2017-11-11 16:47:59 +09:00
Takeshi KOMIYA
71d4bc4a3e
Move import_module() to sphinx.ext.autodoc.importer
2017-11-11 16:44:35 +09:00
Berker Peksag
17dc8beeaf
Apply fixFirefoxAnchorBug only under Firefox
...
A compatibility shim for `$.browser` was added in
c608af4bab
.
Fixes #3549
2017-11-11 10:03:55 +03:00
Pauli Virtanen
d5bea6b85a
autosummary: catch all exceptions when importing modules
...
Module imports may raise any exceptions, including SystemExit, which
need to be caught.
2017-11-02 23:04:43 +01:00
Takeshi KOMIYA
f46c91b652
Merge branch 'stable'
2017-11-02 00:49:10 +09:00
Takeshi KOMIYA
c4e364ee63
Rename tests directory; roots/test-doctest -> roots/test-ext-doctest
2017-11-02 00:03:29 +09:00
Takeshi KOMIYA
79df05b36d
Revert "Add :confval:smart_quotes
to disable smart quotes through `conf.py
` (refs: #4142 )"
...
This reverts commit bfd39c12b2
.
2017-11-01 22:43:40 +09:00
Takeshi KOMIYA
26db2675b4
Merge pull request #4208 from tk0miya/4206_label_loses_paragraph_break
...
Fix #4206 : latex: reST label between paragraphs loses paragraph break
2017-11-01 22:23:39 +09:00
Takeshi KOMIYA
29c62c64f5
Fix #4206 : latex: reST label between paragraphs loses paragraph break
2017-11-01 14:33:22 +09:00
jfbu
9701c236d4
Trim docs/config.rst now that new config setting smart_quotes exists
2017-10-31 20:31:56 +01:00
jfbu
4b3d41c855
Fix typo in doc/config.rst
2017-10-31 20:30:32 +01:00
Takeshi KOMIYA
e03ec5b9fb
confirm selected language supports smart_quotes or not (refs: #4112 )
2017-11-01 00:10:33 +09:00
Takeshi KOMIYA
7fab902561
Move UIDs assigning to sphinx.versioning
2017-10-31 23:50:12 +09:00
Takeshi KOMIYA
e2be2ca77f
Move env.warn_and_replace() to SphinxInput class
2017-10-31 23:05:16 +09:00
Takeshi KOMIYA
f7dd8e94e2
Add default_role contextmanager to enable default-role temporarily
2017-10-31 23:05:13 +09:00
Takeshi KOMIYA
1200ab48e1
Refactor parsing by docutils
2017-10-31 23:05:10 +09:00
Takeshi KOMIYA
d23f29f301
Refactor publishment
2017-10-31 23:05:07 +09:00