Avram Lubkin
76b92ad24f
Use html5lib to parse HTML in tests instead of XMLParser
2016-05-28 02:51:21 -04:00
Takeshi KOMIYA
885653a35d
Fix the caption of figure is always put on center even if `:align:
` was specified
2016-05-04 01:27:54 +09:00
Takeshi KOMIYA
4789ef899f
Fix #2492 : Figure directive with :figwidth: generates incorrect Latex-code
2016-05-04 01:27:31 +09:00
Takeshi KOMIYA
ad738a0978
Fix #2309 : Could not refer "indirect hyperlink targets" by ref-role
2016-04-24 13:57:32 +09:00
Takeshi KOMIYA
478c1d2ea6
Merge branch 'stable' into 1.4-release
2016-03-23 22:01:14 +09:00
Jellby
a3551a811b
Merge remote-tracking branch 'upstream/master'
2016-03-06 10:08:19 +01:00
Takeshi KOMIYA
b0e781c745
Fix broken tests
2016-03-06 16:24:59 +09:00
Ignacio Fdez. Galván
6e93ba6db8
Merge remote-tracking branch 'upstream/master'
2016-02-29 18:25:26 +01:00
Takeshi KOMIYA
2441c647d2
Fix #2229 : no warning is given for unknown options
2016-02-23 12:23:06 +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
Georg Brandl
6101cb4ab6
fix tests
2016-02-19 09:25:48 +01: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
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
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
Jellby
4aaccc7fd9
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
tests/test_build_html.py
2016-02-08 20:34:15 +01: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
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
Georg Brandl
4f72bdb722
Merge branch 'stable'
2016-01-14 22:54:08 +01:00
Georg Brandl
46d7e8558e
Obligatory copyright update.
2016-01-14 22:54:04 +01:00
Takeshi KOMIYA
3f998a0096
Fix line numbers was not shown on warnings of indecies
2016-01-13 11:37:07 +09:00
Takeshi KOMIYA
7898c64cf4
Fix line numbers were not show on warnings of numfigs
2016-01-13 00:38:38 +09:00
Takeshi KOMIYA
4c8b575dcc
Fix filenames were not shown on warnings of citations
2016-01-13 00:37:28 +09:00
shimizukawa
f824539119
merge with stable
2016-01-13 00:13:35 +09:00
Takeshi KOMIYA
ca896755a9
Fix #2229 , any-role and `-W
` option are conflicted
2016-01-12 13:35:52 +09:00
Takeshi KOMIYA
bba3f388e9
Fix #2229 : No warning is given for unknown options
2016-01-11 23:31:28 +09:00
Takeshi KOMIYA
e4b9eb51f6
Merge branch 'stable'
2016-01-11 00:27:26 +09:00
Takeshi KOMIYA
c8c6dc1fe9
Fix #2226 : Math is not HTML-encoded when :nowrap: is given (jsmath, mathjax)
2016-01-10 02:20:39 +09:00
Takeshi KOMIYA
7894f0bd9c
Fix #2225 : If the option does not begin with dash, linking is not performed
2016-01-09 19:57:23 +09:00
shimizukawa
bf1cc70996
Merge with 'stable'
2015-12-20 08:48:38 +09:00
shimizukawa
91fe0b6ceb
Fix #2185 : Use with syntax to open files on testing.
2015-12-20 08:13:02 +09:00
Ignacio Fdez. Galván
5d19ea38df
Merge remote-tracking branch 'upstream/master'
2015-12-13 12:31:02 +01: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
9ceea10a62
Merge with 'stable'
2015-11-29 23:10:21 +09:00
Takeshi KOMIYA
12396a71d9
Fix #2140 : footnotes in table has broken in LaTeX
2015-11-29 21:47:55 +09:00
Georg Brandl
94e5cfa8bb
Fix test_build_html.
2015-07-25 13:03:43 +02:00
Ignacio Fdez. Galván
d86efb9192
Test for alternate stylesheets
2015-03-17 15:57:51 +01:00
shimizukawa
ea25342acc
Support PEP-440 version spec for developers.
2015-03-14 16:46:24 +09:00
Georg Brandl
ad612fb03d
Change the source parsers feature a bit:
...
* parsers -> source_parsers
* add docs
* require fully qualified name or class
* add test for it
2015-03-08 13:12:50 +01:00
Takeshi KOMIYA
5e48ac9b4f
Role `numref
uses
%s
as special character instead
#` symbol
2015-03-08 08:30:16 +09:00
shimizukawa
9ba0a51555
refs #1658 , #1750 : add test and small tweak.
2015-03-03 08:13:14 +09:00
Georg Brandl
8a273d139b
Fix generating emphasis nodes without semantic reason
...
Roles ``ref``, ``term`` and ``menusel`` now don't generate :durole:`emphasis`
nodes anymore. If you want to keep italic style, adapt your stylesheet.
2015-02-25 15:51:47 +01:00
Takeshi KOMIYA
62e0490b81
Closes #1718 . :numref: does not work with capital letters in the label
2015-02-22 11:28:21 +09:00
Georg Brandl
a23903d8d5
Merge branch 'stable'
2015-01-03 21:41:14 +01:00
Georg Brandl
567d52f199
all: update copyright
2015-01-03 21:36:32 +01:00
Takayuki Shimizukawa
edf63e1406
Fix again. Sections which depth are lower than :tocdepth: should not be shown on localtoc sidebar. Closes #1251
2014-12-05 16:42:30 +09:00
Georg Brandl
4d5b20de38
merge with stable
2014-11-17 19:36:34 +01:00
Georg Brandl
571cae87a5
Closes #1372 : use https URL for PEPs and RFCs
2014-11-17 19:33:59 +01:00
Georg Brandl
6c194ad56f
Closes #1623 : Return types specified with `:rtype:
` are now turned into links if possible.
2014-11-12 11:32:21 +01: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
d289870f48
rename numfig_prefix
to numfig_format
. later is better for the purpose.
2014-10-10 00:19:17 +09:00
Takayuki Shimizukawa
da651089e7
fix trailing space and long line
2014-10-09 23:53:33 +09: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
tk0miya
a5606976b6
Fix flake8 violations
2014-10-06 13:56:51 +09:00
tk0miya
777218580a
Surround fignum and caption with <span> tag
2014-10-05 20:55:46 +09:00
tk0miya
8270575a9c
Update testcases for :numref:
2014-10-02 11:17:34 +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
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
Georg Brandl
cdaf4b0a52
remove a few unused imports
2014-09-21 20:28:37 +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
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
6c3789a353
Add tests for "any" role and default-role setting. Fix some minor bugs with "any".
2014-09-19 14:17:36 +02:00
tk0miya
dd8a02d5e1
Fix #1381 :rfc: and :pep: roles support custom link text
2014-08-20 12:27:08 +09:00
Takayuki Shimizukawa
4be8071639
Merged in tk0miya/sphinx (pull request #269 )
...
Fix #1476 replace <tt> tag by <code>
2014-08-20 06:45:18 +09:00
tk0miya
7db168416b
Set its URL as a default title value if URL appears in toctree
2014-08-20 01:00:29 +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
0943375069
Fix #1476 replace <tt> tag by <code>
2014-08-12 12:12:10 +09:00
tk0miya
5725ee0e82
Fix numbering section does not work at singlehtml mode (adhoc)
2014-08-12 11:22:34 +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
Takayuki Shimizukawa
6ae3b68859
replace ur'' prefix with r'' to support py2/py3 in one source. refs #1350
2014-04-30 23:04:21 +09:00
Takayuki Shimizukawa
1e58062692
remove 'six' name except importing line.
2014-04-30 21:30:46 +09:00
Takayuki Shimizukawa
f31d9113ff
use six privided functions/classes to support py2/py3 in one source. refs #1350
2014-04-30 20:39:26 +09:00
Takayuki Shimizukawa
ce4d342e20
use six privided iteritems(),itervalues() to support py2/py3 in one source. refs #1350 .
2014-04-29 21:20:56 +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
Georg Brandl
ac92719ac3
Update copyright year.
2014-03-01 08:18:23 +01:00
Georg Brandl
e030031321
Update copyright year.
2014-03-01 08:18:16 +01:00
Georg Brandl
e5f58d686e
merge with stable
2014-01-17 07:25:31 +01:00
Georg Brandl
24a8b516bf
Remove sphinx.ext.oldcmarkup compatibility extension.
2014-01-17 07:24:23 +01:00
Georg Brandl
de92e3b026
Closes #1285 : Avoid name clashes between C domain objects and section titles.
2014-01-17 07:08:32 +01:00
Georg Brandl
c5b4ff0adc
* add a test for the parsed-literal directive
...
* adapt test to pygments output versus Sphinx-emulated nohighlighting output
2014-01-11 10:25:34 +01:00
Georg Brandl
195050c6c4
Closes #933 : Do not crash if an `:option:
` value is malformed (contains spaces
...
but no option name).
2014-01-10 22:04:03 +01:00
Georg Brandl
04bc952dd9
fix trailing space
2013-12-10 10:23:45 +01:00
Georg Brandl
1a99c74e4b
Merged in RelentlessIdiot/sphinx (pull request #149 )
...
Fix #1203 : Do not append space to unknown field names.
2013-09-16 09:18:47 +02:00
Georg Brandl
8b85355a22
Fix new html_extra_path option for singlehtml builder.
2013-09-16 04:33:02 +02:00
Matthias C. M. Troffaes
e20c82a277
Test that extra entries are in outdir.
2013-08-22 09:24:00 +01:00
Rob Ruana
718f4a6f8c
Fix #1203 : Does not append space to unknown field names.
...
If an unknown field name is encountered, a space is only
appended if the field arguments are not empty. Also,
only the first character of the field name is upper cased,
and the case of the rest of the string remains unchanged.
2013-06-23 16:06:45 -04:00
Takayuki Shimizukawa
9d3bac3b8e
Fix: Citation target missing cause AssertionError. Closes #1160
2013-05-02 10:37:12 +09:00
Takayuki Shimizukawa
59d655c435
Fix: Combination of 'globaltoc.html' and hidden toctree cause exception. Closes #1157
2013-04-30 23:36:27 +09:00
Georg Brandl
1af3e3ea71
tests: replace "from util import *" by explicit imports
2013-04-01 11:39:32 +02:00
Nozomu Kaneko
919ba75483
versionlabels are handled entirely in the versionmodified directive, instead of the writers.
...
Now it returns a versionmodified node with the versionlabel already inserted.
2013-01-06 18:37:21 +09:00
Nozomu Kaneko
7630467f84
fix: paragraphs in versionmodified are ignored when it has no dangling paragraphs.
2013-01-06 18:05:49 +09:00
Takayuki Shimizukawa
9b9c69042e
Divide test_intl target source files for speed-up.
2013-01-06 16:15:49 +09:00
Georg Brandl
151856819c
Copyright update.
2013-01-01 22:13:15 +01:00
Takayuki Shimizukawa
6e044aedbc
Avoid unusable warning in using i18n translation. Closes #1057 .
...
And there is related information at pull request #86
2012-12-16 22:56:38 +09:00
Georg Brandl
4763419db1
Update Sphinx URL to new sphinx-doc.org domain.
2012-11-04 11:28:12 +01:00
Takayuki Shimizukawa
b948dfc7e0
fix for Python3: Python3 open() use 'rt' mode by default, and decoding by locale.getpreferredencoding(). In sphinx test, html output encoded by 'utf-8' but reading with syste-locale-setting-encode that cause UnicodeDecodeError.
2012-05-02 15:55:11 +09:00
Takayuki Shimizukawa
48128c7b9b
* fix test for Windows: test failed by test-code problem depends on os.sep.
2012-05-02 12:05:41 +09:00
Georg Brandl
4ff9c71c91
Closes #810 : fix deprecation warnings with Python 3. What is left over is from nose or docutils.
2012-01-29 12:23:17 +01:00
Georg Brandl
fa100632c3
Closes #695 : When the highlight language "python" is specified explicitly, do not try to parse the code to recognize non-Python snippets.
...
Thanks to Jonas Haag for the patch.
2012-01-29 10:21:01 +01:00
Georg Brandl
4abbe95a9c
Merge with 1.0
2011-09-23 11:03:23 +02:00
Georg Brandl
db87ed440c
Fix #648 : Fix line numbers reported in warnings about undefined references.
2011-09-23 09:46:24 +02:00
Georg Brandl
7cc2b0e46b
Adapt test to removal of <object> tags for SVG images.
2011-09-19 09:19:35 +02:00
Georg Brandl
0e1db6ad90
New year update.
2011-01-04 10:00:51 +01:00
Georg Brandl
5072e74a46
Fix test_build_html after latest docfields fix.
2011-01-04 00:23:27 +01:00
Georg Brandl
69e5b91b2d
Fix strange reportings of line numbers for warnings generated from
...
autodoc-included docstrings, due to different behavior depending
on docutils version.
2011-01-03 15:55:30 +01:00
Georg Brandl
3c2662580a
Cleanup after pull from https://bitbucket.org/timmartin/sphinx
2011-05-15 11:15:20 +02:00
Georg Brandl
7e5ff71c40
#513 : Allow giving non-local URIs for JavaScript files, e.g. in the JSMath extension.
2010-08-25 10:26:15 +00:00
Georg Brandl
a78e477bf7
Fix long line and test failure.
2010-08-23 16:48:51 +00:00
Georg Brandl
a484c6f793
#490 : Fix cross-references to objects of types added by the :func:~.Sphinx.add_object_type
API function.
2010-08-14 16:51:04 +02:00
Georg Brandl
df107e70f8
Allow breaking long signatures, continuing with backlash-escaped newlines.
2010-08-05 16:03:36 +02:00
Georg Brandl
8c91fb78ce
#484 : Fix crash when duplicating a parameter in an info field list.
...
Problem was that the :type: info nodes were inserted twice into the
doctree, which led to inconsistencies when reference nodes were resolved.
2010-08-05 12:53:05 +02:00
Georg Brandl
5a28ae4686
Add some tests for docfields.
2010-07-27 19:19:29 +02:00
Georg Brandl
3b64ec2a2e
Now that the expected warnings are regexes, diffing them with the actual output makes no sense anymore.
2010-07-27 19:07:51 +02:00
Georg Brandl
4a400034d9
This apparently fixes a failing test in Gentoo.
2010-07-27 17:52:57 +02:00
Georg Brandl
23971336b7
Fix :guilabel: unescaping, and make some tests actually run.
2010-07-21 11:33:24 +01:00
Daniel Neuhäuser
2cbaded701
Add test for oldcmarkup warning
2010-07-02 16:44:05 +02:00
Georg Brandl
bf767d5222
#454 : Add more index markup capabilities: marking see/seealso entries, and main entries for a given key.
2011-01-07 19:00:29 +01:00
Georg Brandl
17efae5622
merge with 1.0
2011-01-04 11:29:09 +01:00
Georg Brandl
3642b521ed
merge with 1.0
2011-01-04 00:35:27 +01:00
Georg Brandl
6c7aa8bb6d
merge with 1.0
2011-01-03 15:55:56 +01:00
Georg Brandl
3ddd7d9075
merge with 1.0
2010-08-25 12:02:59 +00:00
Georg Brandl
22b5751eb5
Fix test.
2010-08-25 11:33:25 +00:00
Georg Brandl
1778803e95
merge with 1.0
2010-08-23 16:49:05 +00:00
Georg Brandl
bafc3ee84d
merge with 1.0
2010-08-14 17:08:17 +02:00
Georg Brandl
861941e5f1
merge with 1.0
2010-08-05 16:20:12 +02:00
Georg Brandl
c683c6ed83
Add some changes not picked up in the transplantation process.
2010-07-28 19:49:06 +02:00
Georg Brandl
dd4f973221
merge with 0.6
2010-06-03 17:25:16 +02:00
Georg Brandl
f3c706edae
The `include
` directive now supports absolute paths, which are interpreted as relative to the source directory.
2010-05-30 12:59:42 +02:00
Georg Brandl
3bd9e4617e
Add a test for absolute image filenames.
2010-05-30 12:47:17 +02:00
Daniel Neuhäuser
6f982283ed
Fixed a testcase in response to issue #415 which is failing as of revision a854e3d2ca07
2010-05-30 04:47:28 +02:00
Georg Brandl
4d0facf1e1
Add the "oldcmarkup" extension, to help migrating to 1.0.
2010-05-24 15:12:27 +02:00
Georg Brandl
0238e83013
Merge with http://bitbucket.org/tpowers/sphinx/ (rewriting the external/internal distinction code)
...
In HTML output, references now get the class ``internal`` if they are internal to the whole project, as opposed to internal to the current page.
The ``menuselection`` and ``guilabel`` roles now support ampersand accelerators.
2010-05-24 12:57:07 +02:00
Daniel Neuhäuser
ddeb627cef
Don't use (in this case) unnecessary python2 unicode literals
2010-07-11 12:24:50 +02:00
Daniel Neuhäuser
839cc5aaeb
Revert changes from the last commit which caused problems with 2.x
2010-07-11 00:57:08 +02:00
Daniel Neuhäuser
a7ca488a8e
Removed XMLParser._fixtext which fixes several errors in the test suite
2010-07-10 19:47:32 +02:00
Daniel Neuhäuser
98b6073a7e
Fixed warnings in python3
2010-06-20 22:39:38 +02:00
Georg Brandl
454ecf80a4
Make the concept of "module index" generalized to domains. As a side-effect, the latex modindex is no longer generated by LaTeX.
2010-02-20 01:13:23 +01:00
Georg Brandl
03d5917a53
Split out test_build_latex.
2010-01-17 12:29:00 +01:00
Georg Brandl
2a2a66a923
merge with trunk
2010-01-08 18:55:35 +01:00
Georg Brandl
c80f52dfbf
Added `tab-width
option to
literalinclude
` directive.
2010-01-08 18:36:58 +01:00
Georg Brandl
b1c937f0d9
merge with trunk (not working perfectly yet)
2010-01-07 21:41:03 +01:00
Georg Brandl
2f09d24472
The `html_sidebars
` config value can now contain patterns as keys, and the values can be lists that explicitly select which sidebar templates should be rendered.
...
That means that the builtin sidebar contents can be included only selectively.
2010-01-07 17:56:09 +01:00
Georg Brandl
5cb64a7228
Apply static path exclusion patterns again.
...
Refactor exclusion stuff a bit, so that matchers only have to be compiled once.
2010-01-07 16:39:59 +01:00
Georg Brandl
c9345b33b2
`html_static_path
` can now contain single file entries.
...
Exclusion of static path files is not yet implemented.
HG: Bitte gib eine Versions-Meldung ein. Zeilen beginnend mit 'HG:' werden entfernt.
HG: Leere Versionsmeldung wird das Übernehmen abbrechen.
HG: --
HG: Benutzer: Georg Brandl <georg@python.org>
HG: branch 'default'
HG: added tests/root/_static/excluded.css
HG: added tests/root/_static/subdir/foo.css
HG: added tests/root/templated.css_t
HG: Geändert CHANGES
HG: Geändert doc/config.rst
HG: Geändert sphinx/builders/html.py
HG: Geändert sphinx/util/__init__.py
HG: Geändert tests/root/_static/README
HG: Geändert tests/root/conf.py
HG: Geändert tests/test_build_html.py
2010-01-07 16:20:52 +01:00
Georg Brandl
137e58462d
Activate test that depends on docutils >= 0.5.
2010-01-02 21:16:07 +01:00
Georg Brandl
5e6983b664
merge with trunk
2010-01-02 21:09:25 +01:00
Georg Brandl
82fa1f3cfe
Split off HTML tests from test_build.
2010-01-02 21:08:09 +01:00
Georg Brandl
faeec5cbbb
merge with trunk
2010-01-02 21:03:56 +01:00
Georg Brandl
f3a2854ba9
merge with trunk
2009-12-31 18:40:58 +01:00
Georg Brandl
5d0812fb91
merge with trunk
2009-12-28 19:49:57 +01:00
Georg Brandl
213eba0225
Automatically convert directive functions, and add a test for that.
2009-10-27 19:42:44 +01:00
Georg Brandl
0792ad7498
The `toctree()
callable in templates now has a
maxdepth
`
...
keyword argument to control the depth of the generated tree.
Also add tests for that callable.
2009-09-09 15:56:52 +02:00
Georg Brandl
8f8cc0e270
Move HTML test into own module and add some C references.
2009-09-08 12:07:27 +02:00