Commit Graph

8404 Commits

Author SHA1 Message Date
Takeshi KOMIYA
01cb3a75c7 Fix #3558: Emit warnings if footnotes and citations are not referenced 2017-03-18 21:03:16 +09:00
Takeshi KOMIYA
75bc85d70d Fix docstring 2017-03-18 18:31:16 +09:00
Takeshi KOMIYA
aa6dfb8b41 Merge branch 'stable' 2017-03-18 18:25:50 +09:00
Takeshi KOMIYA
2dae11aa68 Fix #3552: linkcheck raises UnboundLocalError 2017-03-18 18:17:59 +09:00
jfbu
ada9aa6b94 Markup in CONTRIBUTING.rst 2017-03-18 09:49:18 +01:00
Takeshi KOMIYA
a0e1eb6544 Update CHANGES for PR #3520 2017-03-18 17:38:50 +09:00
Takeshi KOMIYA
a67c7855aa Merge pull request #3520 from agjohnson/fix-domain-py-nesting
Fix Python domain nesting
2017-03-18 17:33:56 +09:00
jfbu
2b929dc27e Fix syntax coloring in CONTRIBUTING.rst 2017-03-18 09:25:48 +01:00
Tormod Landet
a9243276cc Mention style-checks and type-checks in devguide 2017-03-18 09:15:00 +01:00
Takeshi KOMIYA
0df0a11cfa Add testcode for sphinx.pycode 2017-03-18 15:00:28 +09:00
Takeshi KOMIYA
2445b70848 Merge pull request #3560 from TormodLandet/document-style-check
Mention style-checks and type-checks in the devguide
2017-03-18 14:58:53 +09:00
jfbu
39bce2f90a Remove documentation of `\sphinxquotedblleft` from next minor release
Indeed, the macros will perhaps be removed already at 1.6, (PR #3562),
hence it is better not to document them at 1.5.4.
2017-03-16 23:01:12 +01:00
Jean-François B
0d85348454 Merge pull request #3563 from mitya57/fix-invalid-escape
tests: Fix invalid escape sequence
2017-03-16 19:23:51 +01:00
Dmitry Shachnev
1d12165a12 tests: Fix invalid escape sequence
This fixes this warning:
tests/test_build_latex.py:958: DeprecationWarning: invalid escape sequence \s
2017-03-16 20:22:58 +03:00
Tormod Landet
f6661fb0f3 Mention style-checks and type-checks in devguide 2017-03-16 09:35:11 +01:00
Anthony Johnson
2795889310 Review feedback, cleanup, and docs 2017-03-15 23:14:32 -07:00
Anthony Johnson
4a61366ff1 Some cleanup 2017-03-15 23:13:08 -07:00
Anthony Johnson
3ba60ffd5d Add nesting, module directive, and method directive to JavaScript domain
* Adds nesting to the JavaScript domain, to allow for nesting of elements
* Adds the ``js:module`` directive, which behaves similarly to the Python
  directive
* Adds the ``js:method`` directive, an alias to ``js:function``
* Adds roles for ``js:mod`` and ``js:meth``
* Updates tests to passing cases
* Adds docs for new features
2017-03-15 22:27:48 -07:00
Takeshi KOMIYA
7a3f35e014 Merge pull request #3554 from jdemeyer/allow_no_ssl
Allow running Sphinx without ssl
2017-03-16 10:44:59 +09:00
Takeshi KOMIYA
c1a6377caa Merge pull request #3555 from mitya57/stable
test_markup: Make verify functions test both HTML and LaTeX outputs
2017-03-16 10:28:48 +09:00
Jeroen Demeyer
f314245aa5 Allow running Sphinx without ssl 2017-03-15 10:48:03 +01:00
Dmitry Shachnev
1717a95a77 Fix a test failure which was uncovered by the previous change
In PR #3527 the LaTeX output for quotes has changed, but the test was
not updated.
2017-03-15 11:29:50 +03:00
Rob Ruana
b7efbfe615 Fix #3174: [Napoleon] Defers autodoc-skip-member to other extensions if Napoleon doesn't care if the member is skipped 2017-03-14 18:53:27 -07:00
Takeshi KOMIYA
b7cada236f Merge pull request #3556 from rayl/nitpicky-5a7eb99e4
Fix possible bug in commit 5a7eb99e4
2017-03-15 10:39:15 +09:00
Ray Lehtiniemi
d4af39ff7d Fix possible bug in commit 5a7eb99e4
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2017-03-14 17:27:56 -06:00
Dmitry Shachnev
6e0467ca77 test_markup: Make verify functions test both HTML and LaTeX outputs
Previously it would return after performing the HTML check, without
running the LaTeX one.
2017-03-14 22:34:51 +03:00
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