1 Star 5 Fork 6

zhyantao / readthedocs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Gitee 和 Read the Docs 搭建博客文档

Documentation Status

效果预览

使用说明

一、文档撰写前提

Note

Sphinx组件安装:

pip install sphinx recommonmark sphinx-autobuild sphinx_rtd_theme -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com

二、源代码的使用方法

  1. 在 Gitee 中创建一个仓库,名字随意(这里仓库名字以用 notebook 举例)
./images/001.png
  1. 克隆 notebook 仓库到本地随意一个位置
git clone https://gitee.com/zhyantao/notebook.git
  1. 下载 readthedocs 仓库的 源代码 ,解压后将文件夹中的内容复制到 notebook 文件夹下
./images/003.png
  1. 将 notebook 文件夹下的文件提交到远程仓库
git add . && git commit -m "notebook" && git push origin master
./images/004.png
  1. 登录 Read the Docs 导入刚刚创建的代码仓库 notebook (这里选择手动导入)
./images/005-1.png ./images/005-2.png
  1. 选择 Build Version ,构建完成后即可阅读文档了。
./images/006.png
  1. 到现在,基本的框架搭建完了。后面就可以把自己想要写的内容填充到博客中了。

三、撰写博文并发表

  1. 把需要发表的文档放在 notebook/source/docs 文件夹中(写作格式可以是 Markdown 或者 reStructuredText)
  2. 打开 CMD 切换到 notebook 目录下,输入 make html
  3. 打开 notebook/build/index.html 预览效果,确认无误后提交代码到 Gitee 仓库
git add . && git commit -m "notebook" && git push origin master
  1. 重新打开 Read the Docs 文档的网址,查看新发表的博客(有延迟,可能需要等待)。

Warning

除了 notebook/source/docs 下的文件和 source/index.rst 可以修改外,其他位置的文件不要修改,否则可能会引起错误。另外,务必在 source/index.rst 文件中添加你的博文的路径

空文件

简介

Gitee + ReadTheDocs实现文档托管 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zhyantao/readthedocs.git
git@gitee.com:zhyantao/readthedocs.git
zhyantao
readthedocs
readthedocs
master

搜索帮助