diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e3a1201f..5db6c388 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -19,6 +19,7 @@ jobs: mdbook build - name: Commit run: | - if git commit -am 'bot: update pages'; then + git add -f _pages + if git commit -m 'bot: update pages'; then git push origin HEAD:"${{ github.ref }}" fi diff --git a/_redirects b/_redirects index 2b3b989b..50b09362 100644 --- a/_redirects +++ b/_redirects @@ -15,7 +15,8 @@ https://tutorial-chirimen-org.netlify.com/* https://tutorial.chirimen.org/:spl /pizero/CHIRIMEN-Nodejs-examples /pizero/esm-examples # Proxy for build artifacts generated by mdbook -/pizero/* /_pages/pizero/:splat 200 +/pizero/*.html /pizero/:splat +/pizero/* /_pages/pizero/:splat 200 # Proxy polyfill and driver files /raspi/examples/polyfill/* https://chirimen.org/chirimen-raspi3/gc/polyfill/:splat 200 diff --git a/pizero/book.toml b/pizero/book.toml index cf02967e..9a1a39ca 100644 --- a/pizero/book.toml +++ b/pizero/book.toml @@ -16,7 +16,7 @@ additional-js = [ "theme/sidebar.js", ] default-theme = "light" -edit-url-template = "https://github.com/chirimen-oh/chirimen.org/edit/master/pizero/src/{path}" +edit-url-template = "https://github.com/chirimen-oh/chirimen.org/edit/master/pizero/{path}" git-repository-url = "https://github.com/chirimen-oh/chirimen.org" preferred-dark-theme = "light" site-url = "/pizero/"