Add the "oldcmarkup" extension, to help migrating to 1.0.

This commit is contained in:
Georg Brandl
2010-05-24 15:12:27 +02:00
parent 6bffed3d3a
commit 4d0facf1e1
7 changed files with 102 additions and 1 deletions

View File

@@ -6,7 +6,8 @@ sys.path.append(os.path.abspath('.'))
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.jsmath', 'sphinx.ext.todo',
'sphinx.ext.coverage', 'sphinx.ext.autosummary',
'sphinx.ext.doctest', 'sphinx.ext.extlinks', 'ext']
'sphinx.ext.doctest', 'sphinx.ext.extlinks',
'sphinx.ext.oldcmarkup', 'ext']
jsmath_path = 'dummy.js'

View File

@@ -73,6 +73,14 @@ C items
.. c:var:: sphinx_global
Old C items (from oldcmarkup ext)
---------------------------------
.. cfunction:: Sphinx_Func()
Refer to :cfunc:`Sphinx_Func`.
Javascript items
================

View File

@@ -157,6 +157,8 @@ HTML_XPATH = {
".//a[@href='#SPHINX_USE_PYTHON']": '',
".//a[@href='#SphinxType']": '',
".//a[@href='#sphinx_global']": '',
# reference from old C markup extension
".//a[@href='#Sphinx_Func']": '',
# test global TOC created by toctree()
".//ul[@class='current']/li[@class='toctree-l1 current']/a[@href='']":
'Testing object descriptions',