diff options
| author | Georg Brandl <georg@python.org> | 2010-02-28 19:30:30 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-02-28 19:30:30 +0100 |
| commit | 19eabfa2a8d4ef42f4b4a1560d49e2c0a7b1a85e (patch) | |
| tree | a5cb0218b458536ec7c16d58eff903ce882a2c00 /sphinx/directives | |
| parent | c091fb455490a7a00854a30f410f1a824bae232c (diff) | |
| download | sphinx-19eabfa2a8d4ef42f4b4a1560d49e2c0a7b1a85e.tar.gz | |
Re-export docutils .. class:: as .. rst-class:: and un-document .. cssclass::.
Diffstat (limited to 'sphinx/directives')
| -rw-r--r-- | sphinx/directives/other.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index c71f9afe..448498f8 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -380,6 +380,8 @@ directives.register_directive('hlist', HList) directives.register_directive('only', Only) # register the standard rst class directive under a different name -# only for backwards compatibility now from docutils.parsers.rst.directives.misc import Class +# only for backwards compatibility now directives.register_directive('cssclass', Class) +# new standard name when default-domain with "class" is in effect +directives.register_directive('rst-class', Class) |
