danielgtaylor / danielgtaylor/aglio

[BUG] Grouping multiples files rendering issue

Open
#356 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
4.7k
Forks
471
PR merge metrics
No merged PRs in 30d

Description

```
index.apib
# Group A

---

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

---

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.