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

Table of Contents #122

Open
courtneyr-dev opened this issue Sep 18, 2020 · 6 comments
Open

Table of Contents #122

courtneyr-dev opened this issue Sep 18, 2020 · 6 comments
Labels
[Component] Content Website development issues related to the content on Learn. Priority - Medium Medium priority issue. [Type] Enhancement New feature request for the Learn website.

Comments

@courtneyr-dev
Copy link
Collaborator

courtneyr-dev commented Sep 18, 2020

Can lesson plans have the table of contents based upon subheadings, similar to Handbook formatting? Ideally using the new Table of Contents block as a sidebar widget (not directly in post content)
image

@coreymckrill coreymckrill added the [Type] Enhancement New feature request for the Learn website. label Sep 18, 2020
@coreymckrill coreymckrill added this to the Lesson Plan Updates milestone Sep 18, 2020
@courtneyr-dev
Copy link
Collaborator Author

@coreymckrill this one would be helpful soon. I know we have ToCs in Docs that could likely be dropped in to Learn. I also see WordPress/gutenberg#21234 on the roadmap. Could ToC's move into the top right sidebar of Lesson Plans (thus tucking it in as a .... widget as a block....?

@coreymckrill
Copy link
Contributor

I think ideally we'd just use the TOC block that'll be released with Gutenberg 10.1, and we could just add it into the content of any lesson plan or workshop. The Gutenberg plugin is available on all wp.org sites, and I was actually thinking of activating it on Learn anyway, so the TOC block would be available to us long before it makes it into Core.

@courtneyr-dev
Copy link
Collaborator Author

Will we need to add the block per lesson, or can we put it into the sidebar as a widget, or even insert it after the title before post? Asking if we need to manually go add it to each lesson plan.

@coreymckrill
Copy link
Contributor

I'm not sure if the TOC needs to be in the same field as the post content in order to accurately parse all the heading levels. If not, we could probably render it in the sidebar. Needs more investigation.

@hlashbrooke
Copy link
Collaborator

This would ideally be displayed in the sidebar. Can we please add this block to the sidebar?

@hlashbrooke hlashbrooke added the Priority - Medium Medium priority issue. label Sep 9, 2021
@hlashbrooke
Copy link
Collaborator

It looks like development on the TOC block in Gutenberg has stalled - the issue for tracking it is here: WordPress/gutenberg#22874

I'll do some digging and see if this is going to come anytime soon.

@courtneyr-dev courtneyr-dev added the hacktoberfest To mark issues for the Hacktoberfest event each October. label Sep 22, 2022
@bsanevans bsanevans added [Component] Content Website development issues related to the content on Learn. and removed [Component] Lesson Plans labels Nov 27, 2023
@bsanevans bsanevans removed the hacktoberfest To mark issues for the Hacktoberfest event each October. label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Content Website development issues related to the content on Learn. Priority - Medium Medium priority issue. [Type] Enhancement New feature request for the Learn website.
Projects
Status: In discussion
Development

No branches or pull requests

4 participants