Skip to content

Commit bd2ea97

Browse files
authored
Deploy docs to vercel (#1335)
## Summary Deploy docs to vercel. This is part of the general move of www.jetpack.io ## How was it tested? vercel
1 parent 4982b2e commit bd2ea97

File tree

6 files changed

+11960
-8376
lines changed

6 files changed

+11960
-8376
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ __pycache__/
3333

3434
# test specific files
3535
.test_tmp_*
36+
37+
# deployment
38+
.vercel

docs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
FROM nginx:stable-alpine as deploy
33
WORKDIR /app
44
EXPOSE 80
5-
COPY ./app/build ./static/devbox/docs/
5+
COPY ./app/build/devbox/docs ./static/devbox/docs/
66
COPY ./nginx.conf /etc/nginx/nginx.conf

docs/app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@
1818
npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
21+
.vercel

docs/app/docs/devbox_global.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For example — if you use ripgrep as your preferred search tool, you can add it
99

1010
<figure>
1111

12-
![Installing ripgrep using `devbox global add ripgrep](../../app/static/img/devbox_global.svg)
12+
![Installing ripgrep using `devbox global add ripgrep](../static/img/devbox_global.svg)
1313

1414
<figcaption>Installing Packages with Devbox Global</figcaption>
1515
</figure>

docs/app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"docusaurus": "docusaurus",
77
"start": "docusaurus start",
8-
"build": "docusaurus build",
8+
"build": "docusaurus build && yarn run postbuild",
9+
"postbuild": "mkdir -p tmp && cp -r build/* tmp/ && mkdir -p build/devbox/docs && cp -r tmp/* build/devbox/docs/ && rm -rf tmp",
910
"swizzle": "docusaurus swizzle",
1011
"deploy": "docusaurus deploy",
1112
"clear": "docusaurus clear",

0 commit comments

Comments
 (0)