Takeshi KOMIYA
ae9d786390
Add :confval:suppress_warnings to supress arbitrary warning message
2016-02-23 12:23:06 +09:00
Takeshi KOMIYA
0636d54f6f
`sphinx.ext.graphviz` supports graph substituions by locale
2016-02-22 21:32:06 +09:00
Takeshi KOMIYA
3f0843bca0
Add figure_language_filename to customize filename pattern for figure substitutions
2016-02-22 21:32:05 +09:00
Takeshi KOMIYA
1f5aa28db0
Fix #1921 : Support figure substitutions by locale
2016-02-22 21:32:05 +09:00
Takeshi KOMIYA
46138ca605
Select an image by similarity if multiple images are globbed by `.. image:: filename.*`
...
Until this point, it is used the last image returned from glob.glob().
The order of glob.glob() is determined by filesystem.
After this, Sphinx uses filename similarity to determine the image.
2016-02-22 17:06:35 +09:00
Takeshi KOMIYA
7d1b0ec7a1
Refactor tests: Add @skip_if_graphviz_not_found decorator
2016-02-22 16:30:41 +09:00
Takeshi KOMIYA
d38b3ff2a0
Merge branch 'stable'
2016-02-20 21:19:51 +09:00
Takeshi KOMIYA
f6af2af9a4
Don't show option-role warnings in 1.3.x too
2016-02-20 19:43:39 +09:00
Takeshi KOMIYA
2b93e09c0a
Highlighting fallbacks by default
...
In 423bf7b , I tried to add fallback mechanism to ``python3``. But it breaks
the python3 highlighting on python2 environment.
This adds ``'default'`` to highlighting languages; it works like
``'python3'``, but fallbacks if failed Highlighting. And this removes
try-parse step from ``'python3'`` language. Now, it highlights regardless of
runtime environments. Thanks to Yoshiki SHIBUKAWA.
2016-02-20 00:44:28 +09:00
Georg Brandl
6101cb4ab6
fix tests
2016-02-19 09:25:48 +01:00
Takeshi KOMIYA
b780d2207a
Fix ValueError is raised if LANGUAGE is empty string
2016-02-17 01:13:00 +09:00
Takeshi KOMIYA
423bf7b5e3
Fix code-block literals raises highlighting warnings by default
2016-02-17 01:07:18 +09:00
Takeshi KOMIYA
ae283bc1da
Merge branch 'stable'
2016-02-15 11:51:45 +09:00
Takeshi KOMIYA
50f4862b06
Fix some testcase get error with pygments-2.1.1
2016-02-15 11:46:30 +09:00
Takeshi KOMIYA
4452cc3d2e
Fix #794 : Date formatting in latex output is not localized
2016-02-14 21:48:24 +09:00
Georg Brandl
c1b7b6f369
The default highlight language is now Python 3.
...
References: #2279 .
This means that source code is highlighted as Python 3 (which is mostly
a superset of Python 2), and no parsing is attempted to distinguish
valid code.
2016-02-14 09:21:35 +01:00
Takeshi KOMIYA
7a4f914f91
Fix #1286 , #2099 : Add `sphinx.ext.autosectionlabel` extension to allow reference sections using its title
2016-02-14 16:30:57 +09:00
Takeshi KOMIYA
492980c23e
Add testcase for PR #2311
2016-02-14 15:06:28 +09:00
Takeshi KOMIYA
2ec60d5919
Fix #1858 : Support numbering custom nodes
2016-02-14 14:49:34 +09:00
Takeshi KOMIYA
a391b1a1db
Add Sphinx.add_enumerable_node() to add enumerable nodes for numfig feature
2016-02-14 14:49:34 +09:00
Takeshi KOMIYA
9273140ee2
Override figure directive to apply :name: option to the figure itself
2016-02-14 14:49:20 +09:00
Takeshi KOMIYA
dca1669b2f
Merge pull request #2300 from akruis/feature_autoclass_content_from__new__
...
Feature: enhance autoclass:: to use the docstring of __new__ if __init__ method's is missing of empty
2016-02-14 14:45:25 +09:00
shimizukawa
980653f277
Merge with stable
...
Conflicts:
sphinx/environment.py
sphinx/ext/autodoc.py
sphinx/writers/latex.py
2016-02-09 23:19:49 +09:00
Takeshi KOMIYA
9ba7cc815c
Fix #2292 : Some footnotes disappear from LaTeX output
2016-02-08 11:24:07 +09:00
Takeshi KOMIYA
9b958b6dcc
Fix #2291 : pdflatex "Counter too large" error from footnotes inside tables of contents
2016-02-07 20:04:28 +09:00
SHIMIZU Taku
5cc52f46c2
Add epub3 builder to test
2016-02-07 14:20:32 +09:00
Anselm Kruis
0311f33347
Feature: enhance autoclass:: to use the docstring of __new__
...
The method new is an alternative to __init__, but autoclass does not
respect __new__. This commit enhances the directive autoclass:: to try
__new__ method's docstring, if __init__ method's docstring is missing or
empty.
The commit also adds tests and updates the documentation.
2016-02-05 19:09:43 +01:00
Takeshi KOMIYA
ccd945bf0a
Merge pull request #2254 from xuhdev/math-align
...
Use "align" environment to wrap math equations instead of "gather"
2016-02-01 00:49:17 +09:00
Jakob Lykke Andersen
5c363a683e
Fix :cpp:any: fix_paren with explicit title.
2016-01-28 13:19:23 +09:00
Rob Ruana
678f6066f5
Fix #2227 : [Napoleon] Fixes issue in which bulleted lists in parameter descriptions could cause the sphinx builder to fail
2016-01-27 10:16:12 -08:00
Takeshi KOMIYA
9b21115146
Fix #2265 : babel is used in spite of disabling it on `latex_elements`
2016-01-27 19:38:57 +09:00
Takeshi KOMIYA
dd08a3ac29
Add testcase for image globbing
2016-01-27 01:27:05 +09:00
Takeshi KOMIYA
ae478f678e
Fix #2022 : html_extra_path also copies dotfiles and refers exclude_patterns
2016-01-24 19:17:50 +09:00
Takeshi KOMIYA
9ed3d51826
Fix #1944 : rst_prolog breaks file-wide metadata
2016-01-24 17:32:42 +09:00
shimizukawa
b1a23817fc
Merge with 'stable'
2016-01-24 13:47:51 +09:00
Hong Xu
76e29ca5b3
Use "align" environment to wrap math equations instead of "gather"
...
Using align brings the benefit when multiple math equations are in one
math directive, alignment is provided. We also use "aligned" to wrap the
equations since in this way all the equations will be given only one
label/tag, while previously only the first equation is labeled.
2016-01-20 23:25:58 -08:00
Takeshi KOMIYA
04a8c26eab
Fix #2235 : `needs_sphinx` supports micro version comparison
2016-01-21 13:51:17 +09:00
Takeshi KOMIYA
43c77a2838
Fix TOC is not shown when no `:maxdepth:` for toctrees (ref: #771 )
2016-01-21 11:32:25 +09:00
shimizukawa
0f2e62db24
Fix #2253 : `:pyobject: option of literalinclude` directive can't detect indented body block when the block starts with blank or comment lines.
2016-01-20 22:50:59 +09:00
Hong Xu
a75bf5af3c
Refactor the tests of math extensions.
2016-01-18 23:47:01 -08:00
Takeshi KOMIYA
4c4450d958
Fix #656 : Add `graphviz_dot option to graphviz directives to switch the dot` command
2016-01-18 23:56:05 +09:00
Takeshi KOMIYA
92e4b0cac6
Merge branch 'stable'
2016-01-18 18:46:30 +09:00
Takeshi KOMIYA
0329edc510
Fix #1565 : Show warning if Pygments throws an ErrorToken
2016-01-18 15:31:44 +09:00
Takeshi KOMIYA
5574aba60e
Fix tests are broken with pygments-2.1
2016-01-18 12:38:02 +09:00
Takeshi KOMIYA
34cbf3bad7
Fix #2247 : #2205 breaks make html for definition list with classifiers that contains regular-expression like string
2016-01-18 11:31:48 +09:00
Takeshi KOMIYA
50426a711c
Fix #2060 : `:manpage:` role uses incorrect style (node)
...
It should be use bold style to reference man pages in man format.
On other formats, it is still represented as emphasis.
2016-01-17 19:50:06 +09:00
Takeshi KOMIYA
f44fd9f994
Fix broken test by 14f58e6619
2016-01-17 19:38:05 +09:00
Takeshi KOMIYA
14f58e6619
`sphinx.ext.graphviz`: show graph image in inline by default
...
To support subsutituion syntax, make graphviz node inline (ref: #1149 ).
Now graphviz directive behaves like ``image`` directive when no captions.
If specified, it generates ``figure`` node and ``caption`` node like
``figure`` directive.
2016-01-17 19:23:55 +09:00
Takeshi KOMIYA
738bb589d9
Merge pull request #2209 from tk0miya/2162_add_source_parser_API
...
Fix #2162 : Add Sphinx.add_source_parser() to add source_suffix and source_parsers from extension
2016-01-17 19:07:18 +09:00
Takeshi KOMIYA
121fc4a326
Fix #1030 : Make page reference names for latex_show_pagerefs translatable
2016-01-16 23:59:13 +09:00