canonical / discourse-gatekeeper

Experimental GitHub Action to upload charm documentation to charmhub
Apache License 2.0
7 stars 7 forks source link

Skip empty Contents section #251

Open izmalk opened 2 months ago

izmalk commented 2 months ago

I think we should never be able to generate the first-level heading for anything except the page's title. And we should skip the Contents heading if it has nothing inside.

Example

https://github.com/canonical/karapace-operator/pull/15 -- In this PR we add simple documentation to a product, consisting of a single page.

See the Discourse topic for the documentation.