首页 > 其他 > 详细

为Github项目创建文档

时间:2016-05-17 17:27:01      阅读:120      评论:0      收藏:0      [点我收藏+]

有两种编写方式:

  • In reStructuredText
  • In Markdown

In reStructuredText 

工具:  pip install sphinx sphinx-autobuild  

克隆你的仓库到本地:  git clone https://github.com/yourusername/yourrepository.git 

在仓库根目录内创建文档:

mkdir docs  & cd docs

sphinx-quickstart //按照提示一路下去,会生成index.rst和conf.py,以及一些其他的目录和文件

编辑index.rst文件

  Contents:

  Indices and tables

  等

编译html文件  make html 

 

将本地仓库上传到github  git push //输入账号密码 


 

注册并登录Read the Docs

  设置 - Connected to Github   //关联Github账号

 

开始导入文档

  Import a Project  //会自动列出Github上的仓库名,没有的话也可以手动导入

  按照提示,就可以成功创建了

 

为Github项目创建文档

原文:http://www.cnblogs.com/roronoa-sqd/p/5502300.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!