-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design feedback #1
Comments
Nice initiative for quarto! My initial thoughts are the use of a code block syntax feels more natural compared to the carpentries'
:::{.definition lang="en" term="toad"}
A toad is another name for a frog...
:::
:::{.definition lang="en" term="toad" word="sapo"}
Un sapo es otro nombre para una rana...
::: On the other parts:
Outside of that, a minor hiccup... If glossary/_extensions/glossary/glossary.lua Lines 7 to 9 in da0f734
glossary/_extensions/glossary/glossary.lua Lines 27 to 30 in da0f734
So, you may wish to define: local options_id = "my-glossary" |
Hearty thanks @coatless ! Thanks for the lead on Glossario; I hadn't come across that before. I can see the benefits of the YAML reference file, but I'm not sure how that'd be implemented with a single pass document filter. It's possible the new cross-ref system would give some idea of how this could be implemented. My first quick and dirty design for making a glossary for my own use was something similar: an R script that parses the files in the project directory and creates a YAML file that's then read into using a custom listing with a new ejs template. I find "write a pre-render script in R" to be my go-to solution for lots of Quarto functionality, but it's been fun and instructive to think how to implement things using filters. That's a good point about the need for stricter entry requirements for any data structure that would permit more flexible formatting output. I plan to use the filter to build glossaries of key terms and functions for course website and also to pull together learning objectives spread across lecture notes and assignments. Both of these use cases could feature a dependency structure ("you need to learn this before you learn that") but I'd need to way to flag those dependencies on the way in so that they can be used to format the output (say, with a graph of learning outcomes). Glossario has some interesting functionality in this regard that I'll keep in mind as I tinker around with this filter. Thanks for your careful eye on the defaults - fixed! (#2 ) As an aside, reading through
And also made me feel a bit less bad about the hijinks needed to translate globs into a list of files. |
@andrewpbray I think you might be interested in the work Hadley did circa 2017 (?) with Stanford's Data Challenge Lab (DCL) on developing the curriculum dependency structure, c.f. https://dcl-docs.github.io/curriculum/ |
@andrewpbray Sorry for not getting back sooner. I unfortunately do not have much time to review, but @coatless did a fine job ;) |
@coatless @mcanouil
I've been inspired by your extensions for Quarto and was wondering if you wouldn't mind trying out this filter and providing any feedback around its design.
A few things that I've been thinking about:
Thank you!
The text was updated successfully, but these errors were encountered: