summaryrefslogtreecommitdiff
path: root/sphinx/io.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-09-10 23:31:43 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-09-15 02:29:50 +0900
commitf8c1c65c21ca91d567a5a083836dfa92a4f48e8a (patch)
tree364ce06d7e74404e9fef00299b9219ff703970e8 /sphinx/io.py
parent7c99bd5d18197a7fd101ec91f73cb5505487b510 (diff)
downloadsphinx-git-f8c1c65c21ca91d567a5a083836dfa92a4f48e8a.tar.gz
Refactor sphinx.environment: Reimplemnt process_refonly_bullet_lists() as a transform
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/io.py b/sphinx/io.py
index 7f6ea2c59..f1386c9a8 100644
--- a/sphinx/io.py
+++ b/sphinx/io.py
@@ -18,6 +18,7 @@ from sphinx.transforms import (
DefaultSubstitutions, MoveModuleTargets, HandleCodeBlocks, SortIds,
AutoNumbering, AutoIndexUpgrader, FilterSystemMessages,
)
+from sphinx.transforms.compact_bullet_list import RefOnlyBulletListTransform
from sphinx.transforms.i18n import (
PreserveTranslatableMessages, Locale, RemoveTranslatableInline,
)
@@ -65,7 +66,8 @@ class SphinxStandaloneReader(SphinxBaseReader):
transforms = [ApplySourceWorkaround, ExtraTranslatableNodes, PreserveTranslatableMessages,
Locale, CitationReferences, DefaultSubstitutions, MoveModuleTargets,
HandleCodeBlocks, AutoNumbering, AutoIndexUpgrader, SortIds,
- RemoveTranslatableInline, PreserveTranslatableMessages, FilterSystemMessages]
+ RemoveTranslatableInline, PreserveTranslatableMessages, FilterSystemMessages,
+ RefOnlyBulletListTransform]
class SphinxI18nReader(SphinxBaseReader):
@@ -79,7 +81,7 @@ class SphinxI18nReader(SphinxBaseReader):
transforms = [ApplySourceWorkaround, ExtraTranslatableNodes, CitationReferences,
DefaultSubstitutions, MoveModuleTargets, HandleCodeBlocks,
AutoNumbering, SortIds, RemoveTranslatableInline,
- FilterSystemMessages]
+ FilterSystemMessages, RefOnlyBulletListTransform]
def __init__(self, *args, **kwargs):
SphinxBaseReader.__init__(self, *args, **kwargs)