Skip to content
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

[BUG] Grouping multiples files rendering issue #356

Open
Cosmet opened this issue Aug 23, 2018 · 0 comments
Open

[BUG] Grouping multiples files rendering issue #356

Cosmet opened this issue Aug 23, 2018 · 0 comments

Comments

@Cosmet
Copy link

Cosmet commented Aug 23, 2018

index.apib
# Group A
<!-- include(child-A.apib) -->
<!-- include(child-B.apib) -->

---

child-A.apib
# Child A [/path]
## Some API [POST]
## Another API [GET]

---

child-B.apib
# Child B [/path]
## Some Other API [POST]

---->

This results in the sidebar looking like this
Group A (expandable)
- Child A
  - Some API
  - Another API
  - Some Other API

---

but it should look like this
Group A (expandable)
- Child A
  - Some API
  - Another API
- Child B
  - Some Other API

---

or even ideally like this
Group A (expandable)
- Group Child A (expandable)
  - Some API
  - Another API
- Group Child B (expandable)
  - Some Other API

Now if you add another method to child-B it renders the way it should be

Changing it to this format somewhat fixes the issue

index.apib
# Group A
<!-- include(child-A.apib) -->
<!-- include(child-B.apib) -->

---

child-A.apib
# Child A [/path]
## Some API [POST]
## Another API [GET]

---

child-B.apib
# Child B [GET /path]

---->

however this format you have to have all single method children files at the top of the group otherwise they fall into other child sections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant