1.

在 GitHub 新建一个repo

2.

git clone git@github.com:readthedocs/tutorial-template.git

3.

把刚刚 clone 的 repo 里的 docs 文件夹整个复制到自己新建的那个repo里

4.

新建 requirements.txt

里面写 myst-parser

5.

修改 docs/source/ 里的 conf.py

project=copyright=author=

extensions= 里加一个 'myst_parser' (支持markdown)

在最后面加上

# -- Options for PDF output
latex_engine = 'xelatex'
latex_use_xindy = False
latex_elements = {
'preamble': '\\usepackage[UTF8]{ctex}\n',
}

(支持输出中文pdf)

6.

修改 index.rst

提瓦特大陆通史
=================================== 提瓦特大陆纪传体通史,国别体通史,编年体通史。 .. note:: 还在写,欢迎共同编辑 .. Hidden TOCs .. toctree::
:maxdepth: 2
:caption: 纪传体
:hidden: biography/mondstadt
biography/liyue
biography/inazuma
biography/sumeru
biography/fontaine
biography/natlan
biography/snezhnaya
biography/khaenriah
biography/others .. toctree::
:maxdepth: 2
:caption: 国别体
:hidden: region/mondstadt
region/liyue
region/inazuma
region/sumeru
region/fontaine
region/natlan
region/snezhnaya
region/khaenriah
region/others .. toctree::
:maxdepth: 2
:caption: 编年体
:hidden: chronicle/ancient
chronicle/contemporary
chronicle/modern .. toctree::
:maxdepth: 2
:caption: 参考文献
:hidden: reference/weapons
reference/weapon-ascension-materials
reference/artifacts

新建与 index.rst 里的 toctree 对应的 xx.md 们

git add .
git commit -m 'first draft'
git push origin main

打开 read the docs:https://readthedocs.org/dashboard/

Import a Project

选自己新建的那个 repo

import 完后,在 Admin - Advanced Settings 中找到 Default branch,改成 main;找到 Requirements file,改成 requirements.txt

拖到最下面,点 Save

Overview 中 build


参考:

https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/index.rst

最新文章

  1. Python学习笔记10
  2. vb6 枚举对象属性
  3. jQuery Easy UI 开发笔记
  4. 【Java】List集合按数量分组
  5. 简单模仿javascript confirm方法的例子
  6. Hadoop分布式安装
  7. javascript基础DOM操作
  8. java调用Command命令
  9. QLineEdit 仿QQ签名框
  10. 201521123052 《Java程序设计》 第11周学习总结
  11. 语音传输之RTP/RTCP/UDP及软件实现关键点
  12. 访问器属性:setter()函数和getter()函数
  13. oracle服务的一些问题,先发2个,以后慢慢添加~~
  14. AI - TensorFlow - 示例03:基本回归
  15. mac电脑安装wxPython2.8.12.1不成功怎么办 , Could not find a version that satisfies the requirement 2.8.12.1
  16. robotframework之去除空格、去掉前面的0、增加空格换行符的方法,两个字符之间的拼接
  17. python爬虫起步...开发环境搭建,最简单的方式
  18. 简单Nginx下防跨站、跨目录安全设置,支持PHP 5.3.3以上版本
  19. 【CH5105】cookies 贪心+DP
  20. svn的使用教程

热门文章

  1. 使用 DirectSound 播放 WAV 文件
  2. Requset02
  3. 深度学习-LSTM
  4. 【转载】python解决文本乱码问题及文本二进制读取后的处理
  5. 解决报错Could not satisfy explicit device specification '' because the node was colocated with a group of nodes that required incompatible device '/device:GPU:0'
  6. java运算符相关学习
  7. windwos11没有Hyper-V的解决方法
  8. vue element 日期范围选择器限制:只能选今天之前的时间 || 只能选今天之后的时间 || 选取今天往后三天内
  9. JavaSE——遍历字符串与统计字符个数
  10. ubuntu安装cuda、cudnn和nvidia-docker