You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: github-pages/docs/cli/init.typ
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ your `book.typ` should at least provide a `book-meta`.
44
44
45
45
#sample-file("/tests/minimal/book.typ")
46
46
47
-
Your `template.typ` must import and respect the `get-page-width` and `target` variable from `@preview/shiroa:0.3.0` The two variables will be used by the tool for rendering responsive layout and multiple targets.
47
+
Your `template.typ` must import and respect the `get-page-width` and `target` variable from `@preview/shiroa:0.3.1` The two variables will be used by the tool for rendering responsive layout and multiple targets.
Copy file name to clipboardExpand all lines: github-pages/docs/format/theme.typ
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,10 @@ A target can be suffixed with a theme name to support specialized rendering for
33
33
34
34
== Respecting `x-target` in your template
35
35
36
-
To apply set rules for different targets, your `template.typ` can import and respect the `x-target` variable from `@preview/shiroa:0.3.0`. For example, to remove margins for web target, you can do:
36
+
To apply set rules for different targets, your `template.typ` can import and respect the `x-target` variable from `@preview/shiroa:0.3.1`. For example, to remove margins for web target, you can do:
37
37
38
38
```typ
39
-
#import "@preview/shiroa:0.3.0": x-target
39
+
#import "@preview/shiroa:0.3.1": x-target
40
40
41
41
#let project(body) = {
42
42
@@ -66,7 +66,7 @@ There are samples to create components that utilize metadata from `book.typ`:
66
66
Shiroa will pre-render multiple layouts by setting `sys.page-width` and `sys.x-target` to different values. A template must use `page-width` to adjust the page width to avoid the content being cut off.
@@ -80,7 +80,7 @@ Shiroa will pre-render multiple layouts by setting `sys.page-width` and `sys.x-t
80
80
We know shiroa will render a page with `sys.x-target` set to `html-wrapper` and `web` targets, so template must be aware of that. The html file (rendered with `html-wrapper` target) must contain a trampoline to load the svg file (rendered with `web` target). You can either create you owned trampoline or use the `paged-load-trampoline` function provided by shiroa:
0 commit comments