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 ./README.adoc docs/index.adoc
COPY --dir ./docs . COPY --dir ./docs .
RUN asciidoctor -r asciidoctor-mathematical -a mathematical-format=svg -a "!webfonts" -- ./docs/*.adoc RUN asciidoctor -r asciidoctor-mathematical -- ./docs/*.adoc
RUN \ RUN \
find docs -type f -not -iname '*.html' -not -iname '*.png' -not -iname '*.svg' -delete && \ 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'" // 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: :toc:
:nofooter:
:!webfonts:
:source-highlighter: rouge
:rouge-style: molokai
// :stem:
:sectlinks:
= Algorithm = 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'" // 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: :toc:
:nofooter:
:!webfonts:
:source-highlighter: rouge
:rouge-style: molokai
:stem: :stem:
:sectlinks:
= Design = 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'" // 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: :toc:
:nofooter: :stem:
:!webfonts:
:source-highlighter: rouge
:rouge-style: molokai
:sectlinks:
= Wordlist = 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'" // 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: include::common.adoc.template[]
:!webfonts:
// :source-highlighter: rouge
// :rouge-style: molokai
// :sectlinks:
= Index = Index

View File

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

View File

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