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

Add versioned book on readthedocs.org #6

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

Kijewski
Copy link
Collaborator

This PR adds the file .readthedocs.yaml, which is used by readthedocs.org to generate the book on their servers. RTD can be used easily host docs for every rinja version, so users can explore how to use the current stable version, the current HEAD, and an older version.

For older versions than the current PR, the books won't be built, because we did not provided the needed .readthedocs.yaml.

Also an index.hbs template skeleton is dynamically generated to made mdbook and RTD work better together. (Only the left sidebar was changed, but you have to override the whole file to make any changes.)

This PR adds the file `.readthedocs.yaml`, which is used by
readthedocs.org to generate the book on their servers. RTD can be used
easily host docs for every rinja version, so users can explore how to
use the current stable version, the current HEAD, and an older version.

For older versions than the current PR, the books won't be built,
because we did not provided the needed `.readthedocs.yaml`.

Also an `index.hbs` template skeleton is dynamically generated to made
mdbook and RTD work better together. (Only the left sidebar was changed,
but you have to override the whole file to make any changes.)
@GuillaumeGomez
Copy link
Contributor

Awesome, thanks!

@GuillaumeGomez GuillaumeGomez merged commit 3c4d920 into rinja-rs:master Jun 18, 2024
16 checks passed
@GuillaumeGomez
Copy link
Contributor

Would it be possible to make it updated through github actions whenever a PR is merged? If so, what do you need to make it possible?

Oh and final point: should we reset all versions to 0.1.0?

@Kijewski Kijewski deleted the pr-rtd branch June 18, 2024 09:24
Kijewski added a commit to Kijewski/rinja that referenced this pull request Jun 18, 2024
In rinja-rs#6 I forgot to add the most importand file of the PR: .readthedocs.yaml
Kijewski added a commit that referenced this pull request Jun 18, 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.

2 participants