丙午🐎年

acc8226 的博客

发布线上电子书

目前 npm gitbook 项目已不再更新,请使用  GitBook.com / GitHub integration

As the efforts of the GitBook team are focused on the GitBook.com platform, the CLI is no longer under active development.
All content supported by the CLI are mostly supported by our GitBook.com / GitHub integration.
Content hosted on the legacy.gitbook.com will continue working until further notice. For differences with the new vesion, check out our documentation.

导出为 word 文件

前提条件:下载 Releases·jgm/pandoc https://github.com/jgm/pandoc/releases。或者使用 typora。

不带模板的导出 word

阅读全文 »

Gitlab 搭建

CentOS 平台

硬件要求

Omnibus GitLab 软件包需要大约 2.5 GB 的存储空间用于安装。

4 核 是推荐的最小核数,支持多达 500 名用户

4GB RAM 是必需的最小内存,支持多达 500 名用户

PostgreSQL 是唯一支持的数据库,捆绑在 Omnibus GitLab 软件包中。您也可以使用外部 PostgreSQL 数据库。

通过下载包安装

1
2
3
4
5
rpm -i gitlab-ce-13.11.1-ce.0.el7.x86_64.rpm
vim /etc/gitlab/gitlab.rb
# 重新生成配置
gitlab-ctl reconfigure
gitlab-ctl restart
阅读全文 »

功能使用

github 获取 token

Personal access tokens
https://github.com/settings/tokens

New Personal Access Token
https://github.com/settings/tokens/new

记住:生成的 token 只会出现一次,可以直接复制使用。

github 的一些快捷键和在线编辑器

按键 说明
s 跳转到搜索框
t 用于仓库内的文件搜索
l 在仓库文件显示页,键入l后在弹处窗口输入行号,表示跳转到该文件的指定行
b 查看文件改动进度
ctrl+k 快速定位查看内容模块
. 进入在线编辑器模式
阅读全文 »

docsify 介绍

https://docsify.js.org/#/zh-cn/quickstart

基本组件的更新包

docsify.min.js 压缩版
https://cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js
最新所在文件夹 https://cdn.jsdelivr.net/npm/docsify/lib/

vue.css 完整版
https://cdn.jsdelivr.net/npm/docsify/themes/vue.css
最新所在文件夹 https://cdn.jsdelivr.net/npm/docsify/themes/

vue.css 压缩版
https://cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css
最新所在文件夹 https://cdn.jsdelivr.net/npm/docsify/lib/themes/

阅读全文 »

判断

判断语句

| 语句 | 描述 |
| if 语句 | 一个 if 语句 由一个布尔表达式后跟一个或多个语句组成。 |
| if…else 语句 | 一个 if 语句 后可跟一个可选的 else 语句,else 语句在布尔表达式为假时执行。 |
| 嵌套 if 语句 | 您可以在一个 if 或 else if 语句内使用另一个 if 或 else if 语句。 |
| switch 语句 | 一个 switch 语句允许测试一个变量等于多个值时的情况。 |
| 嵌套 switch 语句 | 您可以在一个 switch 语句内使用另一个 switch 语句。 |

? : 运算符

我们已经在前面的章节中讲解了 条件运算符 ? :,可以用来替代 if…else 语句。它的一般形式如下:

阅读全文 »
0%