summaryrefslogtreecommitdiff
path: root/sphinx/transforms.py
Commit message (Collapse)AuthorAgeFilesLines
* Separate sphinx.transforms to multiple filesTakeshi KOMIYA2016-09-151-624/+0
|
* Refactor sphinx.environment: Reimplement filter_messages() as a transformTakeshi KOMIYA2016-09-151-0/+13
|
* Fix could not translate the content of meta directive (ref: #1734)Takeshi KOMIYA2016-09-011-1/+6
|
* Fix #1734: Could not translate the caption of toctree directiveTakeshi KOMIYA2016-09-011-0/+16
|
* std domain handles citationsTakeshi KOMIYA2016-08-161-1/+1
|
* Fix #2633: Sphinx crashes with old styled indicesTakeshi KOMIYA2016-06-071-0/+18
|
* fix #2522: Sphinx touches mo files under installed directoryshimizukawa2016-05-061-3/+1
| | | that caused permission error.
* Fix #2483: any figure number was not assigned if figure title contains only ↵Takeshi KOMIYA2016-05-011-1/+1
| | | | non text objects
* The default format of `today_fmt` and `html_last_updated_fmt` is back to ↵Takeshi KOMIYA2016-04-031-1/+1
| | | | | | | | | strftime format again `html_last_updated_fmt` is commonly used for non date formatting. But LDML is difficult to represent them from its characteristics. Now we moved to strftime format again (ref: #2394).
* Fix #2394: Sphinx crashes when html_last_updated_fmt is invalidTakeshi KOMIYA2016-04-011-1/+2
|
* Fix #794: Date formatting in latex output is not localizedTakeshi KOMIYA2016-02-141-3/+3
|
* classifier of glossary terms can be used for index entries grouping key. The ↵shimizukawa2016-02-141-4/+9
| | | | classifier also be used for translation. See also :ref:`glossary-directive`.
* Now term nodes in a glossary directive are wrapped with termset node to ↵shimizukawa2016-02-141-13/+2
| | | | | | handle multiple term correctly. Fix #2251; Line breaks in .rst files are transferred to .pot files in a wrong way.
* Refactor numfig: Move core implementation to std domainTakeshi KOMIYA2016-02-141-11/+3
|
* Override figure directive to apply :name: option to the figure itselfTakeshi KOMIYA2016-02-141-3/+0
|
* Merge with stableshimizukawa2016-02-091-31/+33
|\ | | | | | | | | | | | | Conflicts: sphinx/environment.py sphinx/ext/autodoc.py sphinx/writers/latex.py
| * Fix #2287: `sphinx.transforms.Locale` always uses rst parser. Sphinx i18n ↵shimizukawa2016-02-091-31/+29
|/ | | | feature should support parsers that specified source_parsers.
* transforms: Don't try to call has_child on parent nodes that are NoneDmitry Shachnev2016-01-221-2/+2
| | | | | | | | | | | | | | | | | | | | Otherwise the build can fail with the following error: File "/usr/lib/python2.7/dist-packages/sphinx/environment.py", line 791, in read_doc pub.publish() File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 218, in publish self.apply_transforms() File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 199, in apply_transforms self.document.transformer.apply_transforms() File "/usr/lib/python2.7/dist-packages/docutils/transforms/__init__.py", line 171, in apply_transforms transform.apply(**kwargs) File "/usr/lib/python2.7/dist-packages/sphinx/transforms.py", line 124, in apply if has_child(node.parent, nodes.caption): File "/usr/lib/python2.7/dist-packages/sphinx/transforms.py", line 117, in has_child return any(isinstance(child, cls) for child in node) TypeError: 'NoneType' object is not iterable The error could be reproduced with lp:autopilot/legacy branch from Launchpad.
* Obligatory copyright update.Georg Brandl2016-01-141-1/+1
|
* Fix filenames were not shown on warnings of citationsTakeshi KOMIYA2016-01-131-0/+1
|
* Fix #1994: More supporting non-standard parser (like recommonmark parser) ↵shimizukawa2015-09-131-0/+13
| | | | for Translation and WebSupport feature. Now node.rawsource is fall backed to node.astext() during docutils transforming.
* Fixes #1983: i18n translation feature breaks references which uses section name.shimizukawa2015-08-091-2/+4
|
* Fixed #1796: On py3, automated .mo building cause UnicodeDecodeError.shimizukawa2015-07-251-1/+2
|
* refactoring: move i18n related function from osutil into i18nshimizukawa2015-03-161-1/+2
|
* pep8 fixesGeorg Brandl2015-03-081-0/+2
|
* fix too long lineshimizukawa2015-02-241-2/+3
|
* refs #1235: i18n: 'uri' and 'alt' attribute on 'image' and 'figure' nodes ↵shimizukawa2015-02-221-2/+7
| | | | can be translated if `gettext_additional_targets` has 'image'.
* versioning_conditions for uuid/i18n uses is_translatable instead of ↵shimizukawa2015-02-221-0/+1
| | | | nodes.TextElement directly.
* fix bug for the change c53fa4bshimizukawa2015-02-221-0/+5
|
* refs #1235: i18n: 'doctest-block' and 'raw' node can be translated if ↵shimizukawa2015-02-221-0/+2
| | | | `gettext_additional_targets` has that string.
* refs #1235: i18n: 'literal-block' node can be translated if 'literal-block' ↵shimizukawa2015-02-221-3/+38
| | | | is set to `gettext_additional_targets`.
* The ``gettext_enables`` config value has been renamed to ↵shimizukawa2015-02-221-1/+1
| | | | `gettext_additional_targets`.
* Closes #1732. Localized table caption raises exception.shimizukawa2015-02-211-20/+26
| | | | It is potentially bug that appears by a change https://github.com/sphinx-doc/sphinx/commit/7cd470f59a0710f7ad4d5a94c10cd907aa135af0
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\
| * all: update copyrightGeorg Brandl2015-01-031-1/+1
| |
* | add :confval:`gettext_enables` to enable extracting 'index' to gettext ↵Takayuki Shimizukawa2014-09-281-16/+17
| | | | | | | | catalog output / applying translation catalog to generated documentation. Closes #1344
* | Refactor has_child() function (by review)tk0miya2014-09-271-5/+1
| |
* | Assign fignum to tables and code-blockstk0miya2014-09-271-0/+6
| |
* | Assign figure numbers automaticallytk0miya2014-09-261-0/+23
| |
* | Minor PEP8 cleanup.Georg Brandl2014-09-211-12/+14
| |
* | Merge with stableTakayuki Shimizukawa2014-08-301-0/+6
|\ \ | |/
| * Add source comment to explain why is the second argument (msgnode) not ↵Takayuki Shimizukawa2014-08-301-0/+6
| | | | | | | | needed. Refs #1300, 8d51df20d4
* | * fix over 80 chars line and remove unused import.Takayuki Shimizukawa2014-06-151-1/+0
| |
* | merge with stableGeorg Brandl2014-03-251-3/+9
|\ \ | |/
| * Fix i18n: missing python domain's cross-references with currentmodule ↵Takayuki Shimizukawa2014-03-231-3/+9
| | | | | | | | | | | | | | | | | | 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.
* | Merged in shimizukawa/sphinx-drop-old-docutils (pull request #206)Georg Brandl2014-03-011-4/+1
|\ \ | | | | | | | | | Drop docutils-0.7, 0.8, 0.9 support.
| * | Drop docutils-0.7, 0.8 and 0.9 supportTakayuki Shimizukawa2013-12-151-4/+1
| | |
* | | Update copyright year.Georg Brandl2014-03-011-1/+1
|\ \ \ | | |/ | |/|
| * | Update copyright year.Georg Brandl2014-03-011-1/+1
| | |
* | | merge with stableGeorg Brandl2014-01-261-1/+2
|\ \ \ | |/ /