mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 10:34:10 +00:00
[doc] enable autostructify
This commit is contained in:
@@ -56,6 +56,20 @@ default_role = 'literal'
|
|||||||
|
|
||||||
# -- Source -------------------------------------------------------------
|
# -- Source -------------------------------------------------------------
|
||||||
|
|
||||||
|
import recommonmark
|
||||||
|
from recommonmark.transform import AutoStructify
|
||||||
|
|
||||||
|
|
||||||
|
def setup(app):
|
||||||
|
app.add_config_value(
|
||||||
|
'recommonmark_config',
|
||||||
|
{'enable_eval_rst': True, 'enable_auto_doc_ref': True},
|
||||||
|
True,
|
||||||
|
)
|
||||||
|
app.add_stylesheet('custom.css')
|
||||||
|
app.add_transform(AutoStructify)
|
||||||
|
|
||||||
|
|
||||||
source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'}
|
source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'}
|
||||||
|
|
||||||
source_suffix = ['.rst', '.md']
|
source_suffix = ['.rst', '.md']
|
||||||
|
Reference in New Issue
Block a user