Improve docs rendering
This commit is contained in:
parent
2caf429edb
commit
90e5ab4643
@ -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 && \
|
||||
:
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
6
docs/common.adoc.template
Normal file
6
docs/common.adoc.template
Normal file
@ -0,0 +1,6 @@
|
||||
:nofooter:
|
||||
:!webfonts:
|
||||
:source-highlighter: rouge
|
||||
:rouge-style: molokai
|
||||
:sectlinks:
|
||||
:mathematical-format: svg
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
>
|
||||
|
@ -1 +0,0 @@
|
||||
<iframe src="/docs/index.html" class="h-full w-full" />
|
Loading…
Reference in New Issue
Block a user