Commit Graph

8276 Commits

Author SHA1 Message Date
jfbu
4712faf907 Remove parskip space above logo image on PDF title page 2017-03-13 09:40:51 +01:00
jfbu
4b8295d981 If no logo, do insert blank line between rule and title on PDF titlepage 2017-03-13 09:09:49 +01:00
jfbu
65f9be9311 Remove legacy accidental blank line between top rule and logo in PDF
Probably for accidental reasons, pdflatex and lualatex (but not platex
and xelatex) were configured with a blank line above the logo on title
page, below the top rule. This commit removes it.
2017-03-13 08:32:11 +01:00
jfbu
4b2fff4e5e Streamline obsolete color set-up in LaTeX style file
The file ``pdfcolor.tex`` included in tex distributions is for Plain
pdfTeX, not for LaTeX use. Loading it complicates task of supporting
multiple TeX engines. If needed all corresponding colour names are
better available from passing to ``color`` or ``xcolor`` the
``dvipsnames`` option. It is better to leave responsability of using
this option to Sphinx user, if needed. The macros for setting the color
defined by ``pdfcolor.tex`` were never documented to Sphinx user, and
they can not be used from reST apart from ``.. raw:: latex`` directive,
they are for Plain TeX without use of ``color`` package. Thus, this
commit drops loading this file and the complicated conditionals around
it (``\ifsphinxpdfoutput``), which are also used in the class files
``sphinxmanual.cls``, ``sphinxhowto.cls``.

Also, this fixes issue #2693.
2017-03-13 08:10:56 +01:00
jfbu
73b8cf44cf Revert "Amend merged PR#2736 to maintain strict stability of pdf title page"
This reverts commit 7db8141238.

As discussed at

<https://github.com/sphinx-doc/sphinx/pull/2736#issuecomment-230140016>

