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

Autogenerate toc #40

Closed
TomDonoghue opened this issue Oct 31, 2018 · 2 comments
Closed

Autogenerate toc #40

TomDonoghue opened this issue Oct 31, 2018 · 2 comments

Comments

@TomDonoghue
Copy link
Contributor

Is there still a way to autogenerate the toc file, that now lives in data/toc.yml?

The old script to do this was quite useful, especially when deploying a site that updates periodically. Is there anything that prevents doing this with the new organization? Given a couple assumptions about what ends up in content/ is seems this should be automatable (with more complicated builds / organizations perhaps requiring manual editing).

@choldgraf
Copy link
Collaborator

Not currently but I'm all for it, it's just that the old one built a SUMMARY.md file instead of a toc.yml file...PRs are definitely welcome on that one, shouldn't be too hard

@choldgraf
Copy link
Collaborator

this now happens here:

https://github.com/jupyter/jupyter-book/blob/master/jupyter_book/toc.py

and is called in the build script!

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

No branches or pull requests

2 participants