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

Book: CD to Github page #742

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Book: CD to Github page #742

wants to merge 2 commits into from

Conversation

kraktus
Copy link
Contributor

@kraktus kraktus commented Nov 10, 2023

close #677

see d71f090 for technical details.

The current issue is that its posting the book at https://bheisler.github.io/criterion.rs/ instead of https://bheisler.github.io/criterion.rs/book/index.html and I'm not sure how it'd plays with the master doc. before trying to fix this, I want to be sure the idea of CD for the book is validated.

In fact considering the "master" documentation still displays 0.3.4 and has not been updated for 2 years I think it'd be safe to scrape it and only serve the book: https://bheisler.github.io/criterion.rs/criterion/

To allow for easy redirection to the repo from the book
Needs to select "Github action" here: https://github.com/kraktus/criterion.rs/settings/pages

I based myself on mdbook CD wiki: https://github.com/rust-lang/mdBook/wiki/Automated-Deployment:-GitHub-Actions

This action will deploy the book whenever the master branch is updated.

This can lead to slight differences between the book and the crate, if the book is updated before new crate version is released, but on the other will allow fixing typos and other issues easily.
kraktus added a commit to kraktus/mdbook-linkcheck that referenced this pull request Nov 10, 2023
Adapted from the bash snippet at the top of the README, needed it for bheisler/criterion.rs#742.
@waywardmonkeys waywardmonkeys mentioned this pull request Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the book and/or add a workflow for doing so
1 participant