-
Notifications
You must be signed in to change notification settings - Fork 10
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
toc for longer articles/guides #18
Comments
I'll take a look at this tomorrow. I agree, the guide pages are quite long and can be hard to navigate. Ideally the TOC floats while scrolling so it is always available on the side. There will need to be some kind of balance between the guide links and the TOC. |
Perfect, something like position fixed would be fine in my eyes. Take your time and would love to see your results. |
Sorry it took me so long to work on this. I made some quick changes to the CSS and JavaScript and came up with this: padrino-web-new/tree/fixed-sidebar. It basically changes the sidebar element to There are a couple of issues with this approach:
Alternative solutionRather than discussing issues with the proposed solution, let's discuss problems with the current implementation.
These are fairly easy problems to solve:
These structural solutions should, in theory, make a TOC unnecessary. I feel this is a better solution, but I'd like to hear others' opinions. |
Implemented split docs. See at http://padrinorb.com/guides/. |
Looks great! |
Perfect, looks very nice, reminds me a little bit of the old implementation. |
It's hard to navigate long pages, so I created a branch for it: https://github.com/padrino/padrino-web-new/tree/toc.
@angeloashmore I'm not sure how the styling and collapse works. Would be nice that you can say, it will work or not. The plugin used for this is called https://github.com/atarukodaka/middleman-page-toc
The text was updated successfully, but these errors were encountered: