Open-EO / openeo.org

openeo.org landing page
https://openeo.org
Apache License 2.0
6 stars 16 forks source link

Cookbook: Show h4 headers in TOC #49

Closed m-mohr closed 3 years ago

m-mohr commented 3 years ago

Originates from #47: Right now only h1, h2 and h3 headers are shown in the TOC of the cookbook. It would be great to show also h4 headers in the TOC.

In theory, it should work to add this to the markdown file as frontmatter:

---
sidebarDepth: 3
---

and also add the following to the config:

    markdown: {
      extractHeaders: [ 'h2', 'h3', 'h4' ]
    }

It does not work for me, maybe we have an outdated version and need to upgrade VuePress? Or something else is not working...

See also: https://github.com/vuejs/vuepress/issues/1715

jonathom commented 3 years ago

There is really no way to include multiple h1 headers, right?

m-mohr commented 3 years ago

I don't think so, it's also not semantically correct. There should be only one h1 per document.

m-mohr commented 3 years ago

This works now!

bihell commented 1 year ago

It works!