Commit Graph

9504 Commits

Author SHA1 Message Date
Jakob Lykke Andersen
6d61098058 C++, add test case for sphinx-doc/sphinx#4096 2017-10-03 14:35:10 +02:00
Jakob Lykke Andersen
0aa5c1b697 Merge pull request #4096 from mitya57/cpp-no-assert
C++: Do not assert False if type and declType mismatch
2017-10-03 14:31:33 +02:00
Takeshi KOMIYA
fda530b890 Merge pull request #4077 from stephenfin/move-sphinx-build-to-module
sphinx-build: Move code out of 'sphinx.__init__'
2017-10-03 01:13:45 +09:00
Takeshi KOMIYA
a87ca91a4b Merge pull request #4103 from jschueller/qthelp
Document qthelp configuration
2017-10-03 00:40:15 +09:00
Julien Schueller
21ec11e1a7 Document qthelp configuration 2017-10-02 17:26:21 +02:00
Stephen Finucane
1f5ed02225 sphinx-quickstart: Move code to 'sphinx.cmd'
We're going to move the executable's here (or at least those that part
of the core library). The 'sphinx-build' executable was already moved,
so lets do 'sphinx-quickstart' next.

To avoid breaking packages that are using this feature directly, aliases
for the old 'main' method are included. This is based on what Django
does [1] and, like Django, will allow us to safely remove the old
modules in Sphinx 2.0.

[1] https://github.com/django/django/blob/1.11/django/test/runner.py#L688-L695

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-10-02 15:42:23 +01:00
Stephen Finucane
89f9c7cab7 sphinx-build: Move code out of 'sphinx.__init__'
We have multiple executables in tree and, while 'sphinx-build' is
arguably the most important of these, there's no reason its importance
should warrant inclusion at the package level.

Create a new module, 'sphinx.cmd', and move the code from
'sphinx.__init__' into a 'build' submodule within. This name might be a
bit disingenuous at present, given the availability of 'make-mode' here
too, but that's an artifact of the current executable design and can be
cleaned up later.

To avoid breaking packages that are using this feature directly, aliases
for the old 'main' method are included. This is based on what Django
does [1] and, like Django, will allow us to safely remove the old
modules in Sphinx 2.0.

[1] https://github.com/django/django/blob/1.11/django/test/runner.py#L688-L695

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-10-02 15:39:31 +01:00
Stephen Finucane
d736efbdab Stop handling package issues from 'sphinx-build'
There were a number of package error handlers run as part of the
'sphinx-build' command/executable:

- Unsupported Python version (it should be 2.7 or 3.4+)
- Missing packages (missing docutils, jinja2, and roman, which is part
  of docutils, packages)
- Out-of-date packages (docutils)

This code is mostly unchanged since Sphinx was first released. Python,
and in particular Python's packaging options, have come a long way since
then. Today, all of the above checks are provided by setuptools and the
'setup.py' script, meaning we should never actually get to the point of
triggering any of these checks. This is further reinforced by the fact
that none of the other executables carry out these checks: either this
is a bug that no one has reported in ~8 years or, more likely, the
checks are useless and we don't need them anywhere.

