Commit Graph

367 Commits

Author SHA1 Message Date
Takeshi KOMIYA
9fc2657d7e Add :confval:html_js_files 2018-06-09 02:38:36 +09:00
Takeshi KOMIYA
e30b10a57d html: Output `canonical_url metadata if :confval:html_baseurl` set 2018-06-06 21:18:17 +09:00
Takeshi KOMIYA
d62a274709 Fix #4983: productionlist directive generates invalid IDs for the tokens 2018-05-22 11:17:50 +09:00
Takeshi KOMIYA
cbf4ee24f9 Fix #4811: The files under html_static_path are excluded from source 2018-05-03 11:07:14 +09:00
Takeshi KOMIYA
5efecd2150 Add :confval:html_css_files 2018-04-06 13:11:24 +09:00
Takeshi KOMIYA
2c7d08ee47 Merge branch '1.7' 2018-03-19 23:46:15 +09:00
Takeshi KOMIYA
39835bf885 Fix #4720: message when an image is mismatched for builder is not clear 2018-03-18 01:35:42 +09:00
Takeshi KOMIYA
4cebc4399c Merge commit '6694981dd6939ab876b27d4e20a8128561c307ac' 2018-03-15 02:02:21 +09:00
Takeshi KOMIYA
88abc67bf8 Merge branch '1.7' into relax-numref-on-sections 2018-03-08 01:11:12 +09:00
Takeshi KOMIYA
31db987d68 Update testcases 2018-03-08 01:11:07 +09:00
Takeshi KOMIYA
938ba386ed Merge branch '1.7' 2018-02-20 00:02:57 +09:00
Takeshi KOMIYA
f7027049b1 Fix flake8 violations 2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
a9f370bc12 test: Remove function based directives 2018-02-08 13:50:25 +09:00
Takeshi KOMIYA
91873f09b8 Merge branch 'stable' into 1.7-release 2018-01-21 16:06:14 +09:00
Takeshi KOMIYA
896ab3a2f5 Fix #4434: pure numbers as link targets produce warning 2018-01-20 19:43:43 +09:00
Takeshi KOMIYA
4d040abafb Fix #4079: Add notranslate class to let Google Translate know they are not translatable 2018-01-13 20:25:49 +09:00
Antoine Beaupré
90f7c7ef3f
add link to manpages in HTML builder
It is useful to have the HTML documentation builder actually link to
real rendered versions of HTML manpages in its output. That way people
can click on manpages to get the full documentation. There are a few
services offering this online, so we do not explicitly enable one by
default, but the Debian manpages repository has a lot of the manpages
pre-rendered, so it is used as an example in the documentation.

The parsing work is done by a transformer class that parses manpage
objects and extract name/section elements. Those then can be used by
writers to cross-reference to actual sites. An implementation is done
in the two HTML writers, but could also apply to ePUB/PDF writers as
well in the future.

This is not enabled by default: the `manpages_url` configuration item
needs to be enabled to point to the chosen site. The `page`, `section`
and `path` parameters are expanded through Python string formatting in
the URL on output.

