diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-10-15 14:54:16 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-10-15 15:06:36 +0200 |
| commit | 94c2933bf91814a02de2bb9c72bd86f84f9ab937 (patch) | |
| tree | 2ec5d3771f51dacd9d5f0b5f2e28407f5fa214ac /docs/reference | |
| parent | d4c44512ecc415db7534219344c0d15a6e814c3e (diff) | |
Docs and changelog improvements (#5147)
Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com>
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Jeremie Knuesel <knuesel@gmail.com>
Co-authored-by: +merlan #flirora <2975203+bluebear94@users.noreply.github.com>
Co-authored-by: Anselm Schüler <mail@anselmschueler.com>
Diffstat (limited to 'docs/reference')
| -rw-r--r-- | docs/reference/groups.yml | 2 | ||||
| -rw-r--r-- | docs/reference/scripting.md | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/reference/groups.yml b/docs/reference/groups.yml index 3f2bef23..961d675d 100644 --- a/docs/reference/groups.yml +++ b/docs/reference/groups.yml @@ -128,7 +128,7 @@ These definitions are part of the `calc` module and not imported by default. In addition to the functions listed below, the `calc` module also defines - the constants `pi`, `tau`, `e`, `inf`, and `nan`. + the constants `pi`, `tau`, `e`, and `inf`. - name: sys title: System diff --git a/docs/reference/scripting.md b/docs/reference/scripting.md index 44f5200c..590bb6ec 100644 --- a/docs/reference/scripting.md +++ b/docs/reference/scripting.md @@ -302,7 +302,8 @@ ways: - **Import:** `{import "bar.typ"}` \ Evaluates the file at the path `bar.typ` and inserts the resulting [module] into the current scope as `bar` (filename without extension). You can use the - `as` keyword to rename the imported module: `{import "bar.typ" as baz}` + `as` keyword to rename the imported module: `{import "bar.typ" as baz}`. You + can import nested items using dot notation: `{import "bar.typ": baz.a}`. - **Import items:** `{import "bar.typ": a, b}` \ Evaluates the file at the path `bar.typ`, extracts the values of the variables |
