diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml index 5b52d8c..8e462b6 100644 --- a/.github/workflows/mdbook.yml +++ b/.github/workflows/mdbook.yml @@ -36,6 +36,11 @@ jobs: run: | mkdir bin curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.28/mdbook-v0.4.28-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin + - name: Install mdbook-typst-highlight + run: | + mkdir typst-highlight + curl -sSL https://github.com/sitandr/mdbook-typst-highlight/releases/download/v0.1.0/mdbook-typst-highlight-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=typst-highlight + echo `pwd`/typst-highlight >> $GITHUB_PATH - name: Setup Pages id: pages uses: actions/configure-pages@v3 diff --git a/book/book.toml b/book/book.toml index d38bcce..0942458 100644 --- a/book/book.toml +++ b/book/book.toml @@ -11,3 +11,6 @@ site-url = "/polylux/book/" [output.html.code.hidelines] typ = "~" +[preprocessor.typst-highlight] +#disable_inline = true +#highlight_without_lang = true \ No newline at end of file