trenz-gmbh / trenz-docs

An SPA wiki made by TRENZ
MIT License
3 stars 0 forks source link

Get rid off the 'overview' node and let the API determine if the node should have content #14

Closed ricardoboss closed 2 years ago

ricardoboss commented 2 years ago

This implements the logic described in https://github.com/trenz-gmbh/trenz-docs/issues/4#issuecomment-1195699807.

If you click on a node which has the hasContent flag set, you see the content view for this node and additionally, if the node has children, the children are expanded.

This also requires trenz-gmbh/trenz-docs-api#6 to be merged. This fixes #4.

ricardoboss commented 2 years ago

Blocked by #15

chucker commented 2 years ago

Blocked by #15

How is the color of expand buttons related to removing 'overview'?

ricardoboss commented 2 years ago

The PR introduces the button in the first place. Might as well fix the other issue before this even makes it into main.

Edit: "related" might have been a better phrasing.