read the docs
2024-09-18 22:36:33
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
最新文章
- Python学习笔记10
- vb6 枚举对象属性
- jQuery Easy UI 开发笔记
- 【Java】List集合按数量分组
- 简单模仿javascript confirm方法的例子
- Hadoop分布式安装
- javascript基础DOM操作
- java调用Command命令
- QLineEdit 仿QQ签名框
- 201521123052 《Java程序设计》 第11周学习总结
- 语音传输之RTP/RTCP/UDP及软件实现关键点
- 访问器属性:setter()函数和getter()函数
- oracle服务的一些问题,先发2个,以后慢慢添加~~
- AI - TensorFlow - 示例03:基本回归
- mac电脑安装wxPython2.8.12.1不成功怎么办 , Could not find a version that satisfies the requirement 2.8.12.1
- robotframework之去除空格、去掉前面的0、增加空格换行符的方法,两个字符之间的拼接
- python爬虫起步...开发环境搭建,最简单的方式
- 简单Nginx下防跨站、跨目录安全设置,支持PHP 5.3.3以上版本
- 【CH5105】cookies 贪心+DP
- svn的使用教程
热门文章
- 使用 DirectSound 播放 WAV 文件
- Requset02
- 深度学习-LSTM
- 【转载】python解决文本乱码问题及文本二进制读取后的处理
- 解决报错Could not satisfy explicit device specification '' because the node was colocated with a group of nodes that required incompatible device '/device:GPU:0'
- java运算符相关学习
- windwos11没有Hyper-V的解决方法
- vue element 日期范围选择器限制:只能选今天之前的时间 || 只能选今天之后的时间 || 选取今天往后三天内
- JavaSE——遍历字符串与统计字符个数
- ubuntu安装cuda、cudnn和nvidia-docker