Automate Glossary
I have created a glossary for my project. Each entry is a partial .adoc in a partial family folder in a glossary module. That way, I am including the entries in other pages across the documentation. e.g. include::glossary:partialentry.adoc[]. Now I would like to create a glossary page glossary.adocwith all entries from the partial family. I am dreaming of a directive such as include::partial*.adoc assuming here aren't any other files located there. Is that available? Couldn't find anything when searching for "wirldcards" related to "include" in antora or asciidoc.
djencks 18:09
@ukubauka_gitlab There is no way to do that built in to Antora, but it is not that difficult with an Asciidoctor extension that queries the Antora content catalog. My https://gitlab.com/djencks/asciidoctor-antora-indexer shows how to do such queries and almost does what you need directly: what's missing is a way to get the resourceId of the partial so you can construct the include:: statement. I might add that now
djencks 18:45 My 2nd suggestion won't work as partials don't get document attributes as they aren't standalone documents. To get it to work, you'd need to put the glossary entries in a separate component as regular pages, and then hide that component in the component explorer..... not a good idea.