documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Sidenav upgrade

Open souperneon opened this issue 8 years ago • 6 comments

Also in: https://mapzen.com/common/styleguide/js-components.html#side-navigation

screen shot 2016-12-15 at 5 46 28 pm

Current behavior:

  • Sub-sections are collapsed and are separate pages
  • Only one sub-section that is currently active can be open at any given moment

Desired (new) behavior:

  • Sub-sections are open on page load
  • Sub-sections are one long page instead of multiple pages H1 - Get Started (main sections) H2 - Tangram Basics (page names) H3 - OpenGL (main sections in a page) H4-6 - smaller sections in a page (collapsed, but expandable)

souperneon avatar Dec 15 '16 22:12 souperneon

This index.md has the right heading levels.

If you look at the config YML for tangram you'll see that some of the hierarchy can be built in MKDocs, but the index.md doesn't play nice and wants to always be the first part of the TOC (I think)

kkowalsky avatar Dec 15 '16 22:12 kkowalsky

anything you want to test for the new nav should use the src-tangram-new (Still WIP) folder: https://github.com/mapzen/mapzen-docs-generator/tree/katie/tangram-update

kkowalsky avatar Dec 15 '16 22:12 kkowalsky

I would split this from the new Tangram work. It's a separate thing that we want apply throughout, and mixing it up with the other new stuff will make it harder to roll out.

migurski avatar Dec 16 '16 15:12 migurski

I agree. I was using the Tangram wireframe to illustrate the type hierarchy and explain how the logic should work with the left nav. Once we have a version of it built, testing it with Tangram docs will be good :)

souperneon avatar Dec 16 '16 17:12 souperneon

Leaving a note for future: I spent times with docs-generator, and found out it doesn't know about headers outside of current page context. Page structure from config file is saved as nav, accessible from theme, but headers are not saved as globla object like nav, it is saved in page scope which is only accessible from current page.

hanbyul-here avatar Feb 02 '17 17:02 hanbyul-here

See also https://github.com/tangrams/tangram-docs/issues/206

rmglennon avatar Apr 05 '17 21:04 rmglennon