Commit Graph

7777 Commits

Author SHA1 Message Date
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
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
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
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
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
Jakob Lykke Andersen
9249db2472 Make docfield xref changes backwards compatible 2017-03-11 18:56:13 +09: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
jfbu
990f51d680 Update latex docs 2017-03-10 08:42:37 +01:00
Jakob Lykke Andersen
9ca5d990f6 Add callback on domains for xrefs from fields.
Fixes sphinx-doc/sphinx#2607.
Fixes sphinx-doc/sphinx#2665.
2017-03-08 20:35:44 +09:00
jfbu
71e1642749 Protect TeX double quotes ligatures in inline literals (refs #3507) 2017-03-07 22:20:11 +01:00
Jakob Lykke Andersen
38b38d8aff Make flake8 stop complaining. 2017-03-07 20:47:53 +09:00
Jakob Lykke Andersen
bc527c533e C++, better error messages for 'func' and 'any' refs.
Followup to sphinx-dox/sphinx#2952.
On error try to get reparse without parens to get the correct message.
2017-03-07 20:28:04 +09:00
Takeshi KOMIYA
e060f65bc5 Merge pull request #3519 from agjohnson/add-domain-tests
Add tests for xrefs on Python and JavaScript domains
2017-03-07 11:20:32 +09:00
Anthony Johnson
3502336b13
Add tests for xrefs on Python and JavaScript domains
These are just the passing test cases for the domains currently. I am going to
patch up issues with nesting on both domains to start, so these are the test
cases I'll be testing against. I'll see about addressing the other core
domains, or at very least the cpp domain, with similar tests if this looks
okay.

So far, these tests only test against methods/functions for the basic nesting
structure. More complete tests will test additional domain roles.

Refs #662
2017-03-05 16:00:25 -08:00
jfbu
f8391ea487 Update CHANGES for PR#3497 2017-03-03 09:56:39 +01:00
Jean-François B
812d835fd1 Merge pull request #3497 from jfbu/fixlongtablelastcolumn
Fix #3496: latex longtable's last column may be wider than its contents
2017-03-03 09:48:47 +01:00
jfbu
e9304fd41d Keep the frame around "Continued on next page" longtable footer 2017-03-03 09:39:59 +01:00
jfbu
eb46ae20f8 Fix #3496: latex longtable's last column...
... may be much wider than its contents
2017-03-02 19:11:22 +01:00
Takeshi KOMIYA
811df6b2e3 Fix #3487: intersphinx: failed to refer options 2017-03-03 00:50:55 +09:00
Jean-François B
042c2beafa Merge pull request #3492 from jfbu/fixhtmlcompactlistsdoc
Close #3489: bullet list rendered "opened up"
2017-03-02 15:22:22 +01:00
jfbu
4119439f3a Close #3489: bullet list rendered "opened up" 2017-03-02 14:56:27 +01:00
Takayuki SHIMIZUKAWA
dbad2bfcda update CHANGES refs #2073, #3443, #3490 2017-03-02 16:52:56 +09:00
Takayuki SHIMIZUKAWA
7fceef480f Merge pull request #3490 from shibukawa/fix/pot_creation_date
fix gettext builder that writes pot files unless the content are same without creation date
2017-03-02 16:49:30 +09:00
Yoshiki Shibukawa
8ebc97d0c8 fix gettext builder that writes pot files unless the content are same without creation date 2017-03-02 15:11:12 +09:00
Takeshi KOMIYA
3a3cec7a8e Fix #3488: objects.inv has broken when `release or version` contain return code 2017-03-02 13:32:46 +09:00
Takeshi KOMIYA
cdacabdab3 Merge pull request #3483 from shibukawa/fix/replace_etree
replace internal copy of ElementTree with standard library's ElementTree
2017-03-01 13:39:27 +09:00
Yoshiki Shibukawa
3502831214 replace internal copy of ElementTree with standard library's ElementTree 2017-03-01 12:01:40 +09:00
Takeshi KOMIYA
099ddc9c76 Update CHANGES for PR#3470 2017-03-01 02:32:33 +09:00
Takeshi KOMIYA
1e9c791285 Merge pull request #3470 from mitya57/stable
Make genindex support all kinds of letters, not only Latin ones
2017-03-01 02:31:32 +09:00
Jean-François B
7d0ac36e2d Merge pull request #3478 from jfbu/transitionlatex
Remove unneeded ``{}`` in LaTeX transition code
2017-02-28 16:04:37 +01:00
Takeshi KOMIYA
dea2064dfc Update docstring to patches for table directives
table directives on docutils-0.13.1+ set source information to
caption node.  So these patch will be not necessary in feature
version of docutils.
https://sourceforge.net/p/docutils/patches/137/
2017-02-28 23:23:02 +09:00
jfbu
434a32d1c8 Remove unneeded `{}` in LaTeX transition code 2017-02-28 10:00:41 +01:00
jfbu
9752525ed1 Make sure spaces have no stretchability in literal blocks (LaTeX)
For PDF via LaTeX PR #2304 (ac7d7b5) implemented wrapping of long code
lines in literal blocks and PR #3340 (8c21abe) extended this to parsed
literals. On this occasion the space was defined as a LaTeX macro,
depending on the used font, and as it allowed some potential uses it was
allowed for the space to obey the stretch and shrink as configured in
the used font. The default is to render using the mono font
(``\ttfamily``), hence a priori the stretchability and shrinkability are
anyhow zero. Non-zero stretch/shrink was left as a theoretical
possibility for special purposes; but although it may make sense to use
a "variable mono" for non-Python code, it is certainly not adequate for
things like verbatim grid tables...

The problem is that XeTeX does not set the TeX font parameters to zero
for OpenType fonts of Mono type, as is discussed there:
  http://tug.org/pipermail/xetex/2017-January/026956.html
and in particular applies to the Latin Modern OpenType font, which is
the default when loading fontspec package. Due to this problem there was
a LaTeX kernel patch update late January 2017 to forcefully set the
corresponding TeX font parameters to zero (indeed since 2017/01/01
release LaTeX uses OpenType fonts by default under XeTeX/LuaTeX
engines.) But this is only a specific kludge for handling the Latin
Modern Mono font. Other OpenType fonts of MonoSpace type may still show
the XeTeX issue.

To make things simple, this commit simply avoids ascribing to the space
the font stretch or shrink as set in the TeX font parameters. This will
alleviate problems with Monospace fonts with XeTeX and avoir user
reports that their literal-blocks are all wrong.

Existing documents are not affected. The possibility to use a variable
space mono font had not been documented.
2017-02-27 20:34:56 +01:00
Dmitry Shachnev
73cd4b038a Add tests for the previous two changes 2017-02-27 15:48:26 +03:00
Dmitry Shachnev
d534692a0e Make genindex support RTL languages
If a string starts with an RTL mark, simply skip it and use the following
character as the first letter.
2017-02-27 15:45:34 +03:00
Dmitry Shachnev
046abd0577 Make genindex support all kinds of letters, not only Latin ones
Without this i.e. all names starting with a Cyrillic letter are moved
into a Symbols section rather than being split into sections by letter.
2017-02-27 15:04:40 +03:00
Takeshi KOMIYA
c8bb907a41 Merge pull request #3473 from shibukawa/fix/epub_duplicated_nav_xhtml
epub has duplicated nav.xhtml link except first time
2017-02-27 10:35:26 +09:00
Yoshiki Shibukawa
b1808e7cd5 epub has duplicated nav.xhtml link except first time 2017-02-27 07:58:56 +09:00
jfbu
1c4112b9cc typo in CHANGES 2017-02-26 23:42:49 +01:00
jfbu
d4bf543e7e add missing space in a CHANGES entry 2017-02-26 23:41:37 +01:00