-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
152 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Codly | ||
|
||
When using Codly, we should initialize it using the `config-common(preamble: {..})` method. | ||
|
||
```typst | ||
#import "@preview/touying:0.5.2": * | ||
#import themes.simple: * | ||
#import "@preview/codly:1.0.0": * | ||
#show: codly-init.with() | ||
#show: simple-theme.with( | ||
aspect-ratio: "16-9", | ||
config-common(preamble: { | ||
codly(languages: ( | ||
rust: ( | ||
name: "Rust", | ||
icon: text(font: "tabler-icons", "\u{fa53}"), | ||
color: rgb("#CE412B"), | ||
), | ||
)) | ||
}), | ||
) | ||
== First slide | ||
#raw(lang: "rust", block: true, | ||
`pub fn main() { | ||
println!("Hello, world!"); | ||
}`.text) | ||
``` | ||
|
||
![image](https://github.com/touying-typ/touying/assets/34951714/0be2fbaf-cc03-4776-932f-259503d5e23a) |
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,5 +1,5 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_position: 6 | ||
--- | ||
|
||
# Ctheorems | ||
|
37 changes: 37 additions & 0 deletions
37
i18n/zh/docusaurus-plugin-content-docs/current/integration/codly.md
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Codly | ||
|
||
当我们使用 Codly 时,我们可以通过 `config-common(preamble: {..})` 初始化。 | ||
|
||
```typst | ||
#import "@preview/touying:0.5.2": * | ||
#import themes.simple: * | ||
#import "@preview/codly:1.0.0": * | ||
#show: codly-init.with() | ||
#show: simple-theme.with( | ||
aspect-ratio: "16-9", | ||
config-common(preamble: { | ||
codly(languages: ( | ||
rust: ( | ||
name: "Rust", | ||
icon: text(font: "tabler-icons", "\u{fa53}"), | ||
color: rgb("#CE412B"), | ||
), | ||
)) | ||
}), | ||
) | ||
== First slide | ||
#raw(lang: "rust", block: true, | ||
`pub fn main() { | ||
println!("Hello, world!"); | ||
}`.text) | ||
``` | ||
|
||
![image](https://github.com/touying-typ/touying/assets/34951714/0be2fbaf-cc03-4776-932f-259503d5e23a) |
2 changes: 1 addition & 1 deletion
2
i18n/zh/docusaurus-plugin-content-docs/current/integration/ctheorems.md
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,5 +1,5 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_position: 6 | ||
--- | ||
|
||
# Ctheorems | ||
|
37 changes: 37 additions & 0 deletions
37
i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/integration/codly.md
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Codly | ||
|
||
当我们使用 Codly 时,我们可以通过 `config-common(preamble: {..})` 初始化。 | ||
|
||
```typst | ||
#import "@preview/touying:0.5.2": * | ||
#import themes.simple: * | ||
#import "@preview/codly:1.0.0": * | ||
#show: codly-init.with() | ||
#show: simple-theme.with( | ||
aspect-ratio: "16-9", | ||
config-common(preamble: { | ||
codly(languages: ( | ||
rust: ( | ||
name: "Rust", | ||
icon: text(font: "tabler-icons", "\u{fa53}"), | ||
color: rgb("#CE412B"), | ||
), | ||
)) | ||
}), | ||
) | ||
== First slide | ||
#raw(lang: "rust", block: true, | ||
`pub fn main() { | ||
println!("Hello, world!"); | ||
}`.text) | ||
``` | ||
|
||
![image](https://github.com/touying-typ/touying/assets/34951714/0be2fbaf-cc03-4776-932f-259503d5e23a) |
2 changes: 1 addition & 1 deletion
2
i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/integration/ctheorems.md
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,5 +1,5 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_position: 6 | ||
--- | ||
|
||
# Ctheorems | ||
|
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Codly | ||
|
||
When using Codly, we should initialize it using the `config-common(preamble: {..})` method. | ||
|
||
```typst | ||
#import "@preview/touying:0.5.2": * | ||
#import themes.simple: * | ||
#import "@preview/codly:1.0.0": * | ||
#show: codly-init.with() | ||
#show: simple-theme.with( | ||
aspect-ratio: "16-9", | ||
config-common(preamble: { | ||
codly(languages: ( | ||
rust: ( | ||
name: "Rust", | ||
icon: text(font: "tabler-icons", "\u{fa53}"), | ||
color: rgb("#CE412B"), | ||
), | ||
)) | ||
}), | ||
) | ||
== First slide | ||
#raw(lang: "rust", block: true, | ||
`pub fn main() { | ||
println!("Hello, world!"); | ||
}`.text) | ||
``` | ||
|
||
![image](https://github.com/touying-typ/touying/assets/34951714/0be2fbaf-cc03-4776-932f-259503d5e23a) |
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,5 +1,5 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_position: 6 | ||
--- | ||
|
||
# Ctheorems | ||
|