From 27b1e05c87359c332a9bd857fed1bdd73016040c Mon Sep 17 00:00:00 2001 From: kana <20081810+kana4@users.noreply.github.com> Date: Fri, 11 Jun 2021 20:21:28 +0100 Subject: [PATCH 1/3] MyPaths are not required and fail Inputting paths are not necessary and will break ci, we can just leave paths out. We also changed 'master' to main since anyone reading this is probably going to be making mains --- guide/src/continuous-integration.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/guide/src/continuous-integration.md b/guide/src/continuous-integration.md index 11862010..aed0dada 100644 --- a/guide/src/continuous-integration.md +++ b/guide/src/continuous-integration.md @@ -26,7 +26,7 @@ before_script: - cargo install-update -a script: - - mdbook build path/to/mybook && mdbook test path/to/mybook + - mdbook build && mdbook test ``` ## Deploying Your Book to GitHub Pages @@ -50,10 +50,10 @@ deploy: provider: pages skip-cleanup: true github-token: $GITHUB_TOKEN - local-dir: path/to/mybook/book + local-dir: book keep-history: false on: - branch: master + branch: main ``` That's it! @@ -77,7 +77,7 @@ before_script: - cargo install-update -a script: - - mdbook build path/to/mybook && mdbook test path/to/mybook + - mdbook build && mdbook test deploy: provider: pages @@ -85,10 +85,10 @@ deploy: edge: true cleanup: false github-token: $GITHUB_TOKEN - local-dir: path/to/mybook/book + local-dir: book keep-history: false on: - branch: master + branch: main target_branch: gh-pages ``` From 00473d842017c0a3ac2f5cfecc3b08b53a8c9618 Mon Sep 17 00:00:00 2001 From: kana <20081810+kana4@users.noreply.github.com> Date: Sun, 4 Jul 2021 18:27:53 +0100 Subject: [PATCH 2/3] Add comments to edit in case of custom book path --- guide/src/continuous-integration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guide/src/continuous-integration.md b/guide/src/continuous-integration.md index aed0dada..a5710c97 100644 --- a/guide/src/continuous-integration.md +++ b/guide/src/continuous-integration.md @@ -26,7 +26,7 @@ before_script: - cargo install-update -a script: - - mdbook build && mdbook test + - mdbook build && mdbook test # Edit in case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook ``` ## Deploying Your Book to GitHub Pages @@ -50,7 +50,7 @@ deploy: provider: pages skip-cleanup: true github-token: $GITHUB_TOKEN - local-dir: book + local-dir: book # Edit in case of custom book path: path/to/mybook/book keep-history: false on: branch: main @@ -77,7 +77,7 @@ before_script: - cargo install-update -a script: - - mdbook build && mdbook test + - mdbook build && mdbook test # Edit in case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook deploy: provider: pages @@ -85,7 +85,7 @@ deploy: edge: true cleanup: false github-token: $GITHUB_TOKEN - local-dir: book + local-dir: book # Edit in case of custom book path: path/to/mybook/book keep-history: false on: branch: main From a8926d5392fe546659cd42c0808100d169b93cdb Mon Sep 17 00:00:00 2001 From: kana <20081810+kana4@users.noreply.github.com> Date: Sun, 4 Jul 2021 18:28:56 +0100 Subject: [PATCH 3/3] Update continuous-integration.md --- guide/src/continuous-integration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guide/src/continuous-integration.md b/guide/src/continuous-integration.md index a5710c97..c88c3774 100644 --- a/guide/src/continuous-integration.md +++ b/guide/src/continuous-integration.md @@ -26,7 +26,7 @@ before_script: - cargo install-update -a script: - - mdbook build && mdbook test # Edit in case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook + - mdbook build && mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook ``` ## Deploying Your Book to GitHub Pages @@ -50,7 +50,7 @@ deploy: provider: pages skip-cleanup: true github-token: $GITHUB_TOKEN - local-dir: book # Edit in case of custom book path: path/to/mybook/book + local-dir: book # In case of custom book path: path/to/mybook/book keep-history: false on: branch: main @@ -77,7 +77,7 @@ before_script: - cargo install-update -a script: - - mdbook build && mdbook test # Edit in case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook + - mdbook build && mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook deploy: provider: pages @@ -85,7 +85,7 @@ deploy: edge: true cleanup: false github-token: $GITHUB_TOKEN - local-dir: book # Edit in case of custom book path: path/to/mybook/book + local-dir: book # In case of custom book path: path/to/mybook/book keep-history: false on: branch: main