Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bookignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*.sh
*.mmd
#*
_build

10 changes: 10 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

7 changes: 1 addition & 6 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down