aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/html/header.adoc12
-rw-r--r--testdata/html/header.exp.html34
-rwxr-xr-xtestdata/html/to-html.sh5
3 files changed, 51 insertions, 0 deletions
diff --git a/testdata/html/header.adoc b/testdata/html/header.adoc
new file mode 100644
index 0000000..d807033
--- /dev/null
+++ b/testdata/html/header.adoc
@@ -0,0 +1,12 @@
+= Title
+John Doe <john@doe.tld>
+v1.0, 15 Dec 2022
+:description: Multiline \
+description \
+with backslash
+:keywords: multiline, \
+key, \
+words
+:last-update-label!:
+
+Document body.
diff --git a/testdata/html/header.exp.html b/testdata/html/header.exp.html
new file mode 100644
index 0000000..54ebd62
--- /dev/null
+++ b/testdata/html/header.exp.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="UTF-8">
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="generator" content="Asciidoctor 2.0.18">
+<meta name="description" content="Multiline description with backslash">
+<meta name="keywords" content="multiline, key, words">
+<meta name="author" content="John Doe">
+<title>Title</title>
+</head>
+<body class="article">
+<div id="header">
+<h1>Title</h1>
+<div class="details">
+<span id="author" class="author">John Doe</span><br>
+<span id="email" class="email"><a href="mailto:john@doe.tld">john@doe.tld</a></span><br>
+<span id="revnumber">version 1.0,</span>
+<span id="revdate">15 Dec 2022</span>
+</div>
+</div>
+<div id="content">
+<div class="paragraph">
+<p>Document body.</p>
+</div>
+</div>
+<div id="footer">
+<div id="footer-text">
+Version 1.0<br>
+</div>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/testdata/html/to-html.sh b/testdata/html/to-html.sh
new file mode 100755
index 0000000..7d45b15
--- /dev/null
+++ b/testdata/html/to-html.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+## Script to convert all adoc files to HTML without stylesheet.
+
+asciidoctor -a stylesheet! -o header.exp.html header.adoc