diff --git a/.bookignore b/.bookignore index 3d612821..c9ec4483 100644 --- a/.bookignore +++ b/.bookignore @@ -3,4 +3,5 @@ *.sh *.mmd #* +_build diff --git a/netlify.toml b/netlify.toml index 72fccfe2..e3424e43 100644 --- a/netlify.toml +++ b/netlify.toml @@ -7,3 +7,13 @@ to = "/assets/:splat" status = 200 +[[redirects]] + from = "/0.12/.gitbook/assets/*" + to = "/0.12/assets/:splat" + status = 200 + +[[redirects]] + from = "/1.0/.gitbook/assets/*" + to = "/1.0/assets/:splat" + status = 200 + diff --git a/scripts/build.sh b/scripts/build.sh index 553e3288..da7e459f 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -42,14 +42,9 @@ git worktree add _build/0.12 origin/0.12 git worktree add _build/1.0 origin/1.0 cp -f book.json FOOTER.md _build/0.12 +sed -i -e 's/Fluentd 1.0/Fluentd 0.12/' _build/0.12/book.json cp -r styles _layouts _build/0.12/ cp -f book.json _build/1.0 -# TODO: Remove it when honkit migration branch was merged -if [ "${HONKIT_ENV}" = "dev" ]; then - cp FOOTER.md _build/1.0/ - rsync -avz styles/ _build/1.0/styles/ - rsync -avz _layouts/ _build/1.0/_layouts/ -fi info "Building latest branch" npx honkit build