add some doc

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-03-18 14:38:04 +01:00
parent 3e18a85d26
commit bd489f4944
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -12,8 +12,26 @@ mkdir -p ~/.local/share/typst/packages/local/template-web/
ln -s $(pwd) ~/.local/share/typst/packages/local/template-web/0.0.1
```
## Usage
Then to use it in your typst file:
```typst
#import "@local/template-web:0.0.1": *
#set document(
title: "TeTyTe",
author: "Me!",
description: "Test of the TTT template",
)
#show: webpage.with(
"http://test.example.com",
)
#lorem(200)
```
See `test_template/main.typ` for an example.
Test with `typst watch --features html --format html main.typ`.