Skip to content

Commit 0e9cb25

Browse files
committed
Import Build changes from Den
1 parent c3c1651 commit 0e9cb25

File tree

2 files changed

+28
-17
lines changed

2 files changed

+28
-17
lines changed

conf.py

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import sys, os
22
import sphinx_rtd_theme
33

4-
import recommonmark
5-
from recommonmark.transform import AutoStructify
4+
#import recommonmark
5+
import myst_parser
6+
#from recommonmark.transform import AutoStructify
67

78
from sphinx.highlighting import lexers
89
from pygments.lexers.web import PhpLexer
@@ -17,7 +18,8 @@
1718
lexers['json'] = JsonLexer(startinline=True)
1819

1920
extensions = [
20-
'recommonmark',
21+
#'recommonmark',
22+
'myst_parser',
2123
'sphinx_rtd_theme',
2224
'sphinx_copybutton',
2325
'sphinx_markdown_tables',
@@ -27,7 +29,7 @@
2729
master_doc = 'index'
2830

2931
project = 'Warden'
30-
copyright = '2019-2021 by David Alger.'
32+
copyright = '2019-2022 by David Alger.'
3133
author = 'David Alger'
3234
version = ''
3335
release = ''
@@ -42,11 +44,20 @@
4244
templates_path = ['_templates']
4345
html_extra_path = ['_redirects']
4446

45-
def setup(app):
46-
app.add_config_value('recommonmark_config', {
47-
'auto_toc_tree_section': ['Table of Contents'],
48-
'enable_math': False,
49-
'enable_inline_math': False,
50-
'enable_eval_rst': True,
51-
}, True)
52-
app.add_transform(AutoStructify)
47+
myst_enable_extensions = [
48+
"html_admonition",
49+
"strikethrough",
50+
"colon_fence",
51+
]
52+
53+
#def setup(app):
54+
#app.add_config_value('myst_parser_config', {
55+
#
56+
#}, True)
57+
#app.add_config_value('recommonmark_config', {
58+
# 'auto_toc_tree_section': ['Table of Contents'],
59+
# 'enable_math': False,
60+
# 'enable_inline_math': False,
61+
# 'enable_eval_rst': True,
62+
#}, True)
63+
#app.add_transform(AutoStructify)

requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
sphinx>=1.7.4,<2.0
2-
sphinx_rtd_theme>=0.4.3,<1.0
3-
recommonmark>=0.6.0,<1.0
1+
sphinx>=5.0.0,<6.0.0
2+
sphinx_rtd_theme>=1.0.0,<2.0
3+
myst-parser>=0.18.0,<1.0
44
sphinx-copybutton>=0.2.11,<1.0
5-
sphinx-markdown-tables==0.0.15
6-
jinja2<3.1.0
5+
sphinx-markdown-tables>=0.0.15,<1.0
6+
jinja2>=3.0

0 commit comments

Comments
 (0)