-
Notifications
You must be signed in to change notification settings - Fork 6
Added pull request build #102
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
Conversation
Adds documentation to manual: https://teachbooks.io/manual/pull_request_BTD/features/pull_request_build.html Replaces extension of deploy-book-workflow: TeachBooks/deploy-book-workflow#73 @moorepants, indeed easy to set up! @rlanzafame, fancy reviewing this? Afterwards, it deserves a post on the website. |
Nice! |
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.
Looks good! A few comments/questions though:
- Can you provide a set of example links to illustrate? If you give me links I can update text. I presume given the screenshot you have it set up for the Manual? I have no way to find it and I gave up trying to guess the link.
- I added RTD to my account but can't see anything related to TeachBooks...do you still need to add me to the RTD Project for the Manual?
- Why can't we use the APA extension? It looks like the problem could be that you use
jupyter book
to build the book instead ofteachbooks
, which handles the manual file transfer. I can change it, but then I did not see theconfig.py
file that is needed for theconfig sphinx
part...is that in RTD? Is that why we can't use the APA thing? - The first paragraph made me realize we need to add a bit more "meat" to the Git explanation to include PR and fork descriptions improve git chapter, specifically forks and PR's #103
I couldn't set it up for the manual because it has those local extensions. I think the conversion from Another example is here: CIEM5000-2025/book#5. But maybe it would be better to have a dedicated example book in teachbook org which allows people to fork to test it themselves too.
So the project doesn't exist and yes I need to add you manually in RTD if it would exist.
Is teavhbooks required for the applications in |
|
For every primary book repository, the owner of that repository would have to connect it to read the docs and set the setting in read the docs to "build previews on pull requests". You'd have to have to have a RTD configuration file also, so that all the teachbooks tooling is available for the RTD builds. After all that, when anyone opens a PR on the primary repository, it should show the preview build in the CI check list (when green check you can click and open the preview website). |
Here:
Done: https://github.com/TeachBooks/Read-the-Docs-example-book, including reference to it in this branch
Teachbooks is not used with read-the-docs and I doubt it whether it's possible to do so. You could run the 'process only' option of TeachBooks as a 'pre-build' step thought. I think the problem is that |
Yes, this is all explained on this page in the manual :) |
OK I think that wraps it up for now. the last text changes describes how we haven't checked the APA/local extensions thing but that it should be possible. I set it up as an issue for later TeachBooks/Read-the-Docs-example-book#3 |
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.
Hey @Tom-van-Woudenberg I'm done! I'll leave the final button-pushing to you in case you want to read the additions I made one more time
book/features/pull_request_build.md
Outdated
In theory this should work with the TeachBooks Python package `teachbooks` as well as local extensions (e.g., those in `book/_ext` like [](./apa.md)), but we have not checked this yet. If you are interested, try setting it up as a PR related to [this issue](https://github.com/TeachBooks/Read-the-Docs-example-book/issues/3). | ||
|
||
```{tip} | ||
Once set up, this tool is only accessible via the Pull Request page for a repository in the 'Checks' part of the automated rule set box (illustrated below). This is different from our deploy-book-workflow, which is accessed |
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.
@rlanzafame , this part is not finished, what do you mean?
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.
After this you can merge!
No description provided.