-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
ce3bc6c
commit bd0be91
Showing
14 changed files
with
239 additions
and
58 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,18 @@ | ||
import os | ||
import subprocess | ||
|
||
README_FILE_PATH = os.path.join("docs", "readme.typ") | ||
|
||
def main(): | ||
print("Compiling " + README_FILE_PATH, end="", flush=True) | ||
completed_process = subprocess.run(["typst", "compile", README_FILE_PATH, "--root", "."], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) | ||
if completed_process.returncode != 0: | ||
print(" ✗") | ||
print(completed_process.stderr) | ||
print(completed_process.stdout) | ||
exit(1) | ||
else: | ||
print(" ✓") | ||
|
||
if __name__ == "__main__": | ||
main() |
Binary file not shown.
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,41 @@ | ||
#import "@preview/tidy:0.1.0": parse-module, show-module | ||
|
||
#let lib-parsed = parse-module(read("../src/lib.typ")) | ||
#let reset-counter-parsed = parse-module(read("../src/reset-counter.typ")) | ||
#let selectors-parsed = parse-module(read("../src/selectors.typ")) | ||
#let styles-parsed = parse-module(read("../src/styles.typ")) | ||
#let numbered-parsed = parse-module(read("../src/numbered.typ")) | ||
#let theorem-parsed = parse-module(read("../src/theorem.typ")) | ||
|
||
= Documentation | ||
|
||
#show-module(lib-parsed) | ||
|
||
== Styles | ||
|
||
There are a few pre-defined `style-function`s and `theorem-numbering-function`s. | ||
|
||
#show-module(styles-parsed) | ||
|
||
== Selectors | ||
|
||
The selectors can be used in show-rules to | ||
customize the `theorem`s styling as well as | ||
with the `link-to` parameter. | ||
|
||
#show-module(selectors-parsed) | ||
|
||
== Resetting counters | ||
|
||
#show-module(reset-counter-parsed) | ||
|
||
== Theorem utilities | ||
|
||
The functions in the remaining two sections are only needed when defining custom style or | ||
theorem-numbering-functions. | ||
|
||
#show-module(theorem-parsed) | ||
|
||
== Numbered utilities | ||
|
||
#show-module(numbered-parsed) |
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
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
Oops, something went wrong.