From 35060fb2dec0b048044c9fa1197aafb64626ca5d Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 24 Feb 2021 09:27:13 -0800 Subject: [PATCH] Revert "ci: disable mdbook-linkcheck" This reverts commit bef0fa29ac7e7dccc4e119d4ec9070e0767a539c and bb2d45d0aa930245188c17f7695663e4f3becbb3. refs: https://github.com/Michael-F-Bryan/mdbook-linkcheck/issues/53 --- .github/workflows/pages.yml | 4 ++-- ci/build-docs.sh | 4 ++-- docs/book.toml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 3f7cd5706..321d5c281 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -33,7 +33,7 @@ jobs: run: | mkdir -p ~/mdbook-bin (test -x ~/mdbook-bin/mdbook || (cd && cargo install --vers "^0.4" mdbook && cp -p ~/.cargo/bin/mdbook ~/mdbook-bin)) - #(test -x ~/mdbook-bin/mdbook-linkcheck || (cd && cargo install mdbook-linkcheck && cp -p ~/.cargo/bin/mdbook-linkcheck ~/mdbook-bin)) + (test -x ~/mdbook-bin/mdbook-linkcheck || (cd && cargo install mdbook-linkcheck && cp -p ~/.cargo/bin/mdbook-linkcheck ~/mdbook-bin)) - name: Build run: | source $HOME/.cargo/env @@ -44,7 +44,7 @@ jobs: uses: crazy-max/ghaction-github-pages@v2 with: target_branch: gh-pages - build_dir: gh_pages + build_dir: gh_pages/html keep_history: true allow_empty_commit: false env: diff --git a/ci/build-docs.sh b/ci/build-docs.sh index 9e0f291e4..52b959926 100755 --- a/ci/build-docs.sh +++ b/ci/build-docs.sh @@ -5,5 +5,5 @@ python3 ci/subst-release-info.py || exit 1 python3 ci/generate-docs.py || exit 1 mdbook build docs -cp assets/icon/terminal.png gh_pages/favicon.png -cp assets/icon/wezterm-icon.svg gh_pages/favicon.svg +cp assets/icon/terminal.png gh_pages/html/favicon.png +cp assets/icon/wezterm-icon.svg gh_pages/html/favicon.svg diff --git a/docs/book.toml b/docs/book.toml index 67aa4f614..d6bdf6eb4 100644 --- a/docs/book.toml +++ b/docs/book.toml @@ -13,5 +13,5 @@ default-theme = "ayu" preferred-dark-theme = "ayu" git-repository-url = "https://github.com/wez/wezterm" -#[output.linkcheck] -#traverse-parent-directories = false +[output.linkcheck] +traverse-parent-directories = false