From 55b642feaaf74198193d5b8d19fd9b4e8a033f85 Mon Sep 17 00:00:00 2001 From: Pierre Mavro Date: Mon, 13 Apr 2020 15:26:08 +0200 Subject: [PATCH 1/2] Updating Docusaurus config to make it work There were some issues, it was impossible to get it working just with a simple copy/paste --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 242c2da20..581464236 100644 --- a/README.md +++ b/README.md @@ -712,13 +712,15 @@ jobs: ${{ runner.os }}-yarn- - run: yarn install + working-directory: ./website - run: yarn build + working-directory: ./website - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build + publish_dir: /website/build/ ``` ### ⭐️ Static Site Generators with Python From 3cf78d59b287ee3553b2fdd884af76a6c605d0e7 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 13 Apr 2020 23:22:52 +0900 Subject: [PATCH 2/2] docs: Fix publish_dir --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 581464236..1cbe0e2db 100644 --- a/README.md +++ b/README.md @@ -678,7 +678,7 @@ jobs: An example workflow for [Docusaurus](https://docusaurus.io/). -`npx @docusaurus/init@next init` is useful to create a new Docusaurus project. +`npx @docusaurus/init@next init website classic` is useful to create a new Docusaurus project. ```yaml name: github pages @@ -720,7 +720,7 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: /website/build/ + publish_dir: ./website/build ``` ### ⭐️ Static Site Generators with Python