Commit Graph

944 Commits

Author SHA1 Message Date
Jeppe Pihl
29af67f438 merge 2014-10-06 20:31:30 +02:00
tk0miya
cdc244428d Merge with default 2014-10-06 23:57:16 +09:00
Georg Brandl
65296334e0 test fix 2014-10-06 15:49:15 +02:00
Georg Brandl
105122be43 Fix up default labels for figures and listings. 2014-10-06 15:19:42 +02:00
Takayuki Shimizukawa
6c0b4f1933 Merged in tk0miya/sphinx (pull request #304)
numfig feature improvement
2014-10-06 21:45:25 +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
a3745cfb5e merge 2014-10-06 10:35:33 +02:00
tk0miya
a5606976b6 Fix flake8 violations 2014-10-06 13:56:51 +09:00
Takayuki Shimizukawa
b6b6f8ad79 Fix test for previous change.
Fix. <caption> node should not include <paragraph> block element as a result of nested_parse.
2014-10-06 07:10:52 +09:00
tk0miya
777218580a Surround fignum and caption with <span> tag 2014-10-05 20:55:46 +09:00
tk0miya
a875e8f377 Set permanent links to every captions and titles 2014-10-05 16:27:38 +09:00
Jeppe Pihl
dc3d0b6ca1 added test .rst files 2014-10-04 17:49:37 +02:00
Jeppe Pihl
22c8382880 added tests for linenos, lineno-start, lineno-match 2014-10-04 17:48:55 +02:00
tk0miya
8270575a9c Update testcases for :numref: 2014-10-02 11:17:34 +09:00
Jeppe Pihl
bbfe4d3bb9 fixed issues with line numbering not being showed correctly. 2014-10-02 00:41:30 +02:00
Jeppe Pihl
de8f428528 #1583: Allow the line numbering of the directive literalinclude to match that of the included file, using a new `lineno-match` option. 2014-09-30 00:11:28 +02:00
tk0miya
7e59c5385e Merge with default 2014-09-28 21:56:20 +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
16529c5604 Add options argument to Sphinx.add_latex_package() 2014-09-28 21:10:26 +09:00
Takayuki Shimizukawa
39c843106f fix testing on Windows. 2014-09-28 21:00:51 +09:00
Takayuki Shimizukawa
a75d863290 Merged in tk0miya/sphinx (pull request #298)
Add new API: Sphinx.add_latex_package()
2014-09-28 12:59:59 +09:00
tk0miya
0c5b460dc6 Separate numfig testcase from toctree's 2014-09-27 16:49:28 +09:00
tk0miya
c04ad2908e Add new API: Sphinx.add_latex_package()
Sphinx.add_latex_package() allows sphinx extensions to add latex packages.
It helps creating extensions for latex (for example, latex-theming)
2014-09-27 12:47:27 +09:00
tk0miya
7cd470f59a Assign fignum to tables and code-blocks 2014-09-27 00:47:44 +09:00
Takayuki Shimizukawa
7984f81a5e Merged in tk0miya/sphinx (pull request #292)
do nested_parse() :caption: of code-block directive
2014-09-26 20:29:38 +09:00
tk0miya
7c7a563426 Fix by review comment 2014-09-26 20:15:17 +09:00
tk0miya
cffec13355 Add testcases for numfig 2014-09-26 00:36:38 +09:00
Takayuki Shimizukawa
88540e9a3b workaround for testing: \xbb will be replaced with /xbb by replace(os.sep, '/') process on Windows environment. 2014-09-24 01:41:01 +09:00
tk0miya
3ad1f1c164 Merge with default 2014-09-24 00:43:47 +09:00
tk0miya
5f96826ffc Merge with default 2014-09-23 17:58:02 +09:00
Takayuki Shimizukawa
a820a73442 Merged in tk0miya/sphinx (pull request #291)
Fix cannot capture title of literal_block node by xref
2014-09-23 12:21:15 +09:00
Georg Brandl
7bbaa4c73f Test suite fixes after env.update() change. 2014-09-22 15:08:15 +02:00
Georg Brandl
e7ed7cd627 Rename env-read-docs to env-before-read-docs, add changelog entry and fixup tests. 2014-09-22 09:13:44 +02:00
Georg Brandl
3c5cda97d1 Merged in guillemNaN/sphinx (pull request #261)
Add env-read-docs event to allow modify docnames list before processing
2014-09-22 09:05:00 +02:00
Georg Brandl
cdaf4b0a52 remove a few unused imports 2014-09-21 20:28:37 +02:00
Georg Brandl
24d303706f Fixup windows newlines. 2014-09-21 20:23:24 +02:00
Guillem Barba
fe077ea18b Don't multiply docnames list size per each listener of env-read-docs
The env-read-docs listener function doesn't return the modified docnames list
but change the list received as parameter.
Updated the tests
2014-09-21 19:50:46 +02:00
Georg Brandl
c5cc2a8cf9 flush stdout after printing messages, might fix output ordering on drone.io 2014-09-21 19:01:03 +02:00
Georg Brandl
ac690b4b07 move new assertion helpers to util.py 2014-09-21 18:54:01 +02:00
Georg Brandl
fa91f19e55 Reimplement assert_in and assert_not_in, they are not in nose in Py2.6. 2014-09-21 18:48:21 +02:00
Georg Brandl
70cf797c10 fix incompatibility in doctree between gettext and the rest 2014-09-21 18:46:15 +02:00
Georg Brandl
b637f0a728 No need to insist on fresh builds with test_build_* 2014-09-21 18:41:08 +02:00
Georg Brandl
b335e03b02 Speed up test_theming using a minimal project. 2014-09-21 18:37:44 +02:00
Georg Brandl
2661c1060d Refactor/speed up test_build_gettext using generators 2014-09-21 18:36:27 +02:00
Georg Brandl
be72ed6dc7 Refactor/speed up test_intl by combining all tests with a certain builder into a generator. 2014-09-21 18:26:50 +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
78af37370c mock is builtin in Py3. 2014-09-21 17:32:52 +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
Georg Brandl
e21d669089 Test suite adapted after :option: changes. 2014-09-20 20:54:23 +02:00
Georg Brandl
a555bda5eb Closes #1284: Program options documented with :rst:dir:option can now start with `+`. 2014-09-20 19:58:11 +02:00