diff --git a/docs/de-de/deploy.md b/docs/de-de/deploy.md index 8d92e79c..7519fc1a 100644 --- a/docs/de-de/deploy.md +++ b/docs/de-de/deploy.md @@ -6,9 +6,9 @@ Du kannst folgende drei Orte verwenden, um die Dokumentation für dein Github repository zu verwalten: -* `docs/` Ordner -* master branch -* gh-pages branch +- `docs/` Ordner +- master branch +- gh-pages branch Es wird empfohlen, deine Dateien im `./docs` Unterordner im `master` branch deines repository zu speichern. Wechsle dann zu den Einstellungen deines repository und wähle `master branch /docs folder` als deine Github Pages Quelle. @@ -16,14 +16,13 @@ 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. - ## 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 +```YAML pages: stage: deploy script: @@ -39,7 +38,6 @@ pages: !> You can replace script with `- cp -r docs/. public`, if `./docs` is your Docsify subfolder. - ## VPS Verwende folgende nginx config. @@ -55,3 +53,9 @@ server { } } ``` + +## Netlify + +1. Login to your [Netlify](https://www.netlify.com/) account. +2. In the [dashboard](https://app.netlify.com/) page, click New site from Git. +3. Choose a repository where you store your docs, leave the Build Command area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`. diff --git a/docs/deploy.md b/docs/deploy.md index 7a4e03e0..3554e474 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -6,9 +6,9 @@ Similar to [GitBook](https://www.gitbook.com), you can deploy files to GitHub Pa There're three places to populate your docs for your Github repository: -* `docs/` folder -* master branch -* gh-pages branch +- `docs/` folder +- master branch +- gh-pages branch It is recommended that you save your files to the `./docs` subfolder of the `master` branch of your repository. Then select `master branch /docs folder` as your Github Pages source in your repositories' settings page. @@ -23,7 +23,7 @@ If you are deploying your master branch, include `.gitlab-ci.yml` with the follo ?> The `.public` workaround is so `cp` doesn't also copy `public/` to itself in an infinite loop. -``` YAML +```YAML pages: stage: deploy script: @@ -41,20 +41,17 @@ pages: ## Firebase Hosting -!> You'll need to install the Firebase CLI using `npm i -g firebase-tools` after signing into the [Firebase Console](https://console.firebase.google.com) using a Google Account. +!> You'll need to install the Firebase CLI using `npm i -g firebase-tools` after signing into the [Firebase Console](https://console.firebase.google.com) using a Google Account. Using Terminal determine and navigate to the directory for your Firebase Project - this could be `~/Projects/Docs` etc. From there, run `firebase init`, choosing `Hosting` from the menu (use **space** to select, **arrow keys** to change options and **enter** to confirm). Follow the setup instructions. You should have your `firebase.json` file looking similar to this (I changed the deployment directory from `public` to `site`): + ```json { "hosting": { "public": "site", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ] + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] } } ``` @@ -76,3 +73,9 @@ server { } } ``` + +## Netlify + +1. Login to your [Netlify](https://www.netlify.com/) account. +2. In the [dashboard](https://app.netlify.com/) page, click New site from Git. +3. Choose a repository where you store your docs, leave the Build Command area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`. diff --git a/docs/zh-cn/deploy.md b/docs/zh-cn/deploy.md index ab55a613..249e66fd 100644 --- a/docs/zh-cn/deploy.md +++ b/docs/zh-cn/deploy.md @@ -5,6 +5,7 @@ ## GitHub Pages GitHub Pages 支持从三个地方读取文件 + - `docs/` 目录 - master 分支 - gh-pages 分支 @@ -15,14 +16,13 @@ GitHub Pages 支持从三个地方读取文件 !> 可以将文档放在根目录下,然后选择 **master 分支** 作为文档目录。 - ## GitLab Pages 如果你正在部署你的主分支, 在 `.gitlab-ci.yml` 中包含以下脚本: ?> `.public` 的解决方法是这样的,`cp` 不会无限循环的将 `public/` 复制到自身。 -``` YAML +```YAML pages: stage: deploy script: @@ -38,7 +38,6 @@ pages: !> 你可以用 `- cp -r docs/. public` 替换脚本, 如果 `./docs` 是你的 docsify 子文件夹。 - ## VPS 和部署所有静态网站一样,只需将服务器的访问根目录设定为 `index.html` 文件。 @@ -56,3 +55,9 @@ server { } } ``` + +## Netlify + +1. Login to your [Netlify](https://www.netlify.com/) account. +2. In the [dashboard](https://app.netlify.com/) page, click New site from Git. +3. Choose a repository where you store your docs, leave the Build Command area blank, fill in the Publish directory area with the directory of your `index.html`, for example it should be docs if you populated it at `docs/index.html`.