Skip to content
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

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Conversation

xFrednet
Copy link
Member

@xFrednet xFrednet commented Aug 21, 2023

Fix book deployment after switching to merge queues in #222

@xFrednet xFrednet added C-bug Category: Something isn't working C-documentation Category: Improvements or additions to documentation A-infra Area: Infrastructure and CI magic :sparkles: labels Aug 21, 2023
@xFrednet xFrednet added this to the v0.2.0 milestone Aug 21, 2023
@xFrednet xFrednet enabled auto-merge August 21, 2023 12:19
@@ -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
Copy link
Contributor

@Veetaha Veetaha Aug 21, 2023

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?

Copy link
Contributor

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`.

Copy link
Member Author

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)

Copy link
Member Author

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

@xFrednet xFrednet added this pull request to the merge queue Aug 21, 2023
@xFrednet xFrednet removed this pull request from the merge queue due to a manual request Aug 21, 2023
@xFrednet xFrednet added this pull request to the merge queue Aug 21, 2023
Merged via the queue into rust-marker:master with commit 878f1b8 Aug 21, 2023
@xFrednet xFrednet deleted the 222-fix-book branch August 21, 2023 12:39
@xFrednet
Copy link
Member Author

Now everything works 🎉 Thank you updating the CI @Veetaha ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-infra Area: Infrastructure and CI magic :sparkles: C-bug Category: Something isn't working C-documentation Category: Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants