Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.15 KB

NOTES.md

File metadata and controls

40 lines (25 loc) · 1.15 KB

Building notes

How to to build locally and deploy to Typst app and Typst templates.

Image quantization

To reduce the size of images, which is nice for reducing the template size.

pngquant *.png --ext .png --force

Integration to the official repos

  • Create symlink to this repository from ~/.cache/typst/packages to git/packages/packages/preview. For this :

    ln -s ~/git/isc-hei-report ~/.cache/typst/packages/preview/isc-hei-report/0.1.5

    This prevents the download of packages and uses the local versions of this package.

  • For local testing and development, once the step above has been done, you can simply build from the template directory using typst watch report.typ

  • Additional testing can be conducted to see if the template instance works correctly with

    typst init @preview/isc-hei-report:0.1.5
  • Copy the content of this repos to the typst-template repository using

    cp * -R ~/git/packages/packages/preview/isc-hei-report/0.1.5/    
  • Do not forget to add a proper .gitignore to remove all PDFs

  • Lint for kebab-case only

  • Create PR as usual.