-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Fix Marker Book Deployment #224
Conversation
@@ -36,7 +36,7 @@ jobs: | |||
mkdir deploy | |||
cp ./docs/index.html ./deploy/index.html | |||
- name: Build the book | |||
run: mdbook build docs/book --dest-dir deploy/book | |||
run: mdbook build docs/book --dest-dir ../../deploy/book |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's strange. The step above puts the index.html
into ./deploy
. Then why is this ../../deploy
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see this is in the help:
-d, --dest-dir <dest-dir> Output directory for the book
Relative paths are interpreted relative to the book's root directory.
If omitted, mdBook uses build.build-dir from book.toml or defaults to `./book`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The path after mdbook build
changes the directory that mdbook build
is executed. The --det-dir
as to be relative to the book source directory. It's a weird thing, but somehow works (hopefully)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran this locally and it put everything under ./deploy/book
afterwards. The book
sub dir is to have it as a sub url
Now everything works 🎉 Thank you updating the CI @Veetaha ❤️ |
Fix book deployment after switching to merge queues in #222