chore: update docs
This commit is contained in:
parent
3e94cb6d76
commit
5cc3e6c469
7 changed files with 54 additions and 2 deletions
|
|
@ -45,6 +45,7 @@ Create an `index.html`.
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
2
dev.html
2
dev.html
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>docsify</title>
|
<title>docsify</title>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
<link rel="stylesheet" href="/themes/vue.css" title="vue">
|
<link rel="stylesheet" href="/themes/vue.css" title="vue">
|
||||||
<link rel="stylesheet" href="/themes/dark.css" title="dark" disabled>
|
<link rel="stylesheet" href="/themes/dark.css" title="dark" disabled>
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,30 @@ Es wird empfohlen, deine Dateien im `./docs` Unterordner im `master` branch dein
|
||||||
|
|
||||||
!> Du kannst die Dateien auch im Hauptverzeichnis speichern und dann `master branch` in den Einstellungen auswählen.
|
!> Du kannst die Dateien auch im Hauptverzeichnis speichern und dann `master branch` in den Einstellungen auswählen.
|
||||||
|
|
||||||
|
|
||||||
|
## GitLab Pages
|
||||||
|
|
||||||
|
If you are deploying your master branch, include `.gitlab-ci.yml` with the following script:
|
||||||
|
|
||||||
|
?> The `.public` workaround is so `cp` doesn't also copy `public/` to itself in an infinite loop.
|
||||||
|
|
||||||
|
``` YAML
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- mkdir .public
|
||||||
|
- cp -r * .public
|
||||||
|
- mv .public public
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
```
|
||||||
|
|
||||||
|
!> You can replace script with `- cp -r docs/. public`, if `./docs` is your Docsify subfolder.
|
||||||
|
|
||||||
|
|
||||||
## VPS
|
## VPS
|
||||||
|
|
||||||
Verwende folgende nginx config.
|
Verwende folgende nginx config.
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,8 @@ Wenn du `npm` nicht verwenden möchtest, oder Probleme bei der Installation des
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">dict.
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
<meta charset="UTF-8">
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
|
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ If you don't like `npm` or have trouble installing the tool, you can manually cr
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
|
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,30 @@ GitHub Pages 支持从三个地方读取文件
|
||||||
|
|
||||||
!> 可以将文档放在根目录下,然后选择 **master 分支** 作为文档目录。
|
!> 可以将文档放在根目录下,然后选择 **master 分支** 作为文档目录。
|
||||||
|
|
||||||
|
|
||||||
|
## GitLab Pages
|
||||||
|
|
||||||
|
If you are deploying your master branch, include `.gitlab-ci.yml` with the following script:
|
||||||
|
|
||||||
|
?> The `.public` workaround is so `cp` doesn't also copy `public/` to itself in an infinite loop.
|
||||||
|
|
||||||
|
``` YAML
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- mkdir .public
|
||||||
|
- cp -r * .public
|
||||||
|
- mv .public public
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
```
|
||||||
|
|
||||||
|
!> You can replace script with `- cp -r docs/. public`, if `./docs` is your Docsify subfolder.
|
||||||
|
|
||||||
|
|
||||||
## VPS
|
## VPS
|
||||||
|
|
||||||
和部署所有静态网站一样,只需将服务器的访问根目录设定为 `index.html` 文件。
|
和部署所有静态网站一样,只需将服务器的访问根目录设定为 `index.html` 文件。
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ docsify serve docs
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
|
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue