From 480b50a329168aa1a1c2c59032ad2faae50e07c6 Mon Sep 17 00:00:00 2001
From: yhliang <429259365@qq.com>
Date: 星期四, 13 四月 2023 10:37:53 +0800
Subject: [PATCH] support math

---
 docs_m2met2/conf.py |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/docs_m2met2/conf.py b/docs_m2met2/conf.py
index 47f98e5..1acd230 100644
--- a/docs_m2met2/conf.py
+++ b/docs_m2met2/conf.py
@@ -12,24 +12,22 @@
 
 # -- General configuration ---------------------------------------------------
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
-
 extensions = [
-    'nbsphinx',
+    'myst_parser',
     'sphinx_rtd_theme',
-    "sphinx.ext.autodoc",
-    'sphinx.ext.napoleon',
-    'sphinx.ext.viewcode',
-    "sphinx.ext.mathjax",
-    "sphinx.ext.todo",
-    "sphinx_markdown_tables",
-    "sphinx.ext.githubpages",
-    'recommonmark',
 ]
-source_suffix = [".rst", ".md"]
+
+myst_enable_extensions = [
+    "colon_fence",
+    "deflist",
+    "dollarmath",
+]
+
+myst_heading_anchors = 2
+myst_highlight_code_blocks=True
+myst_update_mathjax=False
 templates_path = ['_templates']
-# exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
-exclude_patterns = []
-pygments_style = "sphinx"
+exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
 
 
 # -- Options for HTML output -------------------------------------------------

--
Gitblit v1.9.1