add some doc
This commit is contained in:
parent
3e18a85d26
commit
bd489f4944
1 changed files with 18 additions and 0 deletions
18
README.md
18
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
|
ln -s $(pwd) ~/.local/share/typst/packages/local/template-web/0.0.1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
Then to use it in your typst file:
|
Then to use it in your typst file:
|
||||||
|
|
||||||
```typst
|
```typst
|
||||||
#import "@local/template-web:0.0.1": *
|
#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`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue