added a few more things to test suite

This commit is contained in:
gabe 2022-01-09 21:56:47 -06:00
parent 3e1a15ac48
commit d611923e89
5 changed files with 97 additions and 8 deletions

View file

@ -448,10 +448,33 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
<div id="content">
<div id="test-pattern" class="imageblock">
<div class="content">
<a class="image" href="git.venberg.xyz/Gabe/adocStaticSiteGen"><img src="../../images/test_patern.jpg" alt="Stand By"></a>
<a class="image" href="git.venberg.xyz/Gabe/adocStaticSiteGen"><img src="../../images/test_pattern.svg" alt="Stand By"></a>
</div>
<div class="title">Figure 1. Technical Difficulties</div>
</div>
<div class="quoteblock">
<blockquote>
While the creative works from the 16th century can still be accessed and used by others, the data in some software programs from the 1990s is already inaccessible. Once a company that produces a certain product goes out of business, it has no simple way to uncover how its product encoded data. The code is thus lost, and the software is inaccessible. Knowledge has been destroyed.
</blockquote>
<div class="attribution">
&#8212; Lawrence Lessig<br>
<cite>May the Source Be With You</cite>
</div>
</div>
<div class="verseblock">
<pre class="content">Three Rings for the Elven-kings under the sky,
Seven for the dwarf-lords in their halls of stone,
Nine for Mortal Men doomed to die,
One for the Dark Lord on his dark throne,
In the Land of Mordor where the Shadows lie.
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them
In the Land of Mordor where the Shadows lie.</pre>
<div class="attribution">
&#8212; J.R.R. Tolkien<br>
<cite>The Fellowship of the Ring</cite>
</div>
</div>
<div class="paragraph">
<p><a href="https://git.venberg.xyz/Gabe/adocStaticSiteGen" class="bare">https://git.venberg.xyz/Gabe/adocStaticSiteGen</a></p>
</div>

View file

@ -449,7 +449,6 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
<div id="toctitle">Table of Contents</div>
<ul class="sectlevel1">
<li><a href="#_inline_formatting_tests">inline formatting tests</a></li>
<li><a href="#_list_tests">list tests</a></li>
<li><a href="#_link_tests">link tests</a></li>
<li><a href="#_tables_test">tables test</a></li>
<li><a href="#_included_section">included section</a>
@ -527,11 +526,15 @@ Sed eleifend, enim vitae ultrices auctor, dolor ipsum molestie dui, id dignissim
<div class="paragraph">
<p>&#8594; &#8658; &#8592; &#8656;</p>
</div>
<div class="paragraph">
<p>==colapsable block</p>
</div>
<details>
<summary class="title">Details</summary>
<div class="content">
<div class="paragraph">
<p>== list tests</p>
</div>
<div class="sect1">
<h2 id="_list_tests">list tests</h2>
<div class="sectionbody">
<div class="ulist">
<div class="title">unordered list test</div>
<ul>
@ -666,6 +669,17 @@ Sed eleifend, enim vitae ultrices auctor, dolor ipsum molestie dui, id dignissim
</li>
</ol>
</div>
</div>
</details>
<div class="paragraph">
<div class="title">math test</div>
<p>\(\frac{\frac{1}{x}+\frac{1}{y}}{y-z}\)</p>
</div>
<div class="stemblock">
<div class="content">
\$[[a,b\],[c,d\]\]((n),(k))\$
</div>
</div>
<div class="hdlist">
<div class="title">description list test</div>
<table>
@ -701,7 +715,7 @@ printers
<h2 id="_link_tests">link tests</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Lets go back to the <a href="#_list_tests">list tests</a> or to the <a href="#_tables_test">tables</a></p>
<p>Lets go back to the <a href="#list tests">[list tests]</a> or to the <a href="#_tables_test">tables</a></p>
</div>
<div class="paragraph">
<p><a href="https://git.venberg.xyz/Gabe/adocStaticSiteGen">gittea absolute link</a></p>
@ -893,5 +907,29 @@ The style can be any one of the admonition labels:</p>
<div id="footer-text">
</div>
</div>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
messageStyle: "none",
tex2jax: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
ignoreClass: "nostem|nolatexmath"
},
asciimath2jax: {
delimiters: [["\\$", "\\$"]],
ignoreClass: "nostem|noasciimath"
},
TeX: { equationNumbers: { autoNumber: "none" } }
})
MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {
if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains("stemblock")) {
data.math.root.display = "block"
}
return data
})
})
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_HTMLorMML"></script>
</body>
</html>

2
tests/test.sh Normal file
View file

@ -0,0 +1,2 @@
rm -r result
../ASCIIsite.py --output result --exclude-file globignore test

View file

@ -1,13 +1,26 @@
= relatively linked doc
Gabe Venberg
:imagesdir: ../../images/
:imagesdir: ../../images
:reproducible:
:giturl: git.venberg.xyz/Gabe/adocStaticSiteGen
[#test-pattern]
.Technical Difficulties
[link={giturl}]
image::test_patern.jpg[Stand By]
image::test_pattern.svg[Stand By]
[quote, Lawrence Lessig, May the Source Be With You]
While the creative works from the 16th century can still be accessed and used by others, the data in some software programs from the 1990s is already inaccessible. Once a company that produces a certain product goes out of business, it has no simple way to uncover how its product encoded data. The code is thus lost, and the software is inaccessible. Knowledge has been destroyed.
[verse, J.R.R. Tolkien, The Fellowship of the Ring]
Three Rings for the Elven-kings under the sky,
Seven for the dwarf-lords in their halls of stone,
Nine for Mortal Men doomed to die,
One for the Dark Lord on his dark throne,
In the Land of Mordor where the Shadows lie.
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them
In the Land of Mordor where the Shadows lie.
https://git.venberg.xyz/Gabe/adocStaticSiteGen

View file

@ -6,6 +6,7 @@ Gabe Venberg
:giturl: https://git.venberg.xyz/Gabe/adocStaticSiteGen
:toc:
:icons: font
:stem: latexmath
:includedir: include/
@ -48,6 +49,9 @@ _*italic bold test*_
-> => <- <=
==colapsable block
[%collapsible]
====
== list tests
.unordered list test
@ -85,6 +89,15 @@ _*italic bold test*_
** adipiscing
** elit
====
.math test
stem:[\frac{\frac{1}{x}+\frac{1}{y}}{y-z}]
[asciimath]
++++
[[a,b\],[c,d\]\]((n),(k))
++++
.description list test
[horizontal]
test:: to make sure software works correctly