Commit Graph
211 Commits
Author SHA1 Message Date
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