提交 d1322021 编写于 作者: S sibo2rr

modify doc

上级 3f671a98
...@@ -4,8 +4,5 @@ ...@@ -4,8 +4,5 @@
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
product.md function_intro.md
logo.md more_demo/index
cartoon.md
more_demo.md
vehicle.md
介绍
================================
.. toctree::
:maxdepth: 2
cartoon.md
logo.md
more_demo.md
product.md
vehicle.md
...@@ -26,12 +26,13 @@ ...@@ -26,12 +26,13 @@
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
``` ```
5.2 添加markdown支持 5.2 添加markdown支持和markdown表格支持
首先需要安装recommonmark 首先需要安装recommonmark和sphinx_markdown_tables
```shell ```shell
pip install recommonmark pip install recommonmark
pip install sphinx_markdown_tables
``` ```
在source/conf.py中更改或添加如下代码 在source/conf.py中更改或添加如下代码
...@@ -42,6 +43,10 @@ ...@@ -42,6 +43,10 @@
'.md': CommonMarkParser, '.md': CommonMarkParser,
} }
source_suffix = ['.rst', '.md'] source_suffix = ['.rst', '.md']
extensions = [
'recommonmark',
'sphinx_markdown_tables'
]
``` ```
以上五步具体效果可以参考https://www.jianshu.com/p/d1d59d0cd58c 以上五步具体效果可以参考https://www.jianshu.com/p/d1d59d0cd58c
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册