diff --git a/docs/zh_CN/introduction/index.rst b/docs/zh_CN/introduction/index.rst index 598f958c5136a2e5af271f4b84f51401e0d3d0f2..c33c6897af74aed3423519a94c4f0a184ac3764d 100644 --- a/docs/zh_CN/introduction/index.rst +++ b/docs/zh_CN/introduction/index.rst @@ -4,8 +4,5 @@ .. toctree:: :maxdepth: 2 - product.md - logo.md - cartoon.md - more_demo.md - vehicle.md + function_intro.md + more_demo/index diff --git a/docs/zh_CN/introduction/more_demo/index.rst b/docs/zh_CN/introduction/more_demo/index.rst new file mode 100644 index 0000000000000000000000000000000000000000..4b5764b5c330504e62856de168854e207f6cfd0b --- /dev/null +++ b/docs/zh_CN/introduction/more_demo/index.rst @@ -0,0 +1,12 @@ +介绍 +================================ + +.. toctree:: + :maxdepth: 2 + + cartoon.md + logo.md + more_demo.md + product.md + vehicle.md + diff --git "a/readthedoc\346\214\207\345\215\227.md" "b/readthedoc\346\214\207\345\215\227.md" index 1b201d7201b8b9a71a508d349198adc76fdd03e0..a25626b26172d594dfb393c9e67e39a3d51d1e5e 100644 --- "a/readthedoc\346\214\207\345\215\227.md" +++ "b/readthedoc\346\214\207\345\215\227.md" @@ -26,12 +26,13 @@ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] ``` - 5.2 添加markdown支持 + 5.2 添加markdown支持和markdown表格支持 - 首先需要安装recommonmark + 首先需要安装recommonmark和sphinx_markdown_tables ```shell pip install recommonmark + pip install sphinx_markdown_tables ``` 在source/conf.py中更改或添加如下代码 @@ -42,6 +43,10 @@ '.md': CommonMarkParser, } source_suffix = ['.rst', '.md'] + extensions = [ + 'recommonmark', + 'sphinx_markdown_tables' + ] ``` 以上五步具体效果可以参考https://www.jianshu.com/p/d1d59d0cd58c