CONNECT-platform / codedoc

Create beautiful modern documentation websites.

Home Page:https://codedoc.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collapse on the ToC does not work below the first level

alemsabic opened this issue · comments

In the documentation it's written: "As mentioned above, Collapse can be used in a nested manner, so you can have your desired level of depth in your ToC".

When I use the example that follows ...

Home

:Collapse label=Stuff

Overview

:Collapse label=Spec
Spec Overview
Spec of This

... this is the result:

Screenshot at Feb 12 17-39-50

For any quoted component (including Collapse), you need a newline between the first line (which specifies the component type and its parameters) and the content. In your case, this is your markdown, where the newline is missing:

[Home](/)

> :Collapse label=Stuff
>
> [Overview](/some-folder/overview)
> > :Collapse label=Spec
> > [Spec Overview](/some-folder/spec/overview)
> > [Spec of This](/some-folder/spec/this)

And this is the correct version:

[Home](/)

> :Collapse label=Stuff
>
> [Overview](/some-folder/overview)
> > :Collapse label=Spec
> >
> > [Spec Overview](/some-folder/spec/overview)
> > [Spec of This](/some-folder/spec/this)

@alemsabic if this 👆fixes your issue, please tell me so that I would convert this issue to a discussion thread under Q&A.

@loreanvictor Hi Eugene, yeah, it does. Thanks for the fast answer. So it's an error in the documentation.
Screenshot at Feb 12 18-30-15

So it's an error in the documentation.

Yes it is, thanks for mentioning.