-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: improve param documentation (#98)
* docs: improve param documentation * docs: update docs * chore: fmt * dev: add module-level docs * dev: annotate resultant types --------- Co-authored-by: OrangeX4 <318483724@qq.com> Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com>
- Loading branch information
1 parent
c0ea6e5
commit 7f6dea9
Showing
20 changed files
with
848 additions
and
574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,43 @@ | ||
/// // #image("https://github.com/user-attachments/assets/58a91b14-ae1a-49e2-a3e7-5e3a148e2ba5") | ||
/// | ||
/// #link("https://github.com/touying-typ/touying")[Touying] (投影 in chinese, /tóuyǐng/, meaning projection) is a user-friendly, powerful and efficient package for creating presentation slides in Typst. Partial code is inherited from #link("https://github.com/andreasKroepelin/polylux")[Polylux]. Therefore, some concepts and APIs remain consistent with Polylux. | ||
/// | ||
/// Touying provides automatically injected global configurations, which is convenient for configuring themes. Besides, Touying does not rely on `counter` and `context` to implement `#pause`, resulting in better performance. | ||
/// | ||
/// If you like it, consider #link("https://github.com/touying-typ/touying")[giving a star on GitHub]. Touying is a community-driven project, feel free to suggest any ideas and contribute. | ||
/// | ||
/// == Example | ||
/// | ||
/// Split slides by headings #link("https://touying-typ.github.io/docs/sections")[document] | ||
/// | ||
/// #example(``` | ||
/// #import "@preview/touying:0.5.3": * | ||
/// #import themes.dewdrop: * | ||
/// | ||
/// >>> #let is-dark = sys.inputs.at("x-color-theme", default: none) == "dark"; | ||
/// >>> #let text-color = if is-dark { rgb("#c0caf5") } else { black }; | ||
/// >>> | ||
/// >>> #show: dewdrop-theme.with( | ||
/// >>> aspect-ratio: "16-9", | ||
/// >>> config-colors(neutral-lightest: none, neutral-darkest: text-color), | ||
/// >>> ) | ||
/// <<< #show: dewdrop-theme.with(aspect-ratio: "16-9") | ||
/// | ||
/// = Section | ||
/// | ||
/// == Subsection | ||
/// | ||
/// === Title | ||
/// | ||
/// Hello, Touying! | ||
/// ```) | ||
/// | ||
/// == Example | ||
/// | ||
/// `#pause` and `#meanwhile` animations #link("https://touying-typ.github.io/docs/dynamic/simple")[document] | ||
/// | ||
/// #example(``` | ||
/// ```) | ||
#import "src/exports.typ": * | ||
#import "themes/themes.typ" |
Oops, something went wrong.