Skip to content

Commit 4d9d3d7

Browse files
committed
docs: Update for myst_parser, typehints
1 parent 9e97941 commit 4d9d3d7

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

docs/conf.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from os.path import dirname, relpath
55

66
import alagitpull
7-
from recommonmark.transform import AutoStructify
87

98
import libtmux # NOQA
109
from libtmux import test # NOQA
@@ -25,30 +24,15 @@
2524
extensions = [
2625
'sphinx.ext.autodoc',
2726
'sphinx.ext.intersphinx',
27+
'sphinx_autodoc_typehints',
2828
'sphinx.ext.todo',
2929
'sphinx.ext.linkcode',
3030
'sphinx.ext.napoleon',
3131
'alagitpull',
3232
'sphinx_issues',
33-
'recommonmark',
33+
'myst_parser',
3434
]
3535

36-
# app setup hook
37-
def setup(app):
38-
app.add_config_value(
39-
'recommonmark_config',
40-
{
41-
#'url_resolver': lambda url: github_doc_root + url,
42-
'enable_auto_toc_tree': True,
43-
'auto_toc_tree_section': 'Contents',
44-
'auto_code_block': True,
45-
'enable_eval_rst': True,
46-
},
47-
True,
48-
)
49-
app.add_transform(AutoStructify)
50-
51-
5236
issues_github_path = about['__github__'].replace('https://github.com/', '')
5337

5438
templates_path = ['_templates']

0 commit comments

Comments
 (0)