platex and xelatex engines led to a slightly different title page layout
missing a blank line underneath the top rule (above the logo) compared
to pdflatex and lualatex. This was probably accidental.
2017-03-13 08:07:46 +01:00
Takeshi KOMIYA
dc61f68e14 Fix travis error 2017-03-13 13:12:58 +09:00
Takeshi KOMIYA
cb93dbf8aa Fix failure on assemble_doctree() (refs: #3534) 2017-03-13 11:35:45 +09:00
Takeshi KOMIYA
75c7c80299 Fix collectors does not returns ext-metadata 2017-03-13 10:46:07 +09:00
jfbu
46244ae9f8 Correct missing space before type annotation 2017-03-12 13:32:01 +01:00
jfbu
9d58a0b96c Split some long type-checking annotation lines 2017-03-12 13:20:55 +01:00
jfbu
bc0682af0e Merge branch 'stable'
Conflicts resolved:
	sphinx/domains/cpp.py
	sphinx/domains/python.py
	sphinx/texinputs/sphinx.sty
	sphinx/util/docfields.py
	sphinx/writers/latex.py
	tests/test_build_latex.py

Also updated:
    sphinx/domains/__init__.py
2017-03-12 13:01:47 +01:00
Jean-François B
741acb04e9 Merge pull request #3544 from jfbu/reorderlatexmacros
Reorder macros in LaTeX style file for easier maintenance
2017-03-12 12:51:06 +01:00
jfbu
b176957729 Remove superfluous `\long` from text styling macro definitions
All LaTeX commands such as \textbf, \emph, \underline.. are "short",
thus there was no need of ``\long`` prefix. Regarding
``\sphinxoptional`` which was defined via ``\newcommand``, the ``\long``
is there for full backwards compatibility, but a priori the argument
will always be a "short" one (i.e. not containing empty line or ``\par``
token.)
2017-03-12 10:57:26 +01:00
jfbu
a62ea77a2d Reorder macros in LaTeX style file for easier maintenance 2017-03-12 10:55:02 +01:00
Takeshi KOMIYA
518cfca9fb Remove unused variable 2017-03-12 18:03:04 +09:00
Jakob Lykke Andersen
acf5f94940 C++, fix parsing error of non-type template arg
Fixes sphinx-doc/sphinx#3542
2017-03-12 15:03:20 +09:00
Jakob Lykke Andersen
a98414355a Merge pull request #3528 from jakobandersen/field-pending-xref-annotation
Callback on domains to annotate xrefs created from docfields.
2017-03-12 12:32:45 +09:00
Jakob Lykke Andersen
2f931be89b Merge branch 'stable' into field-pending-xref-annotation 2017-03-12 12:04:47 +09:00
Takeshi KOMIYA
6fbc42115e Merge pull request #3540 from rayl/fix-3348
Fix #3348: Show decorators in literalinclude and viewcode directives
2017-03-12 11:10:24 +09:00
Ray Lehtiniemi
560c8ab29d Add more decorator tests
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2017-03-11 14:16:23 -07:00
Ray Lehtiniemi
06b6e07b98 Add tests
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2017-03-11 13:40:47 -07:00
jfbu
ba0209c9b1 Typo in CHANGES 2017-03-11 20:36:37 +01:00
Takeshi KOMIYA
db6e1db5cb doc: Add warning for only directive (refs: #3539) 2017-03-12 01:47:11 +09:00
jfbu
4a6e5863f4 Update CHANGES for PR #3538 2017-03-11 16:58:32 +01:00
Jean-François B
3128a4327d More robust hyperlink macros in LaTeX output (refs #3317, #3340, #3533) (#3538)
More robust hyperlink macros in LaTeX output (refs #3317, #3340, #3533)
2017-03-11 16:53:53 +01:00
jfbu
0f8abd16a2 Add `Dependencies` group to CHANGES 2017-03-11 16:47:48 +01:00
jfbu
538f55ed85 Update CHANGES for PR #3082 2017-03-11 15:27:00 +01:00
Takeshi KOMIYA
96c2b1d470 Merge pull request #3541 from tk0miya/add_event_manager
Add EventManager
2017-03-11 20:16:35 +09:00
Takeshi KOMIYA
fba23bd2bf Add EventManager 2017-03-11 19:50:49 +09:00
Jakob Lykke Andersen
9249db2472 Make docfield xref changes backwards compatible 2017-03-11 18:56:13 +09:00
Takeshi KOMIYA
dbffb053c9 Merge pull request #3534 from tk0miya/add_post_transform
Add post transform
2017-03-11 09:28:57 +09:00
Takeshi KOMIYA
df68d3dec6 Merge pull request #3536 from Naereen/patch-1
Prevent a TypeError bug for get_full_modname()
2017-03-11 09:27:36 +09:00
Ray Lehtiniemi
c5060079e4 Fix #3348: Show decorators in literalinclude and viewcode directives
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2017-03-10 16:48:47 -07:00
Lilian Besson
2a4a6d0cda Union[unicode, None] → unicode 2017-03-10 22:56:36 +01:00
Jean-François B
87c1f6ef5b Merge pull request #3082 from jfbu/uselatexmk
Use latexmk for pdf (and dvi) targets
2017-03-10 19:27:10 +01:00
jfbu
19558c9800 Update latex builder docs (latexmk requirement) 2017-03-10 19:11:06 +01:00
Lilian Besson
c7c4f8f0f4 Prevent a TypeError bug for get_full_modname()
It prevents this bug:
```python
viewcode can't import None, failed with error "__import__() argument 1 must be str, not None"
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/sphinx/ext/viewcode.py", line 28, in _get_full_modname
    return get_full_modname(modname, attribute)
  File "/usr/local/lib/python3.5/dist-packages/sphinx/util/__init__.py", line 263, in get_full_modname
    __import__(modname)
TypeError: __import__() argument 1 must be str, not None
```
2017-03-10 10:04:13 +01:00
jfbu
448dc08924 Update CHANGES for PR #3527 2017-03-10 09:29:36 +01:00
Jean-François B
94e9d3e28b Merge pull request #3527 from jfbu/fixdoublequotes
Protect TeX double quotes ligatures in inline literals (refs #3507)
2017-03-10 09:24:23 +01:00
Takeshi KOMIYA
3594efaa27 Fix mypy violations 2017-03-10 17:00:21 +09:00
Takeshi KOMIYA
eb5577bb9c Update docs 2017-03-10 16:43:27 +09:00
jfbu
990f51d680 Update latex docs 2017-03-10 08:42:37 +01:00
Takeshi KOMIYA
97c0a9051a Fix flake8 violations 2017-03-10 16:16:16 +09:00
Takeshi KOMIYA
79542ca70d Do not emit DeprecationWarning for env.resolve_references()
The function is used from many builders which combines multiple
doctrees to single one (e.g. LaTeX, singlehtml and so on).
To deprecate it might cause big troubles for 3rd party builders.
So I withdraw the deprecation.
2017-03-10 11:34:02 +09:00
Takeshi KOMIYA
5a7eb99e46 Move env._warn_missing_reference() to ReferenceResolver 2017-03-10 11:21:58 +09:00
Takeshi KOMIYA
ff94ba9f89 Move env._resolve_any_reference() to ReferenceResolver 2017-03-10 11:08:13 +09:00
Takeshi KOMIYA
65bde6a01e Reduce warning 2017-03-10 10:53:40 +09:00
Takeshi KOMIYA
f6f6eac20c Add OnlyNodeTransform as a tranform 2017-03-10 10:49:08 +09:00
Takeshi KOMIYA
eb40a36aa4 Add ReferenceResolver as a post-transform 2017-03-10 10:49:08 +09:00
Takeshi KOMIYA
7117206b2a Add SphinxTransform as a base class of Transforms 2017-03-10 10:49:08 +09:00