Skip to content

Jakkwj/simpo-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

安装

python -m pip install -i https://mirrors.aliyun.com/pypi/simple/ install sphinx sphinx-autobuild sphinx_rtd_theme

Documentation:

https://sludge.readthedocs.io/en/latest

本地运行

# 打开本地服务器





sphinx-autobuild source build/html

sphinx-autobuild source/ build/html

gif 压缩

错误

  • read the docs 编译时错误
    Theme error:
    no theme named 'sphinx_material' found (missing theme.conf?)
  • 参考:ReadTheDocs 搭建第一本电子书
  • 原因是 ReadTheDocs 的 python 环境没有对应的第三方库文件,需要在项目根目录执行如下命令生成 requirements.txt,这样 ReadTheDocs 会自动安装对应的插件依赖。
  • 不要运行命令:python -m pip freeze > requirements.txt,会依赖很多不必要的库
  • 然后手动写写入sphinx-materialrequirements.txt
  • 注意.readthedocs.yaml放在最上层目录
  • requirements路径:sludge_doc/source/requirements.txt

git 错误

注意

参考