No description
Find a file
2026-04-27 17:07:40 -04:00
.forgejo/workflows test: print nix path of gitea runner 2026-04-23 14:33:16 -04:00
prepends add: figure plugin 2026-04-27 13:46:43 -04:00
src add: format_typst_compile_error 2026-04-27 17:07:40 -04:00
.gitignore add: compile functionality to lib 2026-04-20 11:44:01 -04:00
build.rs add: figure plugin 2026-04-27 13:46:43 -04:00
Cargo.lock add: plugin system 2026-04-27 12:22:19 -04:00
Cargo.toml add: plugin system 2026-04-27 12:22:19 -04:00
default.nix add: forgejo release action 2026-04-23 14:23:10 -04:00
README.md Add: README.md 2025-07-13 22:52:11 -04:00
shell.nix Initial commit 2025-07-13 22:34:51 -04:00

Typssg

This project interfaces with the Typst Rust library to modify the HTML render to be better suited for static site generation. Namely:

  • Giving each header a proper slug id (header "Hello, world!" gets id="hello-world")
  • Generating an outline.html which includes the document's header hierarchy as a list
  • Removing the entire html header, leaving only the inside of the body without the <body> tag so that it can be better inserted into a webserver html template.
  • Prepending some Typst redefinitions for better rendering

This project is not too generalized, as I made it for another project I'm working on. I intend to flesh out the features of this project in the future.