Commit Graph
193 Commits
Author SHA1 Message Date
swaits 2e9b81dff4 docs(glossy): Document modes vs modifiers
This distinction between 'mode' vs 'modifier' is already a bit visible
when looking at which modifiers can be combined and what output they
produce. This is just formalizing and categorizing that behaviour.

Also create a comprehensive reference table for all modes and modifiers.

This distinction is made in preparation for more modes & modifiers to
control the usage counter, while keeping everything understandable.
2025-10-26 16:00:22 -06:00
swaits 3b7a1404ea docs(glossy): Add format-term documentation 2025-10-26 16:00:22 -06:00
swaits b250c35f78 docs(glossy): Add Changelog to README 2025-10-26 16:00:22 -06:00
swaits 03e8e62c70 feat(glossy): Return array of pages in theme
Instead of returning an opaque context element with a fixed list of the
pages, return an array of context elements with each a page
(already unique!).
This is conceptually cleaner. Now it's the themes responsability to join
the array of unique pages however it wants. Most times, this will be a
`.join(", ")`, but could be e.g. `.first()` if the theme only wants to
show the page of the first occurance of this term.
Also update the documentation.

Breaking API change in the themes.
No visual differences (tests remain the same), but there are binary
differences.
2025-10-26 16:00:21 -06:00
swaits 68945132fb feat(glossy): Remove hide/hidden modifier
This modifier was not orthogonal with other modifiers (for example, it
could not be used together with :noindex)
Added documentation and modified test to reflect that @term[] with an
empty supplement has exactly the same result *and* is more orthogonal.

This partially reverts commit 5957432d5d.
2025-10-26 16:00:21 -06:00
swaits 392e8a8122 fix(glossy): Ensure ∅ supplement results in ∅ content
Ensure an empty supplement results in glossy returning empty content,
instead of an empty string. Done by returning #none if no article is
wanted.

When the value #none is returned for the article, this can neatly join
with the other values without a trace. In particular, when `term` is
empty content, this ensures that only #metadata remains, exactly like
in the 'hidden' case.

Effectively, now @term[] is identical to @term:hidden, because no empty
string is inserted. This can be seen in the updated test case, where the
spaces around the blank term are now collapsed to a single space by
Typst, instead of keeping two spaces like before.

A next commit will remove :hidden, since it's not orthogonal w.r.t.
other modifiers, while using a supplement is.
2025-10-26 16:00:21 -06:00
swaits 3e0d7a9812 chore(glossy): Improve code readability
The new function was already present, but unused.
2025-10-26 16:00:21 -06:00
BurningKarl ca57b15ccf fix(glossy): generate correct links to glossary entry 2025-10-26 16:00:21 -06:00
swaits 45112b434f chore(glossy): bump version to 0.8.0 2025-10-26 16:00:20 -06:00
swaits 8a2a2956bc chore: fix path in sync.sh script 2025-10-26 16:00:20 -06:00
swaits 68addf1204 Merge pull request #46 from BurningKarl/reduce-layout-attempts
Fix glossy: avoid duplicate key labels
2025-04-03 15:16:09 -07:00
BurningKarl 797fc68857 fix(glossy): avoid duplicate key labels 2025-04-03 15:16:09 -07:00
swaits 8e8723b8d1 docs(glossy): update README with newest features 2025-04-03 15:06:46 -07:00
swaits 666f26586e Merge pull request #43 from playonverbs/feature/glossy/show-all
Add show-all flag to glossary() and test-case
2025-04-03 14:49:32 -07:00
Niam Patel b899c875c9 Add show-all flag to glossary() and test-case 2025-04-03 08:46:11 -07:00
swaits 3264971bfe Merge pull request #44 from kaerbr/main
docs: fix setting of custom theme in glossary function
2025-04-03 08:39:37 -07:00
Kilian eb382d36cf docs: fix setting of custom theme in glossary function 2025-04-03 08:37:28 -07:00
swaits 4fc05c37a2 feat(glossy): use @term[supplement] to override term display
If you want to completely override how a term is displayed, you can pass
content in via the square brackets on the term's reference.

