summaryrefslogtreecommitdiff
path: root/sphinx/directives
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-28 19:30:30 +0100
committerGeorg Brandl <georg@python.org>2010-02-28 19:30:30 +0100
commit19eabfa2a8d4ef42f4b4a1560d49e2c0a7b1a85e (patch)
treea5cb0218b458536ec7c16d58eff903ce882a2c00 /sphinx/directives
parentc091fb455490a7a00854a30f410f1a824bae232c (diff)
downloadsphinx-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.py4
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)