aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-10-29 22:57:51 +0700
committerShulhan <m.shulhan@gmail.com>2020-10-29 22:57:51 +0700
commitfe7ccc415712dd8fd9f66797bada69cee5120b48 (patch)
tree8bf1991b283822cf01bc8b7ca4e2fac1681d10d3 /testdata
parentb6f8128c320e9e197f322168ae4641b875ab4c2f (diff)
downloadasciidoctor-go-fe7ccc415712dd8fd9f66797bada69cee5120b48.tar.xz
all: add support to set ToC position to "left" or "right"
Diffstat (limited to 'testdata')
-rw-r--r--testdata/got.test.html60
-rw-r--r--testdata/test.adoc2
-rw-r--r--testdata/test.html60
3 files changed, 61 insertions, 61 deletions
diff --git a/testdata/got.test.html b/testdata/got.test.html
index 47cb37f..da1b394 100644
--- a/testdata/got.test.html
+++ b/testdata/got.test.html
@@ -11,7 +11,7 @@
</style>
</head>
-<body class="article">
+<body class="article toc2 toc-right">
<div id="header">
<h1><em>Example <code>Document</code> <strong>title</strong></em></h1>
<div class="details">
@@ -19,34 +19,7 @@
<span id="revnumber">version 1.1.1,</span>
<span id="revdate">18 July 2020</span>
</div>
-</div>
-<div id="content">
-<div id="preamble">
-<div class="sectionbody">
-<div class="paragraph">
-<p>This is preamble.
-:other metadata:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre>a</pre>
-</div>
-</div>
-<div class="paragraph">
-<p>==Section must have space</p>
-</div>
-<div class="literalblock">
-<div class="content">
-<pre>== Indented section</pre>
-</div>
-</div>
-<div class="literalblock">
-<div class="content">
-<pre>:indented-meta:</pre>
-</div>
-</div>
-</div>
-<div id="toc" class="toc">
+<div id="toc" class="toc2">
<div id="toctitle">Table of Contents</div>
<ul class="sectlevel1">
<li><a href="#_inline_formatting_on_section"><em>Inline <code>formatting</code> on <strong>section</strong></em></a></li>
@@ -112,6 +85,33 @@
</ul>
</div>
</div>
+<div id="content">
+<div id="preamble">
+<div class="sectionbody">
+<div class="paragraph">
+<p>This is preamble.
+:other metadata:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>a</pre>
+</div>
+</div>
+<div class="paragraph">
+<p>==Section must have space</p>
+</div>
+<div class="literalblock">
+<div class="content">
+<pre>== Indented section</pre>
+</div>
+</div>
+<div class="literalblock">
+<div class="content">
+<pre>:indented-meta:</pre>
+</div>
+</div>
+</div>
+</div>
<div class="sect1">
<h2 id="_inline_formatting_on_section"><em>Inline <code>formatting</code> on <strong>section</strong></em></h2>
<div class="sectionbody">
@@ -1782,7 +1782,7 @@ and then moves on.</pre>
<div id="footer">
<div id="footer-text">
Version 1.1.1<br>
-Last updated 2020-10-29 22:28:22 +0700
+Last updated 2020-10-29 22:55:34 +0700
</div>
</div>
</body>
diff --git a/testdata/test.adoc b/testdata/test.adoc
index 9b79149..f160fca 100644
--- a/testdata/test.adoc
+++ b/testdata/test.adoc
@@ -3,7 +3,7 @@
Author A, Author B
:unclosed metadata:
v1.1.1, 18 July 2020
-:toc: preamble
+:toc: right
:toclevels: 4
This is preamble.
diff --git a/testdata/test.html b/testdata/test.html
index cf13574..1ca894e 100644
--- a/testdata/test.html
+++ b/testdata/test.html
@@ -11,7 +11,7 @@
</style>
</head>
-<body class="article">
+<body class="article toc2 toc-right">
<div id="header">
<h1><em>Example <code>Document</code> <strong>title</strong></em></h1>
<div class="details">
@@ -19,34 +19,7 @@
<span id="revnumber">version 1.1.1,</span>
<span id="revdate">18 July 2020</span>
</div>
-</div>
-<div id="content">
-<div id="preamble">
-<div class="sectionbody">
-<div class="paragraph">
-<p>This is preamble.
-:other metadata:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre>a</pre>
-</div>
-</div>
-<div class="paragraph">
-<p>==Section must have space</p>
-</div>
-<div class="literalblock">
-<div class="content">
-<pre>== Indented section</pre>
-</div>
-</div>
-<div class="literalblock">
-<div class="content">
-<pre>:indented-meta:</pre>
-</div>
-</div>
-</div>
-<div id="toc" class="toc">
+<div id="toc" class="toc2">
<div id="toctitle">Table of Contents</div>
<ul class="sectlevel1">
<li><a href="#_inline_formatting_on_section"><em>Inline <code>formatting</code> on <strong>section</strong></em></a></li>
@@ -112,6 +85,33 @@
</ul>
</div>
</div>
+<div id="content">
+<div id="preamble">
+<div class="sectionbody">
+<div class="paragraph">
+<p>This is preamble.
+:other metadata:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>a</pre>
+</div>
+</div>
+<div class="paragraph">
+<p>==Section must have space</p>
+</div>
+<div class="literalblock">
+<div class="content">
+<pre>== Indented section</pre>
+</div>
+</div>
+<div class="literalblock">
+<div class="content">
+<pre>:indented-meta:</pre>
+</div>
+</div>
+</div>
+</div>
<div class="sect1">
<h2 id="_inline_formatting_on_section"><em>Inline <code>formatting</code> on <strong>section</strong></em></h2>
<div class="sectionbody">
@@ -1778,7 +1778,7 @@ and then moves on.</pre>
<div id="footer">
<div id="footer-text">
Version 1.1.1<br>
-Last updated 2020-10-29 22:28:21 +0700
+Last updated 2020-10-29 22:55:33 +0700
</div>
</div>
</body>