Skip to content

Docs external toc #122

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

Merged
merged 18 commits into from
Mar 7, 2025
Merged

Docs external toc #122

merged 18 commits into from
Mar 7, 2025

Conversation

Tom-van-Woudenberg
Copy link
Member

@Tom-van-Woudenberg Tom-van-Woudenberg commented Feb 25, 2025

To be merged whenever external toc is released in teachbooks.

See built book page here: https://teachbooks.io/manual/docs_external_toc/features/external_toc.html

@Tom-van-Woudenberg Tom-van-Woudenberg self-assigned this Feb 25, 2025
@Tom-van-Woudenberg Tom-van-Woudenberg marked this pull request as draft February 25, 2025 16:08
@Tom-van-Woudenberg
Copy link
Member Author

@BSchilperoort

Copy link
Collaborator

@BSchilperoort BSchilperoort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing this documentation. I have a few remarks.

It's probably easier to merge TeachBooks/TeachBooks#59 first and then update some of the info (e.g. links) here again.

Tom-van-Woudenberg and others added 4 commits March 5, 2025 07:13
Co-authored-by: Bart Schilperoort <b.schilperoort@gmail.com>
Co-authored-by: Bart Schilperoort <b.schilperoort@gmail.com>
Co-authored-by: Bart Schilperoort <b.schilperoort@gmail.com>

Previously, this book feature was implemented using [submodules](../external/Nested-Books/README.md), but the implementation was more difficult to use. Despite this, submodules are still a widely used Git feature that can be very useful for book authors, so check out the [submodules page](../external/Nested-Books/README.md) to learn more, especially if the External TOC tool does not satisfy your needs.

```{warning}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be updated once the deploy book workflow uses teachbooks>=0.2.0.
@Tom-van-Woudenberg do you just test this by running it in a fork a few times?
I made an Issue here #130

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rlanzafame, I don't understand what you mean? As soon as the external_toc thing is in main of taechbooks let's just directly publish it to a new version. After that, the deploy book workflow will make use of it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not so simple:

  • new books will use it as soon as it is released
  • existing books will use it once the CI cache expires (is this after 1 week of not being used???)
  • books not using our workflow don't have to worry about it
  • unclear if anyone actually uses teachbooks to build books without our deploy-book-workflow, but this group would also be affected as they would be the most likely people to be building primarily locally. however, i think my last changes in PR 59 will prevent this being an issue

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 know all of that and I think we argee that we shouldn't publish it as long as it affects the previous behaviour. But there's no change in behaviour as long as there's no external: in the toc right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. At least for the use case of GitHub Actions!

@rlanzafame rlanzafame marked this pull request as ready for review March 7, 2025 15:48
@rlanzafame rlanzafame merged commit b2404ad into release Mar 7, 2025
5 checks passed
@rlanzafame rlanzafame deleted the docs_external_toc branch March 7, 2025 15:50
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.

3 participants