Skip to content

Commit 0cdc5eb

Browse files
committed
Optimize Document Configuration Files
1 parent 8b4efc3 commit 0cdc5eb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

source/conf.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
'myst_parser',
1919
'sphinxcontrib.mermaid',
2020
'sphinx_copybutton',
21+
"sphinx.ext.autosectionlabel",
22+
"sphinx.ext.todo",
23+
"sphinx.ext.viewcode",
2124
]
2225

2326
source_suffix = {
@@ -26,6 +29,25 @@
2629
'.md': 'markdown',
2730
}
2831

32+
myst_enable_extensions = [
33+
"amsmath",
34+
"attrs_inline",
35+
"colon_fence",
36+
"deflist",
37+
"dollarmath",
38+
"fieldlist",
39+
"html_admonition",
40+
"html_image",
41+
"replacements",
42+
"smartquotes",
43+
"strikethrough",
44+
"substitution",
45+
"tasklist",
46+
]
47+
48+
copybutton_prompt_text = r">>> |\.\.\. |\$ "
49+
copybutton_prompt_is_regexp = True
50+
2951
templates_path = ['_templates']
3052
exclude_patterns = []
3153

0 commit comments

Comments
 (0)