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
Please refer to [GitHub Pages official guide](https://pages.github.com/) for more details.
@@ -94,37 +94,37 @@ Please refer to [GitHub Pages official guide](https://pages.github.com/) for mor
94
94
95
95
1. Set the correct [base](../reference/config.md#base) config.
96
96
97
-
If you are deploying to `https://<USERNAME>.gitlab.io/`, you can omit `base` as it defaults to `"/"`.
97
+
If you are deploying to `https://<USERNAME>.gitlab.io/`, you can omit `base` as it defaults to `"/"`.
98
98
99
-
If you are deploying to `https://<USERNAME>.gitlab.io/<REPO>/`, for example your repository is at `https://gitlab.com/<USERNAME>/<REPO>`, then set `base` to `"/<REPO>/"`.
99
+
If you are deploying to `https://<USERNAME>.gitlab.io/<REPO>/`, for example your repository is at `https://gitlab.com/<USERNAME>/<REPO>`, then set `base` to `"/<REPO>/"`.
100
100
101
101
2. Create `.gitlab-ci.yml` to set up [GitLab CI](https://about.gitlab.com/stages-devops-lifecycle/continuous-integration/) workflow.
102
102
103
-
:::details Click to expand sample config
104
-
```yaml
105
-
# choose a docker image to use
106
-
image: node:14-buster
107
-
108
-
pages:
109
-
# trigger deployment on every push to main branch
110
-
only:
111
-
- main
112
-
113
-
# cache node_modules
114
-
cache:
115
-
paths:
116
-
- node_modules/
117
-
118
-
# install dependencies and run build script
119
-
script:
120
-
- yarn --frozen-lockfile
121
-
- yarn docs:build --dest public
122
-
123
-
artifacts:
124
-
paths:
125
-
- public
126
-
```
127
-
:::
103
+
:::details Click to expand sample config
104
+
```yaml
105
+
# choose a docker image to use
106
+
image: node:14-buster
107
+
108
+
pages:
109
+
# trigger deployment on every push to main branch
110
+
only:
111
+
- main
112
+
113
+
# cache node_modules
114
+
cache:
115
+
paths:
116
+
- node_modules/
117
+
118
+
# install dependencies and run build script
119
+
script:
120
+
- yarn --frozen-lockfile
121
+
- yarn docs:build --dest public
122
+
123
+
artifacts:
124
+
paths:
125
+
- public
126
+
```
127
+
:::
128
128
129
129
:::tip
130
130
Please refer to [GitLab Pages official guide](https://docs.gitlab.com/ce/user/project/pages/#getting-started) for more details.
@@ -136,24 +136,26 @@ Please refer to [GitLab Pages official guide](https://docs.gitlab.com/ce/user/pr
136
136
137
137
2. Create `firebase.json` and `.firebaserc` at the root of your project with the following content:
138
138
139
-
`firebase.json`:
140
-
```json
141
-
{
142
-
"hosting": {
143
-
"public": "./docs/.vuepress/dist",
144
-
"ignore": []
145
-
}
146
-
}
147
-
```
148
-
149
-
`.firebaserc`:
150
-
```json
151
-
{
152
-
"projects": {
153
-
"default": "<YOUR_FIREBASE_ID>"
154
-
}
155
-
}
156
-
```
139
+
`firebase.json`:
140
+
141
+
```json
142
+
{
143
+
"hosting": {
144
+
"public": "./docs/.vuepress/dist",
145
+
"ignore": []
146
+
}
147
+
}
148
+
```
149
+
150
+
`.firebaserc`:
151
+
152
+
```json
153
+
{
154
+
"projects": {
155
+
"default": "<YOUR_FIREBASE_ID>"
156
+
}
157
+
}
158
+
```
157
159
158
160
3. After running `yarn docs:build`, deploy using the command `firebase deploy`.
159
161
@@ -169,18 +171,19 @@ Please refer to [Firebase CLI official guide](https://firebase.google.com/docs/c
169
171
170
172
3. Run `heroku login` and fill in your Heroku credentials:
171
173
172
-
```bash
173
-
heroku login
174
-
```
174
+
```bash
175
+
heroku login
176
+
```
175
177
176
178
4. Create a file called `static.json` in the root of your project with the below content:
177
179
178
-
`static.json`:
179
-
```json
180
-
{
181
-
"root": "./docs/.vuepress/dist"
182
-
}
183
-
```
180
+
`static.json`:
181
+
182
+
```json
183
+
{
184
+
"root": "./docs/.vuepress/dist"
185
+
}
186
+
```
184
187
185
188
This is the configuration of your site; read more at [heroku-buildpack-static](https://github.com/heroku/heroku-buildpack-static).
0 commit comments