|
1 | 1 | import sys, os
|
2 | 2 | import sphinx_rtd_theme
|
3 | 3 |
|
4 |
| -import recommonmark |
5 |
| -from recommonmark.transform import AutoStructify |
| 4 | +#import recommonmark |
| 5 | +import myst_parser |
| 6 | +#from recommonmark.transform import AutoStructify |
6 | 7 |
|
7 | 8 | from sphinx.highlighting import lexers
|
8 | 9 | from pygments.lexers.web import PhpLexer
|
|
17 | 18 | lexers['json'] = JsonLexer(startinline=True)
|
18 | 19 |
|
19 | 20 | extensions = [
|
20 |
| - 'recommonmark', |
| 21 | + #'recommonmark', |
| 22 | + 'myst_parser', |
21 | 23 | 'sphinx_rtd_theme',
|
22 | 24 | 'sphinx_copybutton',
|
23 | 25 | 'sphinx_markdown_tables',
|
|
27 | 29 | master_doc = 'index'
|
28 | 30 |
|
29 | 31 | project = 'Warden'
|
30 |
| -copyright = '2019-2021 by David Alger.' |
| 32 | +copyright = '2019-2022 by David Alger.' |
31 | 33 | author = 'David Alger'
|
32 | 34 | version = ''
|
33 | 35 | release = ''
|
|
42 | 44 | templates_path = ['_templates']
|
43 | 45 | html_extra_path = ['_redirects']
|
44 | 46 |
|
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) |
0 commit comments