Skip to content

Deploy docs to vercel #1335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ __pycache__/

# test specific files
.test_tmp_*

# deployment
.vercel
2 changes: 1 addition & 1 deletion docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
FROM nginx:stable-alpine as deploy
WORKDIR /app
EXPOSE 80
COPY ./app/build ./static/devbox/docs/
COPY ./app/build/devbox/docs ./static/devbox/docs/
COPY ./nginx.conf /etc/nginx/nginx.conf
1 change: 1 addition & 0 deletions docs/app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vercel
2 changes: 1 addition & 1 deletion docs/app/docs/devbox_global.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ For example — if you use ripgrep as your preferred search tool, you can add it

<figure>

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

<figcaption>Installing Packages with Devbox Global</figcaption>
</figure>
Expand Down
3 changes: 2 additions & 1 deletion docs/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"build": "docusaurus build && yarn run postbuild",
"postbuild": "mkdir -p tmp && cp -r build/* tmp/ && mkdir -p build/devbox/docs && cp -r tmp/* build/devbox/docs/ && rm -rf tmp",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down
Loading