From 3cd3473bf7a3b41484baa86d9092248d78e7af39 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期五, 21 四月 2023 17:17:37 +0800
Subject: [PATCH] docs

---
 docs_m2met2/conf.py |   47 +++++++++++++++++++++++++++++------------------
 1 files changed, 29 insertions(+), 18 deletions(-)

diff --git a/docs_m2met2/conf.py b/docs_m2met2/conf.py
index 47f98e5..19b93f5 100644
--- a/docs_m2met2/conf.py
+++ b/docs_m2met2/conf.py
@@ -1,3 +1,4 @@
+import guzzle_sphinx_theme
 # Configuration file for the Sphinx documentation builder.
 #
 # For the full list of built-in configuration values, see the documentation:
@@ -7,33 +8,43 @@
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
 
 project = 'm2met2'
-copyright = '2023, Speech Lab, Alibaba Group; Audio, Speech and Language Processing Group, Northwestern Polytechnical University'
+copyright = '2023, Speech Lab, Alibaba Group; ASLP Group, Northwestern Polytechnical University'
 author = 'Speech Lab, Alibaba Group; Audio, Speech and Language Processing Group, Northwestern Polytechnical University'
 
 # -- General configuration ---------------------------------------------------
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
-
 extensions = [
-    'nbsphinx',
-    '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',
+    'myst_parser',
+    'guzzle_sphinx_theme'
 ]
-source_suffix = [".rst", ".md"]
+
+myst_enable_extensions = [
+    "colon_fence",
+    "deflist",
+    "dollarmath",
+    "html_image",
+]
+
+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 -------------------------------------------------
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
-
-html_theme = 'sphinx_rtd_theme'
+html_sidebars = {
+    '**': ['logo-text.html',
+            'searchbox.html',
+            'globaltoc.html']
+}
+html_theme_path = guzzle_sphinx_theme.html_theme_path()
+html_theme = 'guzzle_sphinx_theme'
 html_static_path = ['_static']
+# html_sidebars = {'**': ['fulltoc.html', 'searchbox.html', 'layout.html']}
+html_theme_options = {
+    "globaltoc_collapse": False,
+    "globaltoc_includehidden": True,
+}
+

--
Gitblit v1.9.1