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

Design Proposal: Table of Contents for documents #456

Closed
janpio opened this issue Nov 15, 2017 · 3 comments
Closed

Design Proposal: Table of Contents for documents #456

janpio opened this issue Nov 15, 2017 · 3 comments

Comments

@janpio
Copy link
Member

janpio commented Nov 15, 2017

Example: https://docs.fastlane.tools/plugins/create-plugin/

Right now it is very hard to get an overview of the content of a document, which is why other documents like https://docs.fastlane.tools/advanced/ use the headline levels to push entries into the navigation on the left (which has its own problems: #455)

For the create-plugin document it would be a better idea to start the document with an auto generated Table of Contents display above the actual content.

This would also work for other documents, but probably not for all of them, which means there would have to be a way to configure this.

@janpio
Copy link
Member Author

janpio commented Nov 15, 2017

One way to do this for pages hosted on Github Pages it using kramdown's {:toc} manually in documents where a TOC is wanted: https://kramdown.gettalong.org/converter/html.html#toc

Update: Oh, this really is only hosted on GH Pages and not generated with Jekyll. So no {:toc} :/

@janpio
Copy link
Member Author

janpio commented Nov 29, 2017

This seems to be in use here: https://pythonhosted.org/Markdown/extensions/toc.html#syntax

@janpio
Copy link
Member Author

janpio commented Aug 3, 2018

Random example:

image

TOC shows that there are problems with the headlines: "Credentials" is a bit unrelated to all the other stuff and could be place under a "Technical information" (or similar) headline, beginning with "3 examples" - those are a whole different section of the page.

@janpio janpio closed this as completed Jan 19, 2020
@janpio janpio added this to the Useful issues that were closed milestone Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant