Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
feat(mkdocs): 使用MkDocs替换Sphinx进行文档生成
Browse files Browse the repository at this point in the history
  • Loading branch information
zjZSTU committed Dec 22, 2019
1 parent 5f78d03 commit 43b4ecd
Show file tree
Hide file tree
Showing 139 changed files with 150 additions and 724 deletions.
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# [Docker][Jenkins][GitLab][Nginx]腾讯云服务器部署

实现方式如下:

* 在本地安装`Jenkins/GitLab`
* 上传修改到`GitLab`
* 通过`WebHook`触发`Jenkins`进行构建
* 构建完成后上传静态文件到云服务器
* 在云服务器上安装`Git/Nginx`
* `Git`仓库接收到新的提交后,分离工作目录和裸仓库(`.git`)
* `Nginx`托管工作目录地址,对外发布博客网站

相关文档链接:

* `Git`相关
* [工作目录和裸仓库分离](https://zj-git-guide.readthedocs.io/zh_CN/latest/advanced/%E5%B7%A5%E4%BD%9C%E7%9B%AE%E5%BD%95%E5%92%8C%E8%A3%B8%E4%BB%93%E5%BA%93%E5%88%86%E7%A6%BB/)
* [[Docker]GitLab使用](https://zj-git-guide.readthedocs.io/zh_CN/latest/platform/[Docker]GitLab%E4%BD%BF%E7%94%A8/)
* `Jenkins`相关
* [在Docker中运行Jenkins](https://zhujian.tech/posts/202ee452.html)
* [[Jenkins][Gitlab]webhook连接](https://www.zhujian.tech/posts/6ff96ec3.html)
* [[Jenkins]Pipeline工程配置NodeJS环境](https://www.zhujian.tech/posts/d521b4ea.html)
* [[Jenkins][GitLab][Hexo]新建Pipeline工程实现CI功能](https://zhujian.tech/posts/f80ec296.html)
* `Nginx`相关
* [托管网站](https://zj-network-guide.readthedocs.io/zh_CN/latest/nginx/%E6%89%98%E7%AE%A1%E7%BD%91%E7%AB%99/)
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

## 云服务器注册

使用的是[腾讯云服务器](https://cloud.tencent.com/product/cvm),参考:[云服务器](https://zj-linux-guide.readthedocs.io/zh_CN/latest/cvm.html)
使用的是[腾讯云服务器](https://cloud.tencent.com/product/cvm),参考:[云服务器](https://zj-linux-guide.readthedocs.io/zh_CN/latest/cvm/%E8%85%BE%E8%AE%AF%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8/)

## `nginx`配置

安装`nginx`、测试、托管静态文件,设置`404`页面以及配置`HTTPS`,参考:[nginx](https://zj-network-guide.readthedocs.io/zh_CN/latest/nginx.html)
安装`nginx`、测试、托管静态文件,设置`404`页面以及配置`HTTPS`,参考:[nginx](https://zj-network-guide.readthedocs.io/zh_CN/latest/nginx/%E5%AE%89%E8%A3%85/)

## `git`裸仓库设置

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
15 changes: 15 additions & 0 deletions docs/ci&cd/引言.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

# 引言

`ci&cd`模块中,专注于博客网站的集成和部署功能,之前在`hexo`模块中介绍了[github pages](../hexo/get-started/远程服务器.md)服务,所以在这里先介绍如何进一步绑定域名以及部署多个代码仓库的`pages`服务;接下来介绍如何利用`travis-ci`进行持续集成服务,并且将网站部署到腾讯云服务器上;最后介绍如何利用`jenkins+nginx+gitlab+docker`实现持续集成和持续部署服务

1. `github pages` + 域名操作
- 域名绑定
- 部署多个远程托管
2. `travis-ci` + 腾讯云
- [Travis CI]持续集成
- [腾讯云]部署云服务器
- [腾讯云][Travis CI]持续部署到云服务器
3. `Jenkins + GitLab + Docker + Nginx + 腾讯云`
- 本地部署`Jenkins + GitLab`
- 服务器部署`Nginx`
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# 引言

完整的博客网站搭建指南,包含如下设置:

* 网站搭建,当前使用`Hexo v4.0.0` - [Hexo](./hexo/index.md)
* 主题配置,当前使用`NexT v7.5.0` - [NexT](./next/index.md)
* [CI&CD](./ci&cd/引言.md),当前通过`Jenkins + GitLab + Docker + Nginx + 腾讯云`实现

相关文档

* [从CSDN到Hexo](https://www.zhujian.tech/posts/359e7c3c.html)
35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[hexo-algolia](https://www.npmjs.com/package/hexo-algolia)

**推荐使用`local_search`服务,参考[Local Search](https://theme-next.org/docs/third-party-services/search-services)**
**推荐使用`local_search`服务,参考[Local Search](../base/本地搜索服务.md)**

[Algolia](https://www.algolia.com/)是一个支持网站搜索功能的在线服务。`NexT`主题也集成了相应的功能,实现步骤如下:

Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 0 additions & 15 deletions docs/source/ci&cd.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/source/ci&cd/引言.md

This file was deleted.

72 changes: 0 additions & 72 deletions docs/source/conf.py

This file was deleted.

13 changes: 0 additions & 13 deletions docs/source/hexo.rst

This file was deleted.

18 changes: 0 additions & 18 deletions docs/source/hexo/advanced.rst

This file was deleted.

26 changes: 0 additions & 26 deletions docs/source/hexo/advanced/Hexo命令RST.rst

This file was deleted.

0 comments on commit 43b4ecd

Please sign in to comment.