From bd489f49442ec7396c933ffa8dad3f02a6d054df Mon Sep 17 00:00:00 2001 From: Jean-Marie 'Histausse' Mineau Date: Wed, 18 Mar 2026 14:38:04 +0100 Subject: [PATCH] add some doc --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 8df80c4..137b9ec 100644 --- a/README.md +++ b/README.md @@ -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`.