Commit Graph

974 Commits

Author SHA1 Message Date
shimizukawa
3566352bdb refs #3093: add tests 2016-11-20 17:48:07 +09:00
Takeshi KOMIYA
b84035416f Revert "Add `config-inited` event"
This reverts commit 9569c6dbff.
2016-11-20 12:46:30 +09:00
Takeshi KOMIYA
9569c6dbff Add `config-inited` event 2016-11-18 20:55:51 +09:00
Takeshi KOMIYA
ceb4e9a805 Use sphinx-doc.org for testing 2016-11-06 17:52:15 +09:00
jfbu
0473e438dc add unit test for maxlistdepth (latex) 2016-11-04 23:57:00 +01: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
Takeshi KOMIYA
e04fe845c7 Fix #3039: English stemmer returns wrong word if the word is capitalized 2016-10-17 21:09:58 +09:00
Takeshi KOMIYA
53ea1cb280 Fix #3045: HTML search index creator should ignore "raw" content if now html 2016-10-17 16:08:37 +09:00
Jean-François B
b8e0e935e4 Improve LaTeX footnotes (#3022)
Allow code-blocks in footnotes for LaTeX PDF output.

This is done via using a ``footnote environment``, provided by LaTeX
package footnotehyper which replaces old problematic package footnote.
No need to ship a custom tabulary anymore.

The footnote markers are silently removed from the table of contents and
do not end in the PDF bookmarks (the old code in ``sphinx.sty`` copying
``footmisc.sty`` was not satisfactory and has been deleted and replaced
by use of better ``\sphinxfootnotemark``.) Footnotes can be used also in
captions of literal blocks.
2016-10-15 12:09:58 +02:00
Takeshi KOMIYA
d87ba0d1da Merge branch '2527_reversed_toctree' 2016-10-13 00:13:04 +09:00
Takeshi KOMIYA
111b7f4c72 Merge pull request #2843 from rthardin/issue_625_start_at_end_at
Add :start-at: and :end-at: parameters for literalinclude
2016-10-12 19:54:33 +09:00
Takeshi KOMIYA
c8fe4a1848 Rename :reverse: option of toctree directive to :reversed: 2016-10-12 19:36:49 +09:00
Takeshi KOMIYA
f22bbf668d Add testcase for reversed toctree 2016-10-12 19:32:48 +09:00
Timotheus Kampik
de7c93756c allow search hits in body text that are in title of other doc #2891 (#2971)
* allow search hits in body text that are in title of other doc #2891

* shorten lines/add line breaks #2891

* remove out-commented LoC, simplify check #2891
2016-10-11 00:42:41 +09:00
Hiroaki Itoh
42604a1ff6 Fix #2990: linkcheck raises "Can't convert 'bytes' object to str implicitly" error if linkcheck_anchors enabled 2016-10-06 18:59:24 +09:00
Takeshi KOMIYA
9358ea239b Add testcase for toctree 2016-09-30 10:42:18 +09:00
Jellby
9bef597a2f Merge remote-tracking branch 'upstream/master'
Conflicts:
	tests/test_build_html.py
2016-09-29 20:21:50 +02:00
Takeshi KOMIYA
090e357969 Merge pull request #2963 from tk0miya/326_numref_section
make section numref-able and allow to refer the captions in linktext
2016-09-21 10:45:57 +09:00
Takeshi KOMIYA
82c153ffd2 Fix #2931: code-block directive with same :caption: causes warning of duplicate target 2016-09-17 18:28:55 +09:00
Takeshi KOMIYA
cfddf17d35 Fix #2931: code-block directive with same :caption: causes warning of duplicate target 2016-09-17 18:13:17 +09:00
Takeshi KOMIYA
2b10fc0188 Fix #2916: numref role can also refer caption as an its linktext 2016-09-17 15:51:18 +09:00
Takeshi KOMIYA
1aafc7e2e5 Fix #326: numref role can also refer sections 2016-09-17 15:51:18 +09:00
Takeshi KOMIYA
f8c1c65c21 Refactor sphinx.environment: Reimplemnt process_refonly_bullet_lists() as a transform 2016-09-15 02:29:50 +09:00
Takeshi KOMIYA
d281a32b3b Refactor sphinx.environment: Reimplement filter_messages() as a transform 2016-09-15 02:29:50 +09:00
Takeshi KOMIYA
15518bad12 Fix could not translate the content of meta directive (ref: #1734) 2016-09-01 23:35:23 +09:00
Takeshi KOMIYA
9b00c31ee2 Fix #1734: Could not translate the caption of toctree directive 2016-09-01 17:58:24 +09:00
Takeshi KOMIYA
c6e102999f Merge branch 'stable' 2016-09-01 02:25:14 +09:00
Takeshi KOMIYA
8d96c90fc6 Fix #1462: autosummary warns for namedtuple with attribute with trailing underscore 2016-08-30 00:37:30 +09:00
Takeshi KOMIYA
e96e627d59 Fix #2874: gettext builder could not extract all text under the `only` directives 2016-08-27 23:57:49 +09:00
Takeshi KOMIYA
bd22d09f48 Add domain support to support equation cross references (ref: #1210, #2851) 2016-08-22 19:58:46 +09:00
Ryan Hardin
560b5725c9 Added :start-at: and :end-at: parameters for literalinclude
This feature is discussed as part of issue #625.
2016-08-10 11:15:10 -04:00
Takeshi KOMIYA
e15216c568 Fix sphinx.ext.autodoc crashes if target code imports * from mock modules by autodoc_mock_imports 2016-08-09 12:20:11 +09:00
Takeshi KOMIYA
253eef9e6a #2680: sphinx.ext.todo now emits warnings if todo_emit_warnings enabled 2016-07-16 00:59:02 +09:00
Takeshi KOMIYA
a692009808 Merge branch 'stable' 2016-07-15 00:51:29 +09:00
Takeshi KOMIYA
6686ebf158 Optimized tests: Add test-warnings 2016-07-14 23:12:57 +09:00
Takeshi KOMIYA
47b33e93e5 Optimize tests: test_applehelp_output 2016-07-14 09:41:46 +09:00
Takeshi KOMIYA
c23a59b70c Optimize tests: test_searchadapters 2016-07-14 02:02:25 +09:00
Takeshi KOMIYA
b95f450452 Optimize tests: test_jsmath 2016-07-14 01:43:25 +09:00
Takeshi KOMIYA
3fb439c476 Optimize tests: test_imgmath_png, test_imgmath_svg 2016-07-14 01:36:40 +09:00
Timotheus Kampik
05ad82ffa8 Merge branch 'master' into fix-stemming-removes-short-words-from-search-results 2016-07-10 11:44:35 +02:00
Takeshi KOMIYA
b21ba65873 Merge pull request #2759 from scop/optimize-images
Optimize images
2016-07-08 22:00:19 +09:00
Ville Skyttä
302c695048 Run *.png through zopflipng -m
Before: 2334583 bytes
After:  2136324 bytes
2016-07-07 18:34:18 +03:00
Takeshi KOMIYA
5991bbe4ac Add sphinx.config.ENUM to check the config values is in candidates 2016-07-07 23:42:49 +09:00
Takeshi KOMIYA
02dbf860c2 Refactor: Use copy_asset() to copy html_static_path 2016-07-07 00:06:54 +09:00
Takeshi KOMIYA
bb1e6f9044 Refactor: Replace copy_extra_entry() with copy_asset() 2016-07-07 00:02:57 +09:00
Timotheus Kampik
475ebf6c36 Merge branch 'master' into fix-stemming-removes-short-words-from-search-results 2016-06-04 17:35:16 +02:00
Timotheus Kampik
ba64f54e4e search index: don't stemm words that would be excluded from search index only after stemming #1529 2016-06-04 17:21:11 +02:00
Takeshi KOMIYA
1d17475a08 #2575: Now `sphinx.ext.graphviz allows :align:` option 2016-05-28 18:29:10 +09:00
Takeshi KOMIYA
771e715f50 `:maxdepth: option of toctree affects secnumdepth` (ref: #2547) 2016-05-26 23:23:07 +09:00
Takeshi KOMIYA
2578f47664 Merge branch 'stable' 2016-05-26 20:55:26 +09:00
Takeshi KOMIYA
9cd5ba994c Fix #2445: rst_prolog and rst_epilog affect to non reST sources 2016-05-25 21:25:04 +09:00
Takeshi KOMIYA
89360dd3f1 Add testcase for rst_prolog and rst_epilog 2016-05-25 21:24:31 +09:00
Takeshi KOMIYA
82ef3b0aeb Merge pull request #2516 from TimKam/meta-keywords-to-search-index
Meta keywords to search index
2016-05-24 11:10:07 +09:00
Takeshi KOMIYA
c9296ba467 Merge branch 'stable' 2016-05-09 10:11:13 +09:00
Timotheus Kampik
01797faede refactor code/tests: keyword support for search index #2516 2016-05-05 18:09:22 +02:00
Takeshi KOMIYA
20719f0b00 Merge pull request #2503 from JojoBoulix/stable
Extend SOURCE_DATE_EPOCH support
2016-05-05 22:15:19 +09:00
Takeshi KOMIYA
7c0b7e1ff1 Fix #2526: LaTeX writer crashes if the section having only images 2016-05-05 16:17:38 +09:00
Timotheus Kampik
6f6b28d3e6 refactor, add more tests #2516 2016-05-02 07:54:44 +02:00
Timotheus Kampik
a8dabf334d add tests for meta-tag search index generation #2463 2016-05-02 00:11:48 +02:00
Alexis Bienvenüe
7a89015a54 Corrects copyright year using SOURCE_DATE_EPOCH if set 2016-04-28 23:37:36 +02:00
shimizukawa
132059a253 merge with stable 2016-04-18 14:41:06 +09:00
Takeshi KOMIYA
9a7bbb0947 Add image file for testcase of #2395 2016-04-13 21:30:45 +09:00
shimizukawa
fdaaf020f7 Merge with 'stable' 2016-04-12 22:22:06 +09:00
Takeshi KOMIYA
5b80365409 Merge pull request #2415 from jfbu/jumptorightplace-onstable
Fix #2405 and #2414 related to PDF hyperlinks to numbered code listings
2016-04-11 10:53:34 +09:00
jfbu
673222f20a Added Tests for latex(pdf) links to captioned or named literal blocks
As conf.py has now numfig = True, needed to modify accordingly test for
links in html output.

This topic branch fixes #2405, #2414, and also makes for latex(pdf)
functional hyperlinks to named references, but only for literal blocks
(code-block or literalinclude).

	modified:   tests/roots/test-directive-code/caption.rst
	modified:   tests/roots/test-directive-code/conf.py
	new file:   tests/roots/test-directive-code/namedblocks.rst
	modified:   tests/test_directive_code.py
2016-04-10 20:45:59 +02:00
Takeshi KOMIYA
9df7783ba2 Fix #2395: Sphinx crashs if unicode character in image filename 2016-04-10 20:25:25 +09:00
Takeshi KOMIYA
d86ea47b52 Add `:caption:` option for sphinx.ext.inheritance_diagram 2016-03-11 13:20:05 +09:00
Jellby
ea219a04ed Move CSS properties to a different variable 2016-03-06 13:49:57 +01:00
Ignacio Fdez. Galván
6e93ba6db8 Merge remote-tracking branch 'upstream/master' 2016-02-29 18:25:26 +01:00
Takeshi KOMIYA
606daeda18 Fix the confval type checker emits warnings if unicode is given to confvals which expects string value 2016-02-23 11:14:58 +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
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
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
Jellby
4aaccc7fd9 Merge remote-tracking branch 'upstream/master'
Conflicts:
	tests/test_build_html.py
2016-02-08 20:34:15 +01: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
Anselm Kruis
de356149cd Test for bug #2298: automodule fails to document a class attribute
This test case demonstrates a bug, where automodule:: with option
:members: fails to document a class attribute of a class, that was
imported into the documented module.

This commit extends test_ext_viewcode, instead of creating a separate
test module, because the development guide recommends it for performance
reasons.
2016-02-05 17:42:14 +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
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
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
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
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
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
350d8aade0 Fix broken LaTeX code is generated if unknown language is given 2016-01-16 23:59:13 +09:00
Takeshi KOMIYA
e4b9eb51f6 Merge branch 'stable' 2016-01-11 00:27:26 +09:00
shimizukawa
e5860fd75c Merge with '87998df9cbef2380345d436121e6bca43345d2bd' on stable
Conflicts:
	tests/test_build_latex.py
2016-01-10 10:21:27 +09:00
shimizukawa
e85ea7ed83 Fix #2062: Escape characters in doctests are treated incorrectly with Python 2
In my current environment with Win10+Py2.7.10, SpoofOut result string doesn't necessary to decode. This commit might cause regression in older python versions....
2016-01-09 17:22:30 +09:00
shimizukawa
39e403b8ac fix testing for text builder that generate _build/text/_build/text/_build/... recursive directories because *.txt in _build/text previously generated was detected as source file. 2016-01-09 15:35:56 +09:00
shimizukawa
ac28f9b271 Fix #2198,#2205: `make gettext` generate broken msgid for definition lists. It's a regression by #1855. 2016-01-09 15:33:43 +09:00
André Klitzing
62c49763f8 Fix broken TOC of PDFs if section includes an image
If someone adds an image to a section it will be added to the sidebar
TOC of a PDF, too. A PDF viewer will show the "width and height"
data instead of an image. So we need to filter out images for this with
the optional "short title" of latex sections.
2016-01-08 10:15:39 +01:00
Takeshi KOMIYA
0ea518d563 Add sphinx.ext.githubpages to publish the docs on GitHub Pages 2016-01-06 22:14:57 +09:00
Takeshi KOMIYA
e03dc8d27e Fix #2072: Footnotes in chapter-titles do not appear in PDF output 2016-01-06 11:13:30 +09:00
Takeshi KOMIYA
26e29de904 Fix broken testcase; Split test-toctree-maxdepth from test-tocdepth 2016-01-06 09:54:48 +09:00
Takeshi KOMIYA
b0a5a1339e Fix #771: latex output doesn't set tocdepth 2016-01-06 01:34:29 +09:00
Takeshi KOMIYA
f81ab1e8b9 Fix #2162: Add Sphinx.add_source_parser() to add source_suffix and source_parsers from extension 2016-01-04 10:23:17 +09:00
Takeshi KOMIYA
26c43643d3 Fix broken tests by 7bb685bbe9 2016-01-03 20:52:39 +09:00
Takeshi KOMIYA
b0f376fdb8 Fix #2201: wrong table caption for tables with over 30 rows 2016-01-01 19:31:36 +09:00
Takeshi KOMIYA
584f05154b Fix #2206: Sphinx latex doc build failed if footnotes in caption of figure
At same time, refactored around pending footnotes (tables, terms and
figures). They are all controled as ``pending_footnotes``.
2016-01-01 19:07:43 +09:00
Hong Xu
355fe2a233 Add the imgmath extension, the successor of pngmath.
In addition to the features which pngmath supports, imgmath also
supports svg output format.
2015-12-29 15:13:57 -08:00
Takeshi KOMIYA
07cc02a512 Fix #2178: Unparseable C++ cross-reference when referencing a function with :cpp:any: 2015-12-27 16:29:07 +09:00
Takeshi KOMIYA
8a763feb6b Fix #2189: previous sibling link has broken if previous doc is under nested toctree 2015-12-26 23:57:09 +09:00
Takeshi KOMIYA
222a51e0cf Fix #2189: next sibling link has broken if the file was appeared twice or more 2015-12-26 21:43:54 +09:00
Takeshi KOMIYA
0719611d54 Fix #2071: Same footnote in more than two section titles => LaTeX/PDF Bug 2015-12-25 10:43:41 +09:00
Takeshi KOMIYA
4234c88f21 Fix #2113: Allow `:class:` option to code-block directive 2015-12-20 22:44:32 +09:00
shimizukawa
bf1cc70996 Merge with 'stable' 2015-12-20 08:48:38 +09:00
Takeshi KOMIYA
9f96bbaf35 Move testcases for footnotes to roots/test-footnote 2015-12-19 16:45:23 +09:00
Takeshi KOMIYA
5983d02787 Fix #1237 footnotes not working in definition list in LaTeX 2015-12-19 16:45:23 +09:00
Takeshi KOMIYA
9fec96d327 Refactor latex_show_urls processor to Transform class 2015-12-19 16:44:45 +09:00
Takeshi KOMIYA
885b997a25 Add testcases for latex_show_urls 2015-12-19 16:40:10 +09:00
Georg Brandl
8232707a12 merge stable to default 2015-12-18 21:42:55 +01:00
Ignacio Fdez. Galván
5d19ea38df Merge remote-tracking branch 'upstream/master' 2015-12-13 12:31:02 +01:00
Takeshi KOMIYA
8648bdeec1 Fix #2094 rubric with reference not working in Latex 2015-12-03 14:48:00 +09:00
Takeshi KOMIYA
c8837338d3 Fix section and table titles with reference cause latex build error 2015-12-03 11:39:25 +09:00
Takeshi KOMIYA
32b483d5bc Fix #2134 figure caption with reference causes latex build error 2015-12-03 10:33:29 +09:00
shimizukawa
e800fef3d1 merge with 'stable' 2015-12-02 18:38:52 +09:00
Takeshi KOMIYA
47e7b022c2 Fix #2012 exception occurred if `numfig_format` is invalid 2015-11-30 11:38:37 +09:00
shimizukawa
b08ef308b9 Merge branch 'stable' 2015-11-22 00:25:26 +09:00
shimizukawa
9d0ce7a6c1 Fixes #1884: plug-in html themes cannot inherit another plug-in theme
Closes #1885: A part of code for this fix is from pull requeest #1885.
refs #1794
2015-11-22 00:13:42 +09:00
Takayuki SHIMIZUKAWA
e4b025c1cb Merge pull request #2033 from lehmannro/config-types-for-real
Allow hinting permissible types for configuration values
2015-11-15 16:39:07 +09:00
Robert Lehmann
8b00f57f4d Fixed #1786: Add configurable type hints.
This adds the option of giving, in addition to the type of the default
value, hints about permissible types for configuration values.
2015-09-11 09:51:14 +02:00
Takeshi KOMIYA
20d992cdf5 Close #1990: Use caption of toctree to title of \tableofcontents in LaTeX 2015-08-21 14:15:30 +09:00
shimizukawa
a3109f6976 Fixes #1983: i18n translation feature breaks references which uses section name. 2015-08-09 23:44:14 +09:00
shimizukawa
82e05e7a9c Fixes #1725: On py2 environment, doctest with using non-ASCII characters causes 'ascii' codec can't decode byte exception. 2015-08-02 00:07:23 +09:00
shimizukawa
d3375761d2 Fixed #1855: make gettext generates broken po file for definition lists with classifier. 2015-07-25 17:41:07 +02:00
Takayuki SHIMIZUKAWA
219b5aac9e Merge pull request #1819 from pjxiao/feature-1793
Fix #1793: Add new line before first item of list
2015-07-11 15:15:01 +09:00
Takeshi KOMIYA
65663912a4 Add testcase for graphviz 2015-06-26 21:23:03 +09:00
Ignacio Fdez. Galván
c0bc64f9fe Merge remote-tracking branch 'upstream/master' 2015-05-13 10:38:28 +02:00
Takeshi KOMIYA
64d2f22eb4 Fix #1790 literalinclude strips empty lines at the head and tail 2015-04-02 14:48:14 +09:00
Takeshi KOMIYA
aa66e7860b Fix #1789 :pyobject: option of literalinclude directive includes following lines after definitions 2015-04-02 14:47:51 +09:00
Takeshi KOMIYA
0b60eafe0e Fix #1790 literalinclude strips empty lines at the head and tail 2015-03-31 11:32:01 +09:00
Takeshi KOMIYA
0215b1fb10 Fix #1789 :pyobject: option of literalinclude directive includes following lines after definitions 2015-03-31 10:21:36 +09:00
Takayuki Hirai
144fb2634d Fix #1793: Add new line before first item of list 2015-03-30 19:55:49 +09:00
Ignacio Fdez. Galván
d86efb9192 Test for alternate stylesheets 2015-03-17 15:57:51 +01:00
shimizukawa
6b7a2c8b6a refs #1777: fix testing. first time testing always failed it means testing on travis.ci will never be succeeded. 2015-03-15 01:13:57 +09:00
shimizukawa
1628eebfb5 refs #1777: add test for loading theme plugins 2015-03-15 00:47:43 +09:00
Takeshi KOMIYA
5e48ac9b4f Role `numref uses %s as special character instead #` symbol 2015-03-08 08:30:16 +09:00
shimizukawa
d23f3e75dd Closes #1748: SyntaxError in sphinx/ext/ifconfig.py with Python 2.6. 2015-03-02 22:43:14 +09:00
shimizukawa
06944af540 refs #1346, fix missing test requires, fix tests (need html_theme='classic') 2015-02-24 01:20:05 +09:00
shimizukawa
bb85c1c87f refs #1235: i18n: 'uri' and 'alt' attribute on 'image' and 'figure' nodes can be translated if gettext_additional_targets has 'image'. 2015-02-22 19:35:49 +09:00
shimizukawa
0ad1c154c0 refs #1235: i18n: 'doctest-block' and 'raw' node can be translated if gettext_additional_targets has that string. 2015-02-22 15:40:01 +09:00
shimizukawa
c53fa4b369 refs #1235: i18n: 'literal-block' node can be translated if 'literal-block' is set to gettext_additional_targets. 2015-02-22 13:51:02 +09:00
shimizukawa
d5dca56ff8 The `gettext_enables config value has been renamed to gettext_additional_targets`. 2015-02-22 13:31:28 +09:00
Takeshi KOMIYA
62e0490b81 Closes #1718. :numref: does not work with capital letters in the label 2015-02-22 11:28:21 +09:00
tk0miya
88103c112a Fix #1603 :numref: doesn't work correctly when label contain underscore
If label contains underscore, the underscores are replaced with hyphens on normalization.
:numref: confuses the normalization with explicit notation.
This fix uses `target` variable insted of labelid to check the role is explicit or not.
2014-10-27 11:02:54 +09:00
Takayuki Shimizukawa
da651089e7 fix trailing space and long line 2014-10-09 23:53:33 +09:00
Takayuki Shimizukawa
2826af738d Merged in tk0miya/sphinx (pull request #303)
Add :numref: role to refer figures, tables and code-blocks by its fignum
2014-10-09 19:45:50 +09:00
Jeppe Pihl
0b0cf82a75 fixed bugs, and extended unit test to catch them again if they reappear 2014-10-06 10:58:03 +02:00
Jeppe Pihl
dc3d0b6ca1 added test .rst files 2014-10-04 17:49:37 +02:00
tk0miya
8270575a9c Update testcases for :numref: 2014-10-02 11:17:34 +09:00
Takayuki Shimizukawa
9d1225a35b add :confval:gettext_enables to enable extracting 'index' to gettext catalog output / applying translation catalog to generated documentation. Closes #1344 2014-09-28 21:19:54 +09:00
tk0miya
0c5b460dc6 Separate numfig testcase from toctree's 2014-09-27 16:49:28 +09:00
tk0miya
7cd470f59a Assign fignum to tables and code-blocks 2014-09-27 00:47:44 +09:00
tk0miya
cffec13355 Add testcases for numfig 2014-09-26 00:36:38 +09:00
tk0miya
3ad1f1c164 Merge with default 2014-09-24 00:43:47 +09:00
Georg Brandl
24d303706f Fixup windows newlines. 2014-09-21 20:23:24 +02:00
Georg Brandl
a73ab32bc5 Split viewcode and linkcode tests out of main test root. 2014-09-21 17:34:16 +02:00
Georg Brandl
d47a7587f9 Complete test suite overhaul.
* rename a few test modules to make the names more consistent

* do not copy/use Sphinx from build/ (unnecessary without 2to3)

* use a temporary dir for *all* test projects, the source tree
  will stay pristine that way  (default is tests/build)

* speed up tests by ~3x by splitting up test projects and avoiding
  rebuilds
2014-09-21 17:17:02 +02:00
tk0miya
d076452199 do nested_parse() :caption: of code-block directive 2014-09-19 12:04:25 +09:00
Takayuki Shimizukawa
8536b4844e Merged in tk0miya/sphinx (pull request #266)
Rename :filename: option of code-block directive to :caption:
2014-08-24 11:02:36 +09:00
Takayuki Shimizukawa
799ae87ce0 fix fc1901d for py3, again. and add 2 assertions 2014-08-22 13:01:11 +09:00
Takayuki Shimizukawa
e8b870de0c :mod:~sphinx.ext.viewcode support imported function/class aliases. Closes #623 2014-08-22 11:38:56 +09:00
tk0miya
3c8bc8f5fd Merge upstream changes 2014-08-20 10:05:58 +09:00
tk0miya
14107fd5de Fix numbering section at singlehtml mode does not work for nested toctree 2014-08-18 22:06:30 +09:00
tk0miya
3e1667290b Rename :filename: option of code-block directive to :caption: 2014-08-11 22:36:31 +09:00
Takayuki Shimizukawa
1d65d9cdc6 rename test files 2014-08-10 23:47:27 +09:00
Takayuki Shimizukawa
d39327d539 * for pull request #258: update CHANGES, add tests, add a document and refactoring. 2014-08-10 23:03:02 +09:00
Takayuki Shimizukawa
3efd230a0e fix test caused by previious commit: 989c16e04371c 2014-08-05 01:54:56 +09:00
Takayuki Shimizukawa
f7399a261a Add app.set_translator() API to register or override a Docutils translator class like :confval:html_translator_class. 2014-08-05 00:18:54 +09:00
Takayuki Shimizukawa
eb8dbf4631 Fix malformed po files in the test-intl directory 2014-08-03 14:34:40 +09:00
Takayuki Shimizukawa
da4c67e2a3 When specifying toctree :numbered: option and :tocdepth: metadata, sub section number that is larger depth than :tocdepth: is shrinked. Closes #1251. 2014-08-02 18:10:41 +09:00
Lars Buitinck
5a13bce2e2 compress static PNG images with optipng -o10
Average reduction in file size of 20%.
2014-07-22 13:42:00 +02:00
Takayuki Shimizukawa
da20c3713b merge with stable 2014-07-13 11:43:12 +09:00
Takayuki Shimizukawa
ff8ce91f77 * Fix: autosummary can't handle nested classes correctly. Closes #1441 2014-06-21 17:05:31 +09:00
Takayuki Shimizukawa
74fbd611ab merge with stable 2014-06-09 22:45:05 +09:00
Takayuki Shimizukawa
68290a266c introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350. 2014-04-29 11:46:47 +09:00
Takayuki Shimizukawa
8f69e25c85 * Fix: autosummary does not create the description from attributes docstring. Closes #1444 2014-04-11 23:38:37 +09:00
Takayuki Shimizukawa
43a9881c4b Fix i18n: missing python domain's cross-references with currentmodule directive or currentclass directive. refs #1363
* node attributes 'py:module', 'py:class' is provided from environment (e.x. currentmodule directive is provided on previous line, not on node)
* Because translation nodes are parsed in independently, 'provided attributes by environment' are not exist.
* For a pending_xref nodes, all attributes of a translated xref node should be same as original xref node in current test cases.
* For the above reasons, I overwrite all attributes from origonal node to new translated xref node.
2014-03-23 23:01:15 +09:00
Georg Brandl
55e2f29170 fix windows newlines 2014-03-01 08:42:35 +01:00
Paul Molodowitch
d4a0a14aa5 Closes #1374: Autosummary generates overly-long summaries if first line doesn't end with a period 2014-02-03 19:35:04 -08:00
Takayuki Shimizukawa
3d67be3dce Fix autosummary template overloading cause infinite recursive function call. Closes #1335 2013-12-27 05:23:47 +00:00
Takayuki Shimizukawa
63d34cca47 Add tests and code refine for pull request #190. 2013-11-12 15:17:09 +00:00
Takayuki Shimizukawa
313559116d Backed out changeset cfe9e2d11003 refs #1265 2013-10-04 08:12:20 +00:00
Takayuki Shimizukawa
603a75d8d3 Now gettext translates label target name. Fix i18n: crash when using a indirect target and translating a target section name. Closes #1265 2013-10-04 05:07:09 +09:00
Takayuki Shimizukawa
b37f385810 Add test refs #1265 (comment-6264794) to validate translated label link shifting. 2013-10-03 02:53:53 +00:00
Takayuki Shimizukawa
7682f477dc Fix i18n: crash when translating section name that is pointed from named target. Closes #1265 2013-09-23 19:53:22 +09:00
Takayuki Shimizukawa
99008f5b78 Fix again: NFC/NFD normalizing problem. Closes #1142 2013-09-18 08:51:20 +00:00
Takayuki Shimizukawa
91ef671ea9 Add test for docutils.conf and prevent 'html4css1.css' missing warning.
Now --embed-stylesheet option default become false.
2013-07-27 14:13:15 +09:00
Takayuki Shimizukawa
33c9e1fb28 Fix i18n: gettext did not translate admonition directive's title. Closes #1206 2013-07-03 08:19:10 +00:00
Takayuki Shimizukawa
7904b0678a Fix i18n: footnote reference number missing for auto numbered named footnote and auto symbol footnote. Closes #1176 2013-06-21 03:28:32 +00:00
Takayuki Shimizukawa
4579bb6e85 fix: translation mechanism break label target if label and section name are same. refs #1193 2013-06-19 06:07:47 +00:00
Takayuki Shimizukawa
f9b733fc47 test_intl:external_link test case correction to fit to reST syntax. 2013-06-18 11:14:27 +00:00
Takayuki Shimizukawa
afc6b6d1f8 Fix: Multiple references in the same line return the same link with i18n. Closes #1193 2013-06-17 00:12:02 +09:00
Takayuki Shimizukawa
bd4da7df55 add tests for "multiple cross references in the same line return the same link". refs #1090, #1193 2013-06-16 14:25:29 +09:00
Takayuki Shimizukawa
deb01d8e30 Fix multiple cross references (term, ref, doc) in the same line return the same link with i18n. refs #1090, #1193 2013-06-16 23:57:08 +09:00
Takayuki Shimizukawa
b91f70be6e Fix: 'make gettext' cause UnicodeDecodeError when templates contain utf-8 encoded string. 2013-04-13 22:44:37 +09:00
Georg Brandl
1af3e3ea71 tests: replace "from util import *" by explicit imports 2013-04-01 11:39:32 +02:00
Takayuki Shimizukawa
b8850502d2 merge heads 2013-03-17 10:58:28 +09:00
Takayuki Shimizukawa
2c409959ac Add i18n capabilities for custom templates.
For example: The Sphinx reference documentation in doc directory provides
sphinx.pot file from ``doc/_templates/*.html`` by ``make gettext``.
2013-03-10 22:07:31 +09:00
Nozomu Kaneko
1bd7aaed7f merge 2013-02-06 13:28:26 +09:00
Takayuki Shimizukawa
6667a7cbdf fix toctree entry missing for testing. 2013-02-05 03:54:35 +00:00
Takayuki Shimizukawa
7ebd7ab2a9 fix: roles' reftarget ware swapped if there are some roles in 1 line and translation exchange rthat roles position. refs #1090 2013-02-05 12:47:08 +09:00
Takayuki Shimizukawa
c1c0a03895 fix: reporting correct line number when translations have wrong reST syntax or else. 2013-02-04 22:23:03 +09:00
Nozomu Kaneko
81d21a7714 make versionmodified translatable 2013-02-04 09:03:34 +09:00
Nozomu Kaneko
6aa8d4b373 Merged in knzm/sphinx-fix-docfields-fork (pull request #96) 2013-02-04 05:59:15 +09:00
Takayuki Shimizukawa
a86ea846e2 Fix :term: doesn't link to glossary if term text translated. refs #1090 2013-01-30 23:41:37 +09:00
Takayuki Shimizukawa
6f4764f77b Fix gettext does not extract glossary terms. Closes #1090 2013-01-30 00:13:58 +09:00
Robert Lehmann
32b87e258b merge birkenfeld/sphinx 2013-01-06 12:14:57 +01:00
Nozomu Kaneko
f01d1358f8 resolve conflicts 2013-01-06 20:12:54 +09:00
Takayuki Shimizukawa
9b9c69042e Divide test_intl target source files for speed-up. 2013-01-06 16:15:49 +09:00
Jonathan Waltman
268b009017 Move "only" directive tests to a seperate test root. 2013-01-05 20:14:48 -06:00