Readthedocs + Gitee 搭建文档

news/2024/7/10 1:19:14 标签: html, vue, git, java, react
htmledit_views">

一、文档撰写前提

环境部署:

# git clone https://gitee.com/zhyantao/readthedocs.git
# pip install sphinx recommonmark sphinx-autobuild sphinx_rtd_theme -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com

二、撰写博文并发表

  1. 把你要发表的博文放在 demo-readthedocs/source/docs 文件夹中
  2. CMD中输入 make html 回车,打开 build/html/index.html 预览效果
  3. 提交代码(博文)到 Gitee 仓库 [git简易指南]
  4. 在 Read the Docs中导入 Gitee 项目
  5. 导入成功后,点击 View the documentation 查看最终效果 [示例]

Warning

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


http://www.niftyadmin.cn/n/1457696.html

相关文章

sudo: cd:找不到命令

https://blog.csdn.net/a1010256340/article/details/79728526 cd不是一个应用程序而是Linux内建的命令,而sudo仅仅只对应用程序起作用。 sudo foo只意味着以root权限运行foo程序 使用sudo -i命令提升用户权限> sudo -i 使用sudo -s命令打开特殊shell> sud…

Readthedocs+Github搭建文档

一、文档撰写前提 环境部署: git clone https://gitee.com/zhyantao/readthedocs.git pip install sphinx recommonmark sphinx-autobuild sphinx_rtd_theme -i http://mirrors.aliyun.com/pypi/simple/ --trusted-hostmirrors.aliyun.com 二、撰写博文并发表 把你要发表的…

python画图双纵轴多张图折线柱状图

import pandas as pd import matplotlib.pyplot as plt import matplotlib.ticker as ticker fig, ax1 plt.subplots(2,3,figsize(50,30)) # 使用subplots()创建窗口 2行3列 ax1[0][0].plot(x_,df[last], -, cgreen,labeltick_real, linewidth 1) #同上 plt.legend(locbest…

CentOS 同时忘记用户名和密码

开机时,狂按Esc光标选中之前开机常用的那个系统,按下e进入编辑模式按↑和↓在该页面找到quiet,在它后面加上single按Ctrl x进入到单用户模式再次进入后,系统会提示你输入密码,这时,按照要求输入两次密码就…

922. 按奇偶排序数组 II(python)

给定一个非负整数数组 A, A 中一半整数是奇数,一半整数是偶数。 对数组进行排序,以便当 A[i] 为奇数时,i 也是奇数;当 A[i] 为偶数时, i 也是偶数。 你可以返回任何满足上述条件的数组作为答案。 示例&am…

Linux虚拟机无法通过宿主机上网

解决方法 1、Windows: 确保相关服务已经启动 2、Linux: 确保相关服务已经启动 1) 确认Linux的IP地址和Windows在同一个网段: 若Windows给虚拟机分配的IP地址如下: (VMnet0对应虚拟机Bridge模式、VMnet1对应虚拟机Host Only模式、VMnet8对应虚…

缺少Packages?不妨在这里找

一个很全的网站(Linux全平台,rpm,dpkg等) Packages Search

anaconda 在python2.7的基础上安装python3.7

python版本更迭是大势所趋,但是每次一想到之前用python2写的代码在python3上可能会出现的错我就绝了更新版本的意思。不过看来相应的问题大家都存在,anaconda支持共存。所以具体步骤如下: 1、打开anaconda prompt: 输入: conda …