-
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.
more bug fixes + add release workflow
- Loading branch information
Showing
15 changed files
with
75 additions
and
60 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,24 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo build --release | ||
- env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
tag="${GITHUB_REF#refs/tags/}" | ||
gh release create "$tag" \ | ||
--title="$tag" \ | ||
target/release/mdbook-typst-doc |
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,4 +1,4 @@ | ||
# Summary | ||
|
||
- [Main](./chapter_1.md) | ||
- [Type Definition](./type_definition.md) | ||
- [Type Definition](./type_definition.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
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 @@ | ||
# next |
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,3 +1,7 @@ | ||
# Custom {{#type custom}} | ||
# {{#!type custom}} | ||
|
||
Lorem ipsum... | ||
This works without the link. | ||
|
||
# {{#type custom}} | ||
|
||
This is how it breaks if you don't turn off the link. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,18 +1,26 @@ | ||
<div> | ||
<div class="parameter-details"> | ||
<div class="main-details"> | ||
<h4>{{name}}:</h4> | ||
{{#each types}} | ||
{{#unless @first}} | ||
or | ||
{{/unless}} | ||
{{this}} | ||
{{/each}} | ||
</div> | ||
{{#if default}} | ||
<span class="parameter-default">Default: {{default}}</span> | ||
{{/if}} | ||
</div> | ||
|
||
<p class="parameter-description">{{description}}</p> | ||
<div class="parameter"> | ||
<div class="parameter parameter-details"> | ||
<div class="parameter main-details"> | ||
<h4>{{name}}:</h4> | ||
{{#each types}} | ||
{{#unless @first}} | ||
or | ||
{{/unless}} | ||
|
||
{{this}} | ||
|
||
{{/each}} | ||
</div> | ||
{{#if default}} | ||
|
||
<span class="parameter parameter-default">Default:{{default}}</span> | ||
|
||
{{/if}} | ||
</div> | ||
|
||
<div class="parameter-description"> | ||
|
||
{{description}} | ||
|
||
</div> | ||
</div> |
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 +1 @@ | ||
<a href='{{link}}' class='typst type type-{{class}}'>{{name}}</a> | ||
<span class='typst type type-{{class}}'>{{#if use_link}}[{{name}}]({{link}}){{else}}{{name}}{{/if}}</span> |