From 858094aa38d4db18ccf94b25d5486eee228b9f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Sat, 24 Sep 2022 20:53:40 +0900 Subject: [PATCH] docs: place `.nojekyll` when deploying to GitHub Pages (#10230) --- docs/guide/static-deploy.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/guide/static-deploy.md b/docs/guide/static-deploy.md index 7c76ca2..bcccd14 100644 --- a/docs/guide/static-deploy.md +++ b/docs/guide/static-deploy.md @@ -64,7 +64,7 @@ Now the `preview` command will launch the server at `http://localhost:8080`. 2. Inside your project, create `deploy.sh` with the following content (with highlighted lines uncommented appropriately), and run it to deploy: - ```bash{13,21,24} + ```bash{16,24,27} #!/usr/bin/env sh # abort on errors @@ -76,6 +76,9 @@ Now the `preview` command will launch the server at `http://localhost:8080`. # navigate into the build output directory cd dist + # place .nojekyll to bypass Jekyll processing + echo > .nojekyll + # if you are deploying to a custom domain # echo 'www.example.com' > CNAME