mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add the "oldcmarkup" extension, to help migrating to 1.0.
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -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
|
||||
================
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user