iotexproject / dev-portal-content

Content for iodev
7 stars 35 forks source link

Make TOC header level aware and collapsable #5

Closed as-iotex closed 1 year ago

as-iotex commented 2 years ago

If the article contains a lot of headers, then the table of contents becomes too big. At the moment all the headers in the markdown file are "flattened". Hence they use a lot of vertical space, making the left side panel vertically scrollable. It would be great if the left panel could show headers indented by header level. And also make them collapsable. See an example of this issue in https://developers.iotex.io/posts/deploy-a-machinefi-dapp

simonerom commented 2 years ago

@nicky-ru ip to what level headers are displayed?

nicky-ru commented 2 years ago

@simonerom right now only h1, h2, h3

nicky-ru commented 1 year ago

fixed