Improve docs rendering

This commit is contained in:
Austen Adler 2023-03-13 00:17:31 -04:00
parent 2caf429edb
commit 90e5ab4643
8 changed files with 14 additions and 24 deletions

View File

@ -17,7 +17,7 @@ docs-build:
COPY ./README.adoc docs/index.adoc
COPY --dir ./docs .
RUN asciidoctor -r asciidoctor-mathematical -a mathematical-format=svg -a "!webfonts" -- ./docs/*.adoc
RUN asciidoctor -r asciidoctor-mathematical -- ./docs/*.adoc
RUN \
find docs -type f -not -iname '*.html' -not -iname '*.png' -not -iname '*.svg' -delete && \
:

View File

@ -1,12 +1,7 @@
// echo ALGORITHM.adoc | entr sh -c "podman run --rm -it --network none -v "${PWD}:/documents/" asciidoctor/docker-asciidoctor asciidoctor -r asciidoctor-mathematical -a mathematical-format=svg ALGORITHM.adoc; printf 'Done ($(date -Isecond))\n'"
include::common.adoc.template[]
:toc:
:nofooter:
:!webfonts:
:source-highlighter: rouge
:rouge-style: molokai
// :stem:
:sectlinks:
= Algorithm

View File

@ -1,12 +1,8 @@
// echo DESIGN.adoc | entr sh -c "podman run --rm -it --network none -v "${PWD}:/documents/" asciidoctor/docker-asciidoctor asciidoctor -r asciidoctor-mathematical -a mathematical-format=svg DESIGN.adoc; printf 'Done ($(date -Isecond))\n'"
include::common.adoc.template[]
:toc:
:nofooter:
:!webfonts:
:source-highlighter: rouge
:rouge-style: molokai
:stem:
:sectlinks:
= Design

View File

@ -1,11 +1,8 @@
// echo WORDLIST.adoc | entr sh -c "podman run --rm -it --network none -v "${PWD}:/documents/" asciidoctor/docker-asciidoctor asciidoctor -r asciidoctor-mathematical -a mathematical-format=svg WORDLIST.adoc; printf 'Done ($(date -Isecond))\n'"
include::common.adoc.template[]
:toc:
:nofooter:
:!webfonts:
:source-highlighter: rouge
:rouge-style: molokai
:sectlinks:
:stem:
= Wordlist

View File

@ -0,0 +1,6 @@
:nofooter:
:!webfonts:
:source-highlighter: rouge
:rouge-style: molokai
:sectlinks:
:mathematical-format: svg

View File

@ -1,10 +1,6 @@
// echo WORDLIST.adoc | entr sh -c "podman run --rm -it --network none -v "${PWD}:/documents/" asciidoctor/docker-asciidoctor asciidoctor -r asciidoctor-mathematical -a mathematical-format=svg WORDLIST.adoc; printf 'Done ($(date -Isecond))\n'"
:nofooter:
:!webfonts:
// :source-highlighter: rouge
// :rouge-style: molokai
// :sectlinks:
include::common.adoc.template[]
= Index

View File

@ -30,7 +30,8 @@
<div class="text-sm">
<a href="/" class="block inline-block text-white hover:text-gray-500 mr-4 p-2">Home</a>
<a
href="/docs"
href="/docs/index.html"
rel="external"
class="block inline-block text-white hover:text-gray-500 mr-4 p-2"
data-sveltekit-reload>Docs</a
>

View File

@ -1 +0,0 @@
<iframe src="/docs/index.html" class="h-full w-full" />