debruine / quarto-glossary

A lua extension that provides shortcodes for glossary in quarto.
https://debruine.github.io/quarto-glossary/
MIT License
19 stars 3 forks source link

Create a possibility to add a glossary page to a quarto webpage #10

Open jakobschumacher opened 1 month ago

jakobschumacher commented 1 month ago

It would be great to have a feature to add every term that is in the glossary to a specific webpage in a quarto project. For now you have to add every term on one page and then add {{< glossary table=true >}}. This is good if you have a single page. But is very cumbersome if you do a quarto book or quarto webpage

If there would be a taglike {{< glossary complete=true >}} or something similiar which adds every term that is in the glossary, that would be helpful.

jakobschumacher commented 1 month ago

There is a way to circumvent the problem by using:

#| echo: false
#| output: asis
glossary <- yaml::read_yaml("glossary.yml")

for (term in names(glossary)) {
  cat("## ", term, "\n\n", glossary[[term]], "\n\n", sep = "")
}