Skip to content

Commit

Permalink
[customize] add thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
SillyFreak committed Oct 26, 2024
1 parent 82231ac commit b1a7918
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ doc:
for f in $(find gallery -maxdepth 1 -name '*.typ'); do \
typst compile "$f"; \
done
typst compile --ppi 250 "gallery/thumbnail.typ" "thumbnail.png"

# run test suite
test *args:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ To add this package to your project, use this:
#id[Hello World]
```

![Example](./thumbnail.png)

## Usage

See the [manual](docs/manual.pdf) for details.
Empty file removed gallery/.gitkeep
Empty file.
Binary file added gallery/thumbnail.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions gallery/thumbnail.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#set document(date: none)
#set page(width: 10cm, height: auto, margin: 5mm)

#let package-meta = toml("/typst.toml").package

#align(center)[_demonstrate #package-meta.name here_]
Binary file added thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions typst.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exclude = [
"tests",
".typstignore",
"Justfile",
"thumbnail.png",
]

# [template]
Expand Down

0 comments on commit b1a7918

Please sign in to comment.