In all, we can happily remove these checks, greatly simplify a piece of
code that's otherwise rarely touched, and trust that setuptools is up to
the job it's designed for.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-10-02 15:16:10 +01:00
Dmitry Shachnev
b01de08e19 C++: Do not assert False if type and declType mismatch
Revert to 1.6.4 behavior where a warning was raised instead.
2017-10-02 07:15:13 +03:00
Takeshi KOMIYA
1892fc18b9 Merge branch 'stable' 2017-10-02 00:41:21 +09:00
Takeshi KOMIYA
3ec2a649b4 Update CHANGES for PR #4002 2017-10-01 22:04:38 +09:00
Timotheus Kampik
e2633a81a4 #3987 remove alabaster-specific sidebars
as default sphinx-quickstart settings
2017-10-01 22:02:55 +09:00
Takeshi KOMIYA
cc4200a980 Merge pull request #4078 from stephenfin/better-flake8
setup.cfg: Ignore .venv
2017-10-01 21:11:45 +09:00
Takeshi KOMIYA
ad68ae93c1 Merge pull request #4087 from brainwane/brainwane-patch-grammarfix
Fix grammar in exclude_patterns explanation comment
2017-10-01 21:10:38 +09:00
Takeshi KOMIYA
fd0a56bd37 Fix #4100: Remove debug print from autodoc extension 2017-10-01 01:39:47 +09:00
Jakob Lykke Andersen
a3b66eb095 Merge pull request #4095 from Andne/cpp-tests
Cleanup the C++/Intersphinx test to avoid std namespace
2017-09-28 21:52:30 +02:00
Jakob Lykke Andersen
b85ea529b8 C++, allow empty template argument lists
See sphinx-doc/sphinx#4094
2017-09-28 20:46:34 +02:00
Andy Neebel
3a0c050af0 Some cleanup to avoid using the std:: namespace 2017-09-28 13:43:46 -05:00
Jakob Lykke Andersen
447c54ae92 C++, adapt sphinx-doc/sphinx#3894 after merge to master
Fixes sphinx-doc/sphinx#4082
2017-09-28 20:10:07 +02:00
jfbu
db36b42e55 Avoid extra space in PDF after image in parsed-literal (refs: Fix #4085) 2017-09-27 12:43:28 +02:00
jfbu
dc129e0532 Fix #4085 Failed PDF build from image in parsed-literal 2017-09-27 09:54:18 +02:00
Sumana Harihareswara
384ccf7813 Fix grammar in exclude_patterns explanation comment 2017-09-26 12:55:51 -04:00
Stephen Finucane
5e1af8df77 setup.cfg: Ignore .venv
We started ignoring this file from Git in commit 75154196b. Now do the
same for flake8.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-09-26 15:43:45 +01:00
Takayuki SHIMIZUKAWA
e15e9a79b4 fix a glitch 2017-09-26 22:49:23 +09:00
Takeshi KOMIYA
5cfefdf2c1 Update CHANGES for PR #3929 2017-09-26 15:47:20 +09:00
Takeshi KOMIYA
1ef0351ec1 Merge pull request #3929 from stephenfin/move-sphinx-apidoc-to-ext
apidoc: Move apidoc to ext/apidoc
2017-09-26 15:42:25 +09:00
Takeshi KOMIYA
43cbd5d0d2 Merge branch 'stable' 2017-09-26 09:49:48 +09:00
Takeshi KOMIYA
0ba56553e3 Bump version 2017-09-26 09:48:09 +09:00
Takeshi KOMIYA
c6fe6a3bf2 Bump to 1.6.4 final 2017-09-26 09:45:14 +09:00
Takeshi KOMIYA
cc5a1542c7 Fix #4051: warn() function for HTML theme outputs 'None' string 2017-09-26 01:29:12 +09:00
Takeshi KOMIYA
f2fbd81a70 Merge pull request #4084 from sphinx-doc/4051_warn_outputs_None_string
Fix #4051: warn() function for HTML theme outputs 'None' string
2017-09-26 01:28:31 +09:00
Takeshi KOMIYA
ec2e60674f Fix #4051: warn() function for HTML theme outputs 'None' string 2017-09-26 00:56:24 +09:00
Takeshi KOMIYA
ee600e308d Merge pull request #4083 from alex/patch-1
Switched stylesheet for font to HTTPS to avoid mixed content issues
2017-09-25 16:54:46 +09:00
Alex Gaynor
f9250e198b Switched stylesheet for font to HTTPS to avoid mixed content issues 2017-09-24 14:02:53 -04:00
Takeshi KOMIYA
3f1f5bb081 Merge pull request #3938 from TimKam/3751-document-m-option
#3751 document -M command line option
2017-09-25 00:09:25 +09:00
Takeshi KOMIYA
617bb43cae Comment out broken test cases temporarily 2017-09-24 23:46:31 +09:00
Takeshi KOMIYA
00169a07e6 Merge branch 'stable' 2017-09-24 22:51:23 +09:00
Takeshi KOMIYA
731f971319 Merge commit '63c15998f66eeb42f3fcfef6087a7264645bee6b' 2017-09-24 22:49:37 +09:00
Takeshi KOMIYA
c32233b0e1 Merge commit '63c15998f66eeb42f3fcfef6087a7264645bee6b~1' 2017-09-24 21:36:04 +09:00
Takeshi KOMIYA
5e6da32237 Reorder .gitignore 2017-09-24 21:19:51 +09:00
Takeshi KOMIYA
9eec5fa8d7 Reorder .gitignore 2017-09-24 21:19:21 +09:00
Takeshi KOMIYA
4d58347c7d Update CHANGES for PR #4052 2017-09-24 20:51:56 +09:00
Takeshi KOMIYA
0b1d8122e8 Merge pull request #4052 from peterjc/sort_highlighting_module_code
Sort before highlighting module code
2017-09-24 20:50:35 +09:00
Takeshi KOMIYA
f7359b2b9a Merge pull request #4050 from tnir/docutils-0-14
Add support for docutils 0.14
2017-09-24 17:10:11 +09:00
Takeshi KOMIYA
7ecc2531f9 Update CHANGES for PR #4055 2017-09-24 17:05:47 +09:00
Oliver Sanders
261f74bc7a Add test for ext.graphviz alignment. 2017-09-24 17:04:25 +09:00
Oliver Sanders
395f4d4ca8 Fix ext.graphviz alignment. 2017-09-24 17:04:24 +09:00
Takeshi KOMIYA
8f20132926 Merge pull request #4055 from oliver-sanders/fix-graphviz-svg-alignment
Fix ext.graphviz alignment.
2017-09-24 17:03:12 +09:00
Takeshi KOMIYA
0f22fcdfb6 Update CHANGES for PR #4067 2017-09-24 16:43:46 +09:00
Takeshi KOMIYA
7b0271ab49 Merge pull request #4067 from mitya57/stable
Return non-zero exit status when make subprocess fails
2017-09-24 16:43:12 +09:00