You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/de-de/deploy.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,24 +6,23 @@
6
6
7
7
Du kannst folgende drei Orte verwenden, um die Dokumentation für dein Github repository zu verwalten:
8
8
9
-
*`docs/` Ordner
10
-
* master branch
11
-
* gh-pages branch
9
+
-`docs/` Ordner
10
+
- master branch
11
+
- gh-pages branch
12
12
13
13
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.
!> Du kannst die Dateien auch im Hauptverzeichnis speichern und dann `master branch` in den Einstellungen auswählen.
18
18
19
-
20
19
## GitLab Pages
21
20
22
21
If you are deploying your master branch, include `.gitlab-ci.yml` with the following script:
23
22
24
23
?> The `.public` workaround is so `cp` doesn't also copy `public/` to itself in an infinite loop.
25
24
26
-
```YAML
25
+
```YAML
27
26
pages:
28
27
stage: deploy
29
28
script:
@@ -39,7 +38,6 @@ pages:
39
38
40
39
!> You can replace script with `- cp -r docs/. public`, if `./docs` is your Docsify subfolder.
41
40
42
-
43
41
## VPS
44
42
45
43
Verwende folgende nginx config.
@@ -55,3 +53,9 @@ server {
55
53
}
56
54
}
57
55
```
56
+
57
+
## Netlify
58
+
59
+
1. Login to your [Netlify](https://www.netlify.com/) account.
60
+
2. In the [dashboard](https://app.netlify.com/) page, click New site from Git.
61
+
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`.
Copy file name to clipboardExpand all lines: docs/deploy.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ Similar to [GitBook](https://www.gitbook.com), you can deploy files to GitHub Pa
6
6
7
7
There're three places to populate your docs for your Github repository:
8
8
9
-
*`docs/` folder
10
-
* master branch
11
-
* gh-pages branch
9
+
-`docs/` folder
10
+
- master branch
11
+
- gh-pages branch
12
12
13
13
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.
14
14
@@ -23,7 +23,7 @@ If you are deploying your master branch, include `.gitlab-ci.yml` with the follo
23
23
24
24
?> The `.public` workaround is so `cp` doesn't also copy `public/` to itself in an infinite loop.
25
25
26
-
```YAML
26
+
```YAML
27
27
pages:
28
28
stage: deploy
29
29
script:
@@ -41,20 +41,17 @@ pages:
41
41
42
42
## Firebase Hosting
43
43
44
-
!> 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.
44
+
!> 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.
45
45
46
46
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.
47
47
48
48
You should have your `firebase.json` file looking similar to this (I changed the deployment directory from `public` to `site`):
1. Login to your [Netlify](https://www.netlify.com/) account.
80
+
2. In the [dashboard](https://app.netlify.com/) page, click New site from Git.
81
+
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`.
1. Login to your [Netlify](https://www.netlify.com/) account.
62
+
2. In the [dashboard](https://app.netlify.com/) page, click New site from Git.
63
+
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`.
0 commit comments