Commit Graph
1405 Commits
Author SHA1 Message Date
jfbu 53d202440f add `@skip_if_stylefiles_notfound` to maxlistdepth test 2016-11-05 11:50:12 +01:00
jfbu 0473e438dc add unit test for maxlistdepth (latex) 2016-11-04 23:57:00 +01:00
Takeshi KOMIYA a503849ac1 Merge pull request #2495 from electrofelix/linkcheck-skip-anchors
Allow skipping anchor checking using regex
2016-11-04 23:53:46 +09:00
Takeshi KOMIYA 56958227c8 Refactor test_bulid_latex: add skip_if_stylefiles_notfound() 2016-11-04 15:14:41 +09:00
Takeshi KOMIYA 3f4721e140 Refactore test_build_latex: add compile_latex_document() 2016-11-04 12:06:19 +09:00
Alex Grönholm a1f6baaa81 Fix annotations formatting for plain typing.Callable
The typing.Callable class may be used without generic arguments, in which case it is equivalent to collections.abc.Callable.
2016-11-02 21:43:33 +02:00
Takeshi KOMIYA b32d9a9bc7 Merge pull request #3071 from mleinart/autodoc/pass_through_decorators
Autodoc: Allow mocked module decorators to pass-through functions unchanged
2016-11-02 23:01:16 +09:00
Takeshi KOMIYA ae1f523d52 Add `--extensions to sphinx-quickstart` to support enable arbitary extensions from command line (ref: #2904) 2016-11-02 11:11:15 +09:00
shimizukawa a5bdf1fdae Closes #3060: autodoc supports documentation for attributes of Enum class. Now autodoc render just the value of Enum attributes instead of Enum attribute representation. 2016-10-28 00:02:09 +09: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
jfbu 4d3f5b3c1c update style files checklist for latex tests 2016-10-27 11:43:20 +02:00
Jakub Wilk 43cab26ece Fix typos 2016-10-22 18:12:34 +02:00
Michael Leinartas 7943da9408 Add tests for mocked modules 2016-10-21 09:53:25 -05:00
shimizukawa 021974ed94 refs #2432 update for latest master 2016-10-19 01:08:07 +09:00
Takayuki SHIMIZUKAWA 340c6fb9f4 Merge pull request #2432 from agronholm/kwonlyargs
#2432 Fix unwanted * between varargs and keyword only args
2016-10-19 00:54:38 +09: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
shimizukawa 487f3db5f6 To simplify, sphinx uses external mock package even if unittest.mock exists. 2016-10-15 16:22:27 +09:00
Jonathan Harker 59ba8c1dee Fix #3028: figure_language_filename format tokens, document tokens. 2016-10-13 16:41:57 +13: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
Takeshi KOMIYA c5e56969ed Add testcase for indexentries 2016-10-11 18:59:21 +09:00
Takeshi KOMIYA 6027bb75a5 Refactor: move process_only_nodes() to sphinx.util.nodes 2016-10-11 18:59:21 +09:00
Takeshi KOMIYA dd3f12a7fc Fix style-check violation 2016-10-11 18:59:12 +09:00
jfbu e43a31da12 Re-insert check for LaTeX macro filename which got suppressed in merge 2016-10-10 21:15:53 +02:00
jfbu 861973bfbb Merge branch 'usegeometrypackage' 2016-10-10 20:55:44 +02:00
Jean-François B 89ccf9e103 Merge pull request #3017 from jfbu/fixuseofncychap
Fix #147 and fix #1986: Problem with latex chapter style
2016-10-10 20:49:05 +02: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
jfbu 34f1ce17fd Fix #3018: LaTeX problem with page dimensions and chapter titles
New key ``'geometry'`` to ``latex_elements``.
2016-10-07 23:40:39 +02:00
jfbu 5b78aa28fe Fix #147 and fix #1986: Problem with latex chapter style
Notice that as an after effect ``Contents`` or ``Python Module Index``
will appear (by default) in bold, and larger than formerly (it was a
bug of Sphinx that they were not styled).

I am leaving the `\py@HeaderFamily` in the `sphinx.sty` patch to the
Bjarne `fncychap.sty` style for backwards compatibility. And as it does
`\bfseries` by default I left only the size changing commands in the
`fncychap` customization of Bjarne style.

Also, the `\@makechapterhead` re-definition obeys `\mainmatter` etc...
2016-10-07 11:55:43 +02:00
Takeshi KOMIYA 4c3c128e9b Fix #3000: `option` directive generates invalid HTML anchors
fix
2016-10-07 12:11:28 +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 ce7fea9a35 Fix #2988: linkcheck: retry with GET request if denied HEAD request 2016-10-04 12:47:59 +09:00
Takeshi KOMIYA bc6b4bf70e Remove unused LaTeX macro filename from tests 2016-10-02 06:58:55 +09:00
Takeshi KOMIYA 9358ea239b Add testcase for toctree 2016-09-30 10:42:18 +09:00
Takeshi KOMIYA 50bf7960bd Uninstall sphinx directives and roles of domains after build 2016-09-21 10:48:52 +09: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 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 98886d3e07 Merge pull request #2951 from arcivanov/issue_2949
Sphinx apidoc does not process PEP-0420 implicit namespaces
2016-09-17 14:49:28 +09:00
Arcadiy Ivanov e34b6823c7 Sphinx apidoc does not process PEP-0420 implicit namespaces
fixes #2949, connected to #2949
2016-09-15 11:49:34 -04: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 c832d36d19 Merge pull request #2056 from erosennin/intersphinx-fix-relative-path
Fix relative paths in intersphinx links
2016-09-14 10:54:18 +09:00
Takeshi KOMIYA fae9eb7784 Fix tests are crashed under unstable network 2016-09-10 16:49:17 +09:00
Takeshi KOMIYA 15518bad12 Fix could not translate the content of meta directive (ref: #1734) 2016-09-01 23:35:23 +09:00