-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typst): cross link support (#41)
* feat: cross link support * dev: encode label into url safe string * docs: use cross links
- Loading branch information
1 parent
1943685
commit c3efa80
Showing
8 changed files
with
96 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// https://github.com/Jollywatt/arrow-diagrams |
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,22 +1,22 @@ | ||
#import "/github-pages/docs/book.typ": book-page | ||
#import "/github-pages/docs/book.typ": book-page, cross-link | ||
|
||
#show: book-page.with(title: "Command Line Tool") | ||
|
||
= Command Line Tool | ||
|
||
// todo: cross link | ||
The `typst-book` command-line tool is used to create and build books. | ||
After you have #link("https://myriad-dreamin.github.io/typst-book/guide/installation.html")[installed] `typst-book`, you can run the `typst-book help` command in your terminal to view the available commands. | ||
After you have #cross-link("/guide/installation.typ")[installed] `typst-book`, you can run the `typst-book help` command in your terminal to view the available commands. | ||
|
||
This following sections provide in-depth information on the different commands available. | ||
|
||
// todo: cross link | ||
- #link("https://myriad-dreamin.github.io/typst-book/cli/init.html")[`typst-book init <directory>`] — Creates a new book with minimal boilerplate to start with. | ||
- #link("https://myriad-dreamin.github.io/typst-book/cli/build.html")[`typst-book build`] — Renders the book. | ||
- #link("https://myriad-dreamin.github.io/typst-book/cli/serve.html")[`typst-book serve`] — Runs a web server to view the book, and rebuilds on changes. | ||
- #link("https://myriad-dreamin.github.io/typst-book/cli/clean.html")[`typst-book clean`] — Deletes the rendered output. | ||
- #link("https://myriad-dreamin.github.io/typst-book/cli/completions.html")[`typst-book completions`] — Support for shell auto-completion. | ||
- #cross-link("/cli/init.typ")[`typst-book init <directory>`] — Creates a new book with minimal boilerplate to start with. | ||
- #cross-link("/cli/build.typ")[`typst-book build`] — Renders the book. | ||
- #cross-link("/cli/serve.typ")[`typst-book serve`] — Runs a web server to view the book, and rebuilds on changes. | ||
- #cross-link("/cli/clean.typ")[`typst-book clean`] — Deletes the rendered output. | ||
- #cross-link("/cli/completions.typ")[`typst-book completions`] — Support for shell auto-completion. | ||
|
||
= Note about the missing `watch` command | ||
|
||
We suggest you to use #link("https://github.com/Enter-tainer/typst-preview")[Typst Preview plugin] for preview feature. For more details, please see #link("https://myriad-dreamin.github.io/typst-book/guide/get-started.html")[Get Started] chapter. | ||
We suggest you to use #link("https://github.com/Enter-tainer/typst-preview")[Typst Preview plugin] for preview feature. For more details, please see #cross-link("/guide/get-started.typ")[Get Started] chapter. |
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