Skip to content

Commit d84490a

Browse files
tboergerjonasfranz
authored andcommitted
Replaced docker docs with netlify deployment (#4420)
1 parent c2ec38f commit d84490a

File tree

7 files changed

+28
-94
lines changed

7 files changed

+28
-94
lines changed

.drone.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pipeline:
203203
when:
204204
event: [ push, tag ]
205205

206-
build_docs:
206+
build-docs:
207207
image: webhippie/hugo:latest
208208
pull: true
209209
commands:
@@ -212,26 +212,12 @@ pipeline:
212212
- make clean
213213
- make build
214214

215-
docker_docs:
216-
image: plugins/docker:17.05
215+
publish-docs:
216+
image: lucap/drone-netlify:latest
217217
pull: true
218-
secrets: [ docker_username, docker_password ]
219-
repo: gitea/docs
220-
context: docs
221-
dockerfile: docs/Dockerfile
222-
tags: [ '${DRONE_BRANCH##release/v}' ]
223-
when:
224-
event: [ push ]
225-
branch: [ release/* ]
226-
227-
docker_docs:
228-
image: plugins/docker:17.05
229-
pull: true
230-
secrets: [ docker_username, docker_password ]
231-
repo: gitea/docs
232-
context: docs
233-
dockerfile: docs/Dockerfile
234-
tags: [ 'latest' ]
218+
secrets: [ netlify_token ]
219+
site_id: 05515f14-3702-4a84-9ff3-88ba90fe08dd
220+
path: docs/public/
235221
when:
236222
event: [ push ]
237223
branch: [ master ]

docs/Dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ menu:
3131
post: active
3232
- name: API
3333
url: https://try.gitea.io/api/swagger
34-
weight: 25
34+
weight: 45
3535
pre: plug
3636
- name: Blog
3737
url: https://blog.gitea.io/
@@ -79,7 +79,7 @@ languages:
7979
post: active
8080
- name: API
8181
url: https://try.gitea.io/api/swagger
82-
weight: 25
82+
weight: 45
8383
pre: plug
8484
- name: 博客
8585
url: https://blog.gitea.io/
@@ -122,7 +122,7 @@ languages:
122122
post: active
123123
- name: API
124124
url: https://try.gitea.io/api/swagger
125-
weight: 25
125+
weight: 45
126126
pre: plug
127127
- name: 部落格
128128
url: https://blog.gitea.io/
@@ -165,7 +165,7 @@ languages:
165165
post: active
166166
- name: API
167167
url: https://try.gitea.io/api/swagger
168-
weight: 25
168+
weight: 45
169169
pre: plug
170170
- name: Blog
171171
url: https://blog.gitea.io/
@@ -208,7 +208,7 @@ languages:
208208
post: active
209209
- name: API
210210
url: https://try.gitea.io/api/swagger
211-
weight: 25
211+
weight: 45
212212
pre: plug
213213
- name: Blog
214214
url: https://blog.gitea.io/
@@ -241,17 +241,17 @@ languages:
241241
menu:
242242
page:
243243
- name: Site
244-
url: /fr-fr/
244+
url: https://gitea.io/en-us/
245245
weight: 10
246246
pre: home
247247
post: active
248248
- name: Documentation
249-
url: https://docs.gitea.io/fr-fr/
249+
url: /fr-fr/
250250
weight: 20
251251
pre: question
252252
- name: API
253253
url: https://try.gitea.io/api/swagger
254-
weight: 25
254+
weight: 45
255255
pre: plug
256256
- name: Blog
257257
url: https://blog.gitea.io/

docs/docker/caddy.conf

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/static/.gitkeep

Whitespace-only changes.

docs/static/_headers

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*
2+
Content-Security-Policy: default-src 'self'
3+
X-Frame-Options: DENY
4+
X-Xss-Protection: 1; mode=block
5+
X-Content-Type-Options: nosniff
6+
Referrer-Policy: strict-origin-when-cross-origin

docs/static/_redirects

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
https://gitea-docs.netlify.com/* https://docs.gitea.io/:splat 302!
2+
3+
/ /fr-fr/ 302! Language=fr
4+
/ /nl-nl/ 302! Language=nl
5+
/ /pt-br/ 302! Language=pt-br
6+
/ /zh-cn/ 302! Language=zh-cn
7+
/ /zh-tw/ 302! Language=zh-tw
8+
/ /en-us/ 302!

0 commit comments

Comments
 (0)