summaryrefslogtreecommitdiff
path: root/t/data/spin
diff options
context:
space:
mode:
Diffstat (limited to 't/data/spin')
-rw-r--r--t/data/spin/input/software/docknot/api/app-docknot.rpod1
-rw-r--r--t/data/spin/input/software/docknot/api/app-docknot.spin2
-rw-r--r--t/data/spin/markdown/input/.sitemap4
-rw-r--r--t/data/spin/markdown/input/other.spin3
-rw-r--r--t/data/spin/markdown/input/test.spin3
-rw-r--r--t/data/spin/markdown/output/other.html42
-rw-r--r--t/data/spin/markdown/output/test.html42
-rw-r--r--t/data/spin/markdown/test.md9
-rw-r--r--t/data/spin/output/software/docknot/api/app-docknot.html15
-rw-r--r--t/data/spin/output/software/docknot/index.html1
-rw-r--r--t/data/spin/output/software/index.html1
-rw-r--r--t/data/spin/output/usefor/index.html1
12 files changed, 116 insertions, 8 deletions
diff --git a/t/data/spin/input/software/docknot/api/app-docknot.rpod b/t/data/spin/input/software/docknot/api/app-docknot.rpod
deleted file mode 100644
index 5075ec0..0000000
--- a/t/data/spin/input/software/docknot/api/app-docknot.rpod
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../../../lib/App/DocKnot.pm
diff --git a/t/data/spin/input/software/docknot/api/app-docknot.spin b/t/data/spin/input/software/docknot/api/app-docknot.spin
new file mode 100644
index 0000000..a3ea9e8
--- /dev/null
+++ b/t/data/spin/input/software/docknot/api/app-docknot.spin
@@ -0,0 +1,2 @@
+format: pod
+path: ../../../../../../../lib/App/DocKnot.pm
diff --git a/t/data/spin/markdown/input/.sitemap b/t/data/spin/markdown/input/.sitemap
new file mode 100644
index 0000000..8c523a1
--- /dev/null
+++ b/t/data/spin/markdown/input/.sitemap
@@ -0,0 +1,4 @@
+/: Test Root
+ /foo.html: Some document
+ /other.html: Other test Markdown
+ /test.html: Test Markdown
diff --git a/t/data/spin/markdown/input/other.spin b/t/data/spin/markdown/input/other.spin
new file mode 100644
index 0000000..000cefe
--- /dev/null
+++ b/t/data/spin/markdown/input/other.spin
@@ -0,0 +1,3 @@
+format: markdown
+path: ../test.md
+title: Other test Markdown
diff --git a/t/data/spin/markdown/input/test.spin b/t/data/spin/markdown/input/test.spin
new file mode 100644
index 0000000..7927ae8
--- /dev/null
+++ b/t/data/spin/markdown/input/test.spin
@@ -0,0 +1,3 @@
+format: markdown
+path: ../test.md
+style: markdown.css
diff --git a/t/data/spin/markdown/output/other.html b/t/data/spin/markdown/output/other.html
new file mode 100644
index 0000000..8948c0b
--- /dev/null
+++ b/t/data/spin/markdown/output/other.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Other test Markdown</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link rel="previous" href="foo.html" title="Some document" />
+ <link rel="next" href="test.html" title="Test Markdown" />
+ <link rel="up" href="./" title="Test Root" />
+ <link rel="top" href="./" />
+</head>
+
+<body>
+<table class="navbar"><tr>
+ <td class="navleft">&lt;&nbsp;<a href="foo.html">Some document</a></td>
+ <td>
+ <a href="./">Test Root</a>
+ </td>
+ <td class="navright"><a href="test.html">Test Markdown</a>&nbsp;&gt;</td>
+</tr></table>
+
+<h1 id="test-markdown">Test Markdown</h1>
+<p>This is a test Markdown document.</p>
+<h2 id="another-header">Another header</h2>
+<p>Another section.</p>
+<p>Some Üniçodé¡</p>
+
+<table class="navbar"><tr>
+ <td class="navleft">&lt;&nbsp;<a href="foo.html">Some document</a></td>
+ <td>
+ <a href="./">Test Root</a>
+ </td>
+ <td class="navright"><a href="test.html">Test Markdown</a>&nbsp;&gt;</td>
+</tr></table>
+
+<address>
+ Last <a href="https://www.eyrie.org/~eagle/software/web/">spun</a>
+ %DATE% from thread modified %DATE%
+</body>
+</html>
diff --git a/t/data/spin/markdown/output/test.html b/t/data/spin/markdown/output/test.html
new file mode 100644
index 0000000..2e9178d
--- /dev/null
+++ b/t/data/spin/markdown/output/test.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Test Markdown</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link rel="stylesheet" href="/~eagle/styles/markdown.css" type="text/css" />
+ <link rel="previous" href="other.html" title="Other test Markdown" />
+ <link rel="up" href="./" title="Test Root" />
+ <link rel="top" href="./" />
+</head>
+
+<body>
+<table class="navbar"><tr>
+ <td class="navleft">&lt;&nbsp;<a href="other.html">Other test Markdown</a></td>
+ <td>
+ <a href="./">Test Root</a>
+ </td>
+ <td class="navright"></td>
+</tr></table>
+
+<h1 id="test-markdown">Test Markdown</h1>
+<p>This is a test Markdown document.</p>
+<h2 id="another-header">Another header</h2>
+<p>Another section.</p>
+<p>Some Üniçodé¡</p>
+
+<table class="navbar"><tr>
+ <td class="navleft">&lt;&nbsp;<a href="other.html">Other test Markdown</a></td>
+ <td>
+ <a href="./">Test Root</a>
+ </td>
+ <td class="navright"></td>
+</tr></table>
+
+<address>
+ Last <a href="https://www.eyrie.org/~eagle/software/web/">spun</a>
+ %DATE% from thread modified %DATE%
+</body>
+</html>
diff --git a/t/data/spin/markdown/test.md b/t/data/spin/markdown/test.md
new file mode 100644
index 0000000..4d00f0f
--- /dev/null
+++ b/t/data/spin/markdown/test.md
@@ -0,0 +1,9 @@
+# Test Markdown
+
+This is a test Markdown document.
+
+## Another header
+
+Another section.
+
+Some Üniçodé¡
diff --git a/t/data/spin/output/software/docknot/api/app-docknot.html b/t/data/spin/output/software/docknot/api/app-docknot.html
index 5076e73..85f242f 100644
--- a/t/data/spin/output/software/docknot/api/app-docknot.html
+++ b/t/data/spin/output/software/docknot/api/app-docknot.html
@@ -14,7 +14,7 @@
<link rel="top" href="../../../" />
</head>
-<!-- Spun by DocKnot %VERSION% on %DATE% -->
+<!-- Spun from DocKnot.pm by DocKnot %VERSION% on %DATE% -->
<body>
<table class="navbar"><tr>
@@ -27,7 +27,6 @@
<td class="navright"><a href="app-docknot-command.html">App::DocKnot::Command</a>&nbsp;&gt;</td>
</tr></table>
-
<h1>App::DocKnot</h1>
<p class="subhead">(Documentation and software release management)</p>
@@ -45,8 +44,8 @@
<h2 id="S1"><a name="S1">REQUIREMENTS</a></h2>
<p>
-Perl 5.24 or later and the modules File::BaseDir and File::ShareDir, both of
-which are available from CPAN.
+Perl 5.24 or later and the modules File::BaseDir, File::ShareDir, Kwalify, and
+YAML::XS, all of which are available from CPAN.
</p>
<h2 id="S2"><a name="S2">DESCRIPTION</a></h2>
@@ -77,6 +76,14 @@ overridden by the user via files in <i class="file">$HOME/.config/docknot</i> or
<i class="file">/etc/xdg/docknot</i> (or whatever $XDG_CONFIG_HOME and $XDG_CONFIG_DIRS are set
to). Raises a text exception if the desired file could not be located.
</p></dd>
+
+<dt>load_yaml_file(PATH, SCHEMA)</dt>
+<dd><p>
+Load a YAML file with schema checking. PATH is the path to the file.
+SCHEMA is the name of the schema, which will be loaded from the <i class="file">schema</i>
+directory using appdata_path(). See the description of that method for the
+paths that are searched.
+</p></dd>
</dl>
<h2 id="S4"><a name="S4">AUTHOR</a></h2>
diff --git a/t/data/spin/output/software/docknot/index.html b/t/data/spin/output/software/docknot/index.html
index aed23d8..b0352b3 100644
--- a/t/data/spin/output/software/docknot/index.html
+++ b/t/data/spin/output/software/docknot/index.html
@@ -26,7 +26,6 @@
<td class="navright"><a href="../rra-c-util/">rra-c-util&gt;</a>&nbsp;&gt;</td>
</tr></table>
-
<h1>DocKnot</h1>
<div class="sidebar">
diff --git a/t/data/spin/output/software/index.html b/t/data/spin/output/software/index.html
index 630b839..00a8f2d 100644
--- a/t/data/spin/output/software/index.html
+++ b/t/data/spin/output/software/index.html
@@ -26,7 +26,6 @@
<td class="navright"><a href="../faqs/">FAQs and Documentation</a>&nbsp;&gt;</td>
</tr></table>
-
<h1>Software</h1>
<p class="sections">
diff --git a/t/data/spin/output/usefor/index.html b/t/data/spin/output/usefor/index.html
index 216f66e..964c216 100644
--- a/t/data/spin/output/usefor/index.html
+++ b/t/data/spin/output/usefor/index.html
@@ -25,7 +25,6 @@
<td class="navright"><a href="../nntp/">NNTP</a>&nbsp;&gt;</td>
</tr></table>
-
<h1>The Usenet Article Format and Protocols</h1>
<blockquote class="quote"><p class="short">