Commit Graph

7691 Commits

Author SHA1 Message Date
Jean-François B
7325f8fe8c Merge pull request #3083 from jfbu/add_to_new_default_latex_settings
Add to new default latex settings
2016-11-04 21:59:30 +01:00
jfbu
e4d73df110 refactor multilingual setup, let "polyglossia" use `\setmainlanguage` 2016-11-04 21:00:37 +01:00
Takeshi KOMIYA
2fb9f81208 Update CHANGES for PR#2495 2016-11-04 23:55:32 +09:00
Takeshi KOMIYA
a503849ac1 Merge pull request #2495 from electrofelix/linkcheck-skip-anchors
Allow skipping anchor checking using regex
2016-11-04 23:53:46 +09:00
Takeshi KOMIYA
463ab88b67 docs: sourcename has empty value on creating genindex and so on (refs: #3094) 2016-11-04 23:36:27 +09:00
Takeshi KOMIYA
56958227c8 Refactor test_bulid_latex: add skip_if_stylefiles_notfound() 2016-11-04 15:14:41 +09:00
Takeshi KOMIYA
3f4721e140 Refactore test_build_latex: add compile_latex_document() 2016-11-04 12:06:19 +09:00
jfbu
f2b63b473b fix python error in latex.py from commit 528b6c3 2016-11-03 20:03:53 +01:00
jfbu
aa1ea9b863 latex use more of `\protected\def`
this makes the LaTeX macros more robust, less worrying about where they
are used.
2016-11-03 19:15:29 +01:00
jfbu
ee8b558f14 latex use `\protected macros for \sphinxstyle...`'s commands
also use ``\sphinxcode`` for literals in titles which will add the
extras (straight quotes, breaks allowed at ``/`` and some other
characters)
2016-11-03 18:54:24 +01:00
jfbu
d32d6f56ef replace `\DeclareRobustCommand by \long\protected\def` 2016-11-03 18:41:57 +01:00
jfbu
097967ed25 allow word wrap in PDF output for inline literals
modified:   sphinx/texinputs/sphinx.sty
2016-11-03 18:28:52 +01:00
Takeshi KOMIYA
7a6f2ae894 Fix py3.6b3 crashes with empty Callable annotation 2016-11-03 10:01:21 +09:00
Alex Grönholm
07caa321d3 Add comment about skipping plain Callable 2016-11-02 21:43:33 +02:00
Alex Grönholm
a1f6baaa81 Fix annotations formatting for plain typing.Callable
The typing.Callable class may be used without generic arguments, in which case it is equivalent to collections.abc.Callable.
2016-11-02 21:43:33 +02:00
Takeshi KOMIYA
0f35b94500 Update CHANGES for PR#3071 2016-11-02 23:01:58 +09:00
Takeshi KOMIYA
b32d9a9bc7 Merge pull request #3071 from mleinart/autodoc/pass_through_decorators
Autodoc: Allow mocked module decorators to pass-through functions unchanged
2016-11-02 23:01:16 +09:00
jfbu
1777939fa4 Update CHANGES for PR#3059 2016-11-02 14:55:47 +01:00
Jean-François B
67fe3d6da0 Fix #2865: let LaTeX image inclusion obey `scale` before textwidth fit (#3059) 2016-11-02 14:50:41 +01:00
Jean-François B
358f5e08ef Merge pull request #3055 from jfbu/allowreferencesinlatextopics
Fix #2461: re-allow footnotes in topics for latex PDF
2016-11-02 14:45:27 +01:00
Takeshi KOMIYA
bcff35663f Fix #3111: autodoc crashes with python3.6b3
Since 3.6b3, structure of typing.Callable has been changed.
2016-11-02 22:29:22 +09:00
Takeshi KOMIYA
1aedca64e3 Update CHANGES for PR#3074 2016-11-02 22:05:32 +09:00
Bryan Van de Ven
ee7a44656a fix calling convention for debu arguments
The message string has two placeholders, the debug args need to be
unpacked so that all the placeholders are filled.
2016-11-02 22:04:32 +09:00
Takeshi KOMIYA
a880d0e84e Fix #3114: Install enum34 to test autodoc on py27 2016-11-02 21:35:50 +09:00
Takeshi KOMIYA
b014c34586 Fix #3111: autodoc crashes with python3.6b3
Since 3.6b3, structure of typing.Callable has been changed.
2016-11-02 20:08:21 +09:00
jfbu
da1e157e90 fix typo in CHANGES 2016-11-02 08:18:53 +01:00
jfbu
b9bb7d8810 Update CHANGES for PR#3104 2016-11-02 08:16:30 +01:00
Takeshi KOMIYA
ae1f523d52 Add `--extensions to sphinx-quickstart` to support enable arbitary extensions from command line (ref: #2904) 2016-11-02 11:11:15 +09:00
Jean-François B
a759e5eae7 Merge pull request #3104 from jfbu/latex_keyvalueoptions
``'sphinxpackageoptions'`` for key=value styling of Sphinx LaTeX
2016-11-01 19:25:49 +01:00
jfbu
aff72931fc minor update to latex.rst 2016-10-30 00:08:17 +02:00
jfbu
e70746e8da uppercase colour names (latex styling) 2016-10-30 00:04:23 +02:00
jfbu
a48a9c883a style the latex chapter in the docs (for pdf output) 2016-10-29 16:30:33 +02:00
jfbu
528b6c374c refactor the handling of latex options
previously, modifying a single option via ``\sphinxsetup`` redeclared
all dimensions and colours, even if they had not changed.
2016-10-29 14:03:12 +02:00
Timotheus Kampik
ed87e531bd use pushd and popd to enable bat build from different dir #2215 (now with correct line endings) 2016-10-28 23:37:50 +02:00
jfbu
b6695ad7fc use 'sphinxpackageoptions' as argument to `\sphinxsetup`
Indeed, LaTeX's handling of package options is not robust when options
contain LaTeX macros; thus we pass all the user customization to
``\sphinxsetup``, not as package options to "sphinx.sty".

Also, make parameters for long code line breaking (ref #2343, 1.4.2)
accessible as sub-keys of 'sphinxpackageoptions'. The space reserved for
the continuation character has been modified for coherence and
compatibility with use in footnotes. In fact it did not use the correct
font for the dimension computation. The documentation explains how to
recover former value.
2016-10-28 21:45:44 +02:00
jfbu
67a785c2ab use less macros for dimension parameters in LaTeX styling 2016-10-28 17:01:14 +02:00
jfbu
fb8bb072cb `'sphinxpackageoptions'` for key=value styling of Sphinx LaTeX 2016-10-27 20:24:33 +02:00
shimizukawa
a5bdf1fdae Closes #3060: autodoc supports documentation for attributes of Enum class. Now autodoc render just the value of Enum attributes instead of Enum attribute representation. 2016-10-28 00:02:09 +09:00
Takeshi KOMIYA
99147c1372 Merge pull request #3101 from jfbu/update_stylefile_checklist
update style files checklist for latex tests
2016-10-27 19:52:08 +09:00
Darragh Bailey
22765990f0 Allow skipping anchor checking by regex
To avoid needing to turn off anchor checking across the entire
documentation allow skipping based on matching the anchor against a
regex.

Some sites/pages use JavaScript to perform anchor assignment in a
webpage, which would require rendering the page to determine whether
the anchor exists. Allow fine grain control of whether the anchor is
checked based on pattern matching, until such stage as the retrieved
URLs can be passed through an engine for deeper checking on the HTML
doctree.
2016-10-27 10:52:04 +01:00
jfbu
4d3f5b3c1c update style files checklist for latex tests 2016-10-27 11:43:20 +02:00
jfbu
5142d17e41 fix mark-up in AUTHORS (funny effect of `T.`) 2016-10-27 10:08:26 +02:00
jfbu
7a96becca1 Update CHANGES for PR#3096 2016-10-27 10:02:53 +02:00
Jean-François B
5fa47df1e8 Merge pull request #3096 from jfbu/latex_fixtoodeeplynested
Fix #777: (part II) LaTeX output "too deeply nested"
2016-10-27 09:58:48 +02:00
jfbu
4e2bdf6671 ignore `'maxlistdepth'` if package "enumitem" in use 2016-10-27 09:24:12 +02:00
jfbu
183a2ca75a Fix label placement in doc/config.rst (caused extra white line) 2016-10-26 23:49:49 +02:00
jfbu
e59ab1538d fix typos and mark-up in doc/config.rst 2016-10-26 23:16:15 +02:00
jfbu
a3cf7185f1 fix mark-up in doc/config.rst 2016-10-26 22:56:58 +02:00
jfbu
787fffd25f fix test of current listdepth which was too permissive by one unit 2016-10-26 19:07:44 +02:00
jfbu
4470e7d565 use "kvoptions" to handle sphinx latex package options
will facilitate adding options in the future, with a "key=value" syntax.
2016-10-26 12:06:05 +02:00