Unit tests are fairly limited, but should cover most common use-cases.
2018-01-11 13:20:34 -05:00
Takeshi KOMIYA
f1f6ca8cc9 Merge branch 'happy_new_year' into master 2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b A happy new year! 2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
a9efb2517a Fix flake8 violations 2017-12-23 21:21:21 +09:00
Takeshi KOMIYA
ec240614d9 test_autodoc: Separate testdata (python objects) and testcases 2017-12-21 12:12:13 +09:00
Takeshi KOMIYA
5bc5b8f013 Merge branch 'stable' 2017-12-16 00:53:55 +09:00
Takeshi KOMIYA
e3bbffc36e test: Add test_html_copy_source 2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a3f04c3397 Refactor test_build_html: Use basic project instead roots 2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a5b64c98af diet test-root: Remove html_static_path and html_extra_path (duplicated with test-html_assets) 2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a8ab1f164b diet test-root: Move testtheme to test-theming 2017-12-15 02:35:32 +09:00
David Lechner
831f89a687 Closes #3160: Use <kbd> tag for :kbd: role in html writers 2017-10-30 10:23:55 -05:00
Takeshi KOMIYA
b78f3090a0 HTML themes can set up default sidebars through `theme.conf` 2017-10-22 15:14:02 +09:00
Andy Neebel
db8663db06 Fix the warnings, need to handle the repr escaping 2017-06-14 13:29:49 -05:00
Andy Neebel
f68c108f10 Mark tests as xfail/skip to allow successful run 2017-06-14 13:27:31 -05:00
Takeshi KOMIYA
2f61be8bb7 Fix Emit wrong warnings if citation label includes hyphens (refs: #3558) 2017-06-04 13:55:14 +09:00
shimizukawa
d497d74370 refs #3458: add sphinx.testing that are moved from /tests directory. 2017-05-14 20:47:15 +09:00
Takeshi KOMIYA
56d3458584 Fix flake8 violations 2017-05-09 21:57:36 +09:00
Dmitry Shachnev
f99f5b23ee Backport fixes for French quotes from docutils 2017-04-25 14:17:31 +03:00
Dmitry Shachnev
1f9e251943 Add tests for English, Russian and French smart quotes 2017-04-25 14:17:29 +03:00
Takeshi KOMIYA
241c0db7bc Merge branch 'master' into support_remote_images 2017-04-22 09:45:05 +09:00
Jakub Wilk
79a841e98c Remove misplaced flags from re.sub() calls
The 4th argument of re.sub() is maximum number of substitutions,
not flags.

Moreover, re.MULTILINE affects only semantics of ^ and $,
so it wouldn't have any effect on this regular expression.
2017-04-20 00:04:08 +02:00
Takeshi KOMIYA
a5d77a8f06 Drop warning for nonlocal image URI 2017-04-19 01:40:17 +09:00
Takeshi KOMIYA
3c46c2f5ac Add ImageDownloader transform to support remote images on some builders 2017-04-19 01:40:17 +09:00
Jellby
e59a8028d7 Rewrite and simplify stylesheet handling
Thanks to tk0miya's comment, I learnt one can add stuff to template
blocks, that allows a much simpler stylesheet configuration, considering
that changes at the template level will be more... well, low-level.
Hopefully this is now acceptable.
2017-04-15 17:07:33 +02:00
Jellby
1cfed262d2 Merge remote-tracking branch 'upstream/master'
Conflicts:
	tests/test_build_html.py
2017-04-15 15:54:06 +02:00
Takeshi KOMIYA
939f01eae3 Fix #3594: LaTeX: single raw directive has been considereed as block level element 2017-04-08 11:54:01 +09:00
Takeshi KOMIYA
8f9dd64992 Merge branch 'stable' 2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042 Year++ 2017-03-26 11:49:34 +09:00
Travis A. Everett
4c67c110f6 Also change depart_admonition calls for html5 builder 2017-03-04 20:32:46 -06:00
Travis A. Everett
cabfcbd70d Fix #3506: consistently pass node to depart_admonition in HTML writer 2017-03-04 13:40:05 -06:00
Jellby
68cf06a2ce Update version (there's still hope) 2017-03-04 12:14:54 +01:00
Jellby
3ce6168958 Merge remote-tracking branch 'upstream/master'
Conflicts:
	tests/test_build_html.py
2017-03-04 12:03:15 +01:00
Takeshi KOMIYA
432ec25d9c Fix for py3 2017-03-04 01:03:29 +09:00
Takeshi KOMIYA
ffb627db89 Merge branch 'master' into refactor_inventory 2017-03-04 00:13:39 +09:00
Takeshi KOMIYA
7cb655d7cd Update testcase 2017-03-04 00:02:38 +09:00
Takeshi KOMIYA
c1a70397e1 Add InventoryFile.dump() 2017-03-02 23:48:05 +09:00
Yoshiki Shibukawa
0ef9ac54f1 Add experimental HTML5 writer 2017-03-02 09:56:50 +09:00
Takeshi KOMIYA
0b1178bff7 Merge branch 'stable' 2017-03-01 15:04:28 +09:00
Yoshiki Shibukawa
3502831214 replace internal copy of ElementTree with standard library's ElementTree 2017-03-01 12:01:40 +09:00
Takeshi KOMIYA
496ff70f4a Merge branch 'stable' 2017-02-26 16:01:22 +09:00
Yoshiki Shibukawa
1cce97ad5c Fix &nbsp is appeared in EPUB docs #3450 again 2017-02-26 00:29:25 +09:00
jfbu
99315fa8e0 update root footnote test 2017-02-18 16:26:00 +01:00
Takeshi KOMIYA
e1da72b59c Reduce DeprecationWarnings for regexp 2017-02-17 02:01:04 +09:00
Takeshi KOMIYA
c62a0ad765 Merge branch 'stable' 2017-02-15 01:42:20 +09:00
Takeshi KOMIYA
b9bba672ed Fix #3366: option directive does not allow punctuations 2017-02-15 01:42:08 +09:00
Takeshi KOMIYA
d33cf04979 Merge branch 'stable' 2017-01-29 18:05:17 +09:00
Takeshi KOMIYA
cf2061dfad Fix flake8 violations 2017-01-26 01:13:17 +09:00
Takeshi KOMIYA
8cbe1efe8d Merge branch 'stable' 2017-01-10 01:04:21 +09:00
shimizukawa
b5530629a9 pytest: update by reviewing
* remove 'specific_srcdir' feature
* simplify 'shared_result' feature
* rename 'AppWrapper' into 'SphinxTestAppWrapperForSkipBuilding'
2017-01-09 17:41:47 +09:00
shimizukawa
561abdd164 pytest optimizatoin:
- remote using deprecated decorators
- remove gen_with_app
- remove yield testing
- remove pytest warnings
- refactoring
2017-01-08 15:14:38 +09:00
shimizukawa
4c22cd10ca Merge branch 'stable' 2017-01-07 02:14:29 +09:00
shimizukawa
baaef9146d pytest: remove deprecated with_app decorator functions 2017-01-06 01:14:47 +09:00
shimizukawa
5b7d237db3 pytest migration 2017-01-04 00:59:30 +09:00
Takeshi KOMIYA
85dcd7baa8 Use sphinx.util.logging instead app.warn() 2017-01-02 12:59:50 +09:00
Jellby
6ce1bb1f00 Merge remote-tracking branch 'upstream/master'
Conflicts:
	sphinx/application.py
	sphinx/builders/html.py
2016-12-06 19:14:12 +01: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
4c3c128e9b Fix #3000: `option` directive generates invalid HTML anchors
fix
2016-10-07 12:11:28 +09:00
Jellby
f105b737ed Let's see now 2016-09-29 20:43:43 +02:00
Jellby
fbc8802dc3 Remove trailing whitespaces 2016-09-29 20:27:35 +02: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
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
b7628484ee Fix style-check violation 2016-08-31 00:43:12 +09:00
Takeshi KOMIYA
c7f299b86f Fix #646: `option` directive support . character as a part of options 2016-08-31 00:04:41 +09:00
Yoshiki Shibukawa
8e0bf12f5f Fix genindex.html to satisfy xhtml standard 2016-08-18 21:17:12 +09:00
Takeshi KOMIYA
6911611f8d Fix broken test 2016-08-18 12:48:13 +09:00
Takeshi KOMIYA
1cfde018d2 Merge branch 'stable' 2016-08-18 12:12:15 +09:00
Takeshi KOMIYA
1c9524dedd Add testcase for #2846 2016-08-17 13:58:05 +09:00
Glenn Matthews
8c1a8153ca Create PyGroupedField and use it for 'exceptions' 2016-07-15 22:01:06 -04: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
b95f450452 Optimize tests: test_jsmath 2016-07-14 01:43:25 +09:00
Takeshi KOMIYA
bd715c8155 Remove debug print 2016-07-09 01:05:37 +09:00
Takeshi KOMIYA
4fbcb5bfd6 math: Add hyperlink marker to each equations in HTML output 2016-07-09 00:22:03 +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
Takeshi KOMIYA
31c6beb578 Merge pull request #2454 from mgeier/html-sourcelink-txt
Add option html_sourcelink_suffix
2016-07-06 01:43:18 +09:00
Takeshi KOMIYA
51937f8089 #2597: Show warning messages as darkred 2016-06-24 14:23:19 +09:00
Takeshi KOMIYA
88c026d0bd Merge branch 'stable' 2016-06-12 00:42:47 +09:00
Takeshi KOMIYA
80921b2ab8 Fix flake8 violation under tests/ 2016-06-12 00:02:11 +09:00
Matthias Geier
5559150578 Change html_sourcelink_txt -> html_sourcelink_suffix 2016-06-07 15:17:12 +02:00
Matthias Geier
86615e1f09 Add option html_sourcelink_txt 2016-06-07 15:15:39 +02:00
Matthias Geier
7886ecc994 Add test cases for HTML source links 2016-06-07 15:15:39 +02:00
Takeshi KOMIYA
368277f10a Merge pull request #2586 from avylove/html5lib
Use html5lib to parse HTML in tests instead of XMLParser
2016-06-05 22:20:00 +09:00
Takeshi KOMIYA
1b939042df Make testcases robust 2016-06-03 00:30:39 +09:00
Takeshi KOMIYA
24beece2a3 Fix combination of figure directive options; width, figwidth and align (ref: #2595) 2016-05-30 13:13:38 +09:00
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