Package Information
- Last Updated
- Minimum Typst Version
- 0.14.0
- Authors
- Stephen Waits
- Categories
- model
- Dependencies
- @preview/valkyrie:0.2.2
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/glossy:0.9.22. Import in your Typst file
Add this to your .typ file:
#import "@preview/glossy:0.9.2": *Version History
Publish changes
Links
-
repository to publish to: https://github.com/typst/packages/tree/main/packages/preview/glossy
-
doc: https://github.com/typst/packages/blob/main/docs/README.md
-
doc: https://github.com/typst/packages/blob/main/docs/tips.md#what-to-commit-what-to-exclude
Example PR from glossy:
Prepare to publish
There is a branch submitted-upstream: It will no longer be used for publishing.
-
Make these commands run without error
just fmt # format all .typ files in place just check # fmt-check + full test suite -
Update changelog in
README.md -
Update version in
typst.tomljust bump patch # or minor -
Run full pre-submission checks
just pre-submit # clean → images → check -
Commit to
mainand create a version tag.git tag -a vx.y.z -m "x.y.z" git push && git push --tags -
Create a fork of https://github.com/typst/packages/
-
Copy package files into a local clone of the upstream registry.
cd ~/src/glossy TYPST_PACKAGES_REPO=~/typst-packages ver=$(grep '^version' "typst.toml" | cut -d'"' -f2) dest="$TYPST_PACKAGES_REPO/packages/preview/glossy/$ver" rm -r "$dest" mkdir -p "$dest" cp -r src "$dest/" cp -r lib.typ LICENSE README.md README_publish.md README_development.md typst.toml themeshots.png thumbnail.png "$dest/" -
On fork of https://github.com/typst/packages/
cd $TYPST_PACKAGES_REPO git switch -c submit_glossy git add packages/preview/glossy/$ver git commit -m "glossy:$ver" git push -u origin submit_glossy
Notes on just
Run just (or just help) to list all available recipes.