For example, a term @www which might normally display as "worldwide web
(WWW)" or something similar, could instead display as FOOBAR by using
@www[FOOBAR].
2025-04-03 08:37:28 -07:00
swaits 5957432d5d feat(glossy): adds hide/hidden modifier to suppress term display
There are cases where you might want a term referenced (ie from the
Glossary/Index), but don't want to display it. New modifiers
`hide`||`hidden` do exactly that.
2025-04-03 08:37:28 -07:00
swaits 966a89687a test(glossy): update all tests for Typst 0.13.0 2025-04-03 08:37:28 -07:00
swaits 2b8095d098 fix(glossy): default term-links to false
This parameter (to init-glossary()) enables/disables the terms in the
document linking to their place in the glossary. However, this adds a
crazy amount of extra queries which sometimes hinders Typst's ability to
converge on documents.
2025-04-03 08:37:28 -07:00
swaits c0077ca432 docs(glossy): fix theme parameter typos in README 2025-04-03 08:37:27 -07:00
swaits bc21afc193 chore: merge commit to consolidate upstream merges 2025-04-03 08:17:16 -07:00
swaits 193137fe9b test(codly-languages): update tests for next version codly-languages-0.1.8 2025-03-04 14:46:32 -08:00
swaits f044759876 Merge pull request #41 from Akito3110/codly-languages-0.1.8
codly-languages: normalized and added lots of icons
2025-03-04 10:21:39 -08:00
Akito ba13ac047e changed version to 0.1.8 2025-03-04 10:19:54 -08:00
Akito 431d065e59 adjusted README 2025-03-04 10:19:54 -08:00
Akito 7373005ef2 added view with all icons to test 2025-03-04 10:19:54 -08:00
Akito 006f630e10 normalized and added lots of icons 2025-03-04 10:19:54 -08:00
swaits 1f5e01c136 chore: merge commit to consolidate upstream merges 2025-03-04 10:18:25 -08:00
swaits 7117a1e60f chore(glossy): update minimum compiler version to 0.13.0 glossy-0.7.0 2025-02-19 15:48:45 -07:00
swaits 9be60483a5 Merge pull request #33 from eltos/patch-1
Draft: [Glossy] Typst 0.13 compatibility
2025-02-19 15:42:20 -07:00
swaits 71b91b429c chore(codly-languages): bump version to 0.1.7
- Adds Agda language icon thanks to [@cyberglot](https://github.com/cyberglot), [PR30](https://github.com/swaits/typst-collection/pull/30)
codly-languages-0.1.7
2025-02-19 15:33:25 -07:00
swaits f9dc4de8d0 chore(codly-languages): update docs/test to point to codly:1.2.0 2025-02-19 15:24:53 -07:00
swaits 2f257b0b7a test(codly-languages): update test with Agda language change 2025-02-19 15:24:53 -07:00
swaits 3c7ecca2d0 Merge pull request #30 from cyberglot/main
feat(codly-languages): add Agda
2025-02-19 15:21:48 -07:00
Philipp Niedermayer 214a956f42 Fix warning by updating dependency
Block may not occur inside of a paragraph and was ignored
2025-02-17 20:16:11 +01:00
Philipp Niedermayer eebb2a9d7e Update Dependency 2025-02-17 20:14:19 +01:00
Philipp Niedermayer c179c25fe9 Fix deprecated type and string comparison
Type to string comparisons were already deprecated since 0.8 and are removed in 0.13.
2025-02-13 19:03:40 +01:00
Philipp Niedermayer d90cdc1894 Update README.md 2025-02-13 18:43:38 +01:00
Philipp Niedermayer f0961eeb8b Increment version 2025-02-13 18:42:40 +01:00
Philipp Niedermayer 7d40e146fb Update dependency 2025-02-13 18:35:44 +01:00
april afa41697b7 fix: update Agda's license 2025-02-10 00:28:24 +00:00
april 127c2c2cc0 feat(codly-languages): add Agda 2025-02-08 10:48:20 +00:00
swaits 8f3ef0d1d0 chore: merge bookmarkes which got merged upstream 2025-02-06 15:47:05 -07:00
swaits 28d0951b85 chore(finely-crafted-cv): add excludes, update Copyright in LICENSE finely-crafted-cv-0.3.0 2025-01-26 13:22:28 -07:00
swaits ccd0e62ce2 chore(finely-crafte-cv): bump version to 0.3.0 2025-01-26 12:59:34 -07:00
swaits 081b821457 feat(finely-crafte-cv): make icon header user defineable 2025-01-26 12:56:09 -07:00
swaits 57c961dd18 test(finely-crafted-cv): copy the example into a test 2025-01-26 11:03:28 -07:00
swaits 4e4e93e096 chore(glossy): bump version to 0.6.0
Closes [#24](https://github.com/swaits/typst-collection/issues/24)

- Fixed academic theme (no longer hardcodes a font)
- New modifiers: noref/noindex - keeps terms out of glossary
- New behavior: short/long/both no longer count against "first use"
glossy-0.6.0
2025-01-25 16:10:14 -07:00