Sphinx使用md文档构建失败

​使用 sphinx 构建文档,有时候已经放置好了文档却无法读入生成。

解决方案

在环境中下载安装好相应的库:

python 复制代码
pip install sphinx_markdown_tables
python 复制代码
pip install m2r

打开生成的 source目录下的 conf.py,文件,在文件中加入:

python 复制代码
extensions = ['sphinx_markdown_tables', 'm2r']

source_suffix = [".rst", ".md"]

之后使用指令 make cleanmake html 生成文档

相关推荐
本地化文档5 天前
gazebosim-docs-l10n
机器人·github·gitcode·sphinx
本地化文档6 天前
skbuild-docs-l10n
python·github·gitcode·sphinx
本地化文档1 个月前
xlwings-docs-l10n
python·github·excel·gitcode·sphinx
2601_961875242 个月前
法考资料电子版|pdf|资料已整理
elasticsearch·搜索引擎·pdf·全文检索·solr·lucene·sphinx
2601_961845422 个月前
考研公共课资料推荐|英语数学政治|电子版|资料已整理
搜索引擎·中文分词·solr·lucene·sphinx·高考
2601_961845422 个月前
高考真题下载|2025高考全科真题网盘分类整理
搜索引擎·中文分词·solr·lucene·sphinx·高考
本地化文档2 个月前
black-docs-l10n
python·github·gitcode·sphinx
本地化文档2 个月前
psycopg3-docs-l10n
数据库·python·postgresql·github·gitcode·sphinx
本地化文档2 个月前
sphinxcontrib-rust-docs-l10n
python·rust·github·gitcode·sphinx
CoderIsArt5 个月前
Sphinx
搜索引擎·全文检索·sphinx