summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2020-10-16 16:23:58 -0400
committerShaun McCance <shaunm@redhat.com>2020-10-16 16:23:58 -0400
commit17229810f917547b0f978488e7ee732a9668e2f3 (patch)
tree108a5ce30eaa5b159922eeb8dd91fdcf1f836e1d
parent16a890af7de8fe55f7cafeb3200b47e6b41c3649 (diff)
downloadyelp-xsl-17229810f917547b0f978488e7ee732a9668e2f3.tar.gz
Adding a "lipsum" document to test style changes
-rw-r--r--.gitignore1
-rwxr-xr-xtest/lipsum/README26
-rw-r--r--test/lipsum/index.page27
-rw-r--r--test/lipsum/note1.page136
-rw-r--r--test/lipsum/task1.page34
5 files changed, 224 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 1ad147b0..f962399d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@ INSTALL
Makefile
!/test/**/Makefile
/test/colors/*.html
+/test/lipsum/html/
/test/syntax/*.html
/test/syntax/highlight.pack.js
Makefile.in
diff --git a/test/lipsum/README b/test/lipsum/README
new file mode 100755
index 00000000..e79538c7
--- /dev/null
+++ b/test/lipsum/README
@@ -0,0 +1,26 @@
+#!/bin/sh
+# This document is intended to test out different style changes on
+# Mallard documents. If you need to test things not in this document,
+# feel free to add stuff to this document. You can use lipsum.com
+# to generate text.
+#
+# To try things out, just make changes directly to the files in your
+# checkout of yelp-xsl. You don't have to build or install your copy
+# of yelp-xsl. Just build this preview document. To build this preview
+# document, just run this README. You do need yelp-tools installed
+# for the yelp-build command. It's in your distro's packages, and you
+# might have it installed already anyway.
+#
+# ./README
+
+yelp-build cache *.page
+if [ ! -d html ]; then mkdir html; fi
+cp ../../js/highlight.pack.js html/
+for page in *.page; do
+ xsltproc \
+ --stringparam mal.cache.file index.cache \
+ -o html/ \
+ ../../xslt/mallard/html/mal2html.xsl \
+ $page;
+done
+rm index.cache
diff --git a/test/lipsum/index.page b/test/lipsum/index.page
new file mode 100644
index 00000000..7a3b6f75
--- /dev/null
+++ b/test/lipsum/index.page
@@ -0,0 +1,27 @@
+<page xmlns="http://projectmallard.org/1.0/"
+ type="guide"
+ id="index">
+ <info>
+ <credit type="author copyright">
+ <name>Shaun McCance</name>
+ <email>shaunm@redhat.com</email>
+ <years>2020</years>
+ </credit>
+
+ <desc>This is the index page, whence all other pages link.</desc>
+ </info>
+
+ <title>Lorem ipsum</title>
+
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Morbi mauris ipsum, varius quis hendrerit eleifend, lobortis ac risus.
+ In congue ac nunc id luctus.
+ Nullam tincidunt, ligula id consequat ullamcorper, risus erat volutpat augue, ut sagittis dui erat vitae lacus.
+ Curabitur aliquam ut urna sed molestie. Integer non fringilla dui.
+ Donec at elit id tortor lacinia sollicitudin ut non ligula.
+ Vestibulum in pretium ligula. Cras dignissim nisl ligula, non semper diam lobortis sit amet.
+ Donec cursus sollicitudin velit, at vulputate enim.</p>
+
+ <links type="topic"/>
+
+</page>
diff --git a/test/lipsum/note1.page b/test/lipsum/note1.page
new file mode 100644
index 00000000..4aed9b47
--- /dev/null
+++ b/test/lipsum/note1.page
@@ -0,0 +1,136 @@
+<page xmlns="http://projectmallard.org/1.0/"
+ type="topic" style="concept"
+ id="note1">
+ <info>
+ <credit type="author copyright">
+ <name>Shaun McCance</name>
+ <email>shaunm@redhat.com</email>
+ <years>2020</years>
+ </credit>
+
+ <desc>Note some notes. Tip some tips. Warn some warnings.</desc>
+
+ <link type="guide" xref="index"/>
+ </info>
+
+ <title>Notes of a feather</title>
+
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Morbi mauris ipsum, varius quis hendrerit eleifend, lobortis ac risus.
+ In congue ac nunc id luctus.</p>
+
+ <note>
+ <p>Nullam tincidunt, ligula id consequat ullamcorper, risus erat volutpat.
+ Curabitur aliquam ut urna sed molestie. Integer non fringilla dui.</p>
+ </note>
+
+ <p>Ut viverra facilisis dui, et pharetra nibh volutpat et.
+ Nunc vitae ante ac nulla convallis tristique eu sit amet leo.
+ Cras et turpis eu erat fermentum porttitor.</p>
+
+ <note style="sidebar">
+ <p>Donec euismod, nibh quis consequat pellentesque, urna ligula sollicitudin tortor,
+ eu vestibulum libero enim eget metus. Maecenas in iaculis sem.
+ Aenean dignissim pretium metus, eget pharetra neque ultrices et.</p>
+
+ <p>Donec nec diam in eros eleifend pretium ut id dolor.
+ Quisque ut felis enim. Sed tincidunt risus eu feugiat semper.
+ Aliquam malesuada ligula ligula, ac consequat erat mattis efficitur.</p>
+ </note>
+
+
+ <note style="advanced">
+ <title>Advanced</title>
+ <p>Donec dictum tortor lorem, ut mattis est suscipit dapibus.
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Etiam feugiat mi semper mattis rhoncus. Sed laoreet convallis pharetra.
+ Cras semper nulla sit amet nulla dapibus finibus.</p>
+ </note>
+
+ <p>Vestibulum interdum ipsum a faucibus lacinia.
+ Mauris et sem ultrices, ornare velit et, rutrum nisi.</p>
+
+ <note style="bug">
+ <title>Bug</title>
+ <p>Proin bibendum neque nec egestas sodales.
+ Curabitur mattis sapien vitae justo pellentesque eleifend.
+ Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
+ Nulla commodo aliquam enim.</p>
+ </note>
+
+ <p>Cras sit amet ultrices ligula. Donec mattis tincidunt ex ac ullamcorper.
+ Etiam pharetra dignissim ligula, vel tincidunt nisi hendrerit ut.</p>
+
+ <note style="caution">
+ <title>Caution</title>
+ <p>Proin bibendum neque nec egestas sodales.
+ Curabitur mattis sapien vitae justo pellentesque eleifend.
+ Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
+ Nulla commodo aliquam enim.</p>
+ </note>
+
+ <p>Ut viverra facilisis dui, et pharetra nibh volutpat et.
+ Nunc vitae ante ac nulla convallis tristique eu sit amet leo.
+ Cras et turpis eu erat fermentum porttitor.</p>
+
+ <note style="danger">
+ <title>Danger</title>
+ <p>Maecenas posuere urna odio, at congue quam imperdiet a.
+ Suspendisse vulputate sed quam in luctus.
+ Fusce hendrerit scelerisque dui eget faucibus.
+ Vivamus at augue molestie enim lacinia finibus eget a metus.
+ Curabitur non urna neque.</p>
+ </note>
+
+ <p>Cras sit amet ultrices ligula. Donec mattis tincidunt ex ac ullamcorper.
+ Etiam pharetra dignissim ligula, vel tincidunt nisi hendrerit ut.</p>
+
+ <note style="important">
+ <title>Important</title>
+ <p>Etiam eleifend fringilla elementum. Vivamus ac dapibus dui.</p>
+
+ <p>Phasellus et sem eget libero tempus porta at vitae urna.
+ Vestibulum id mauris auctor, tempus risus efficitur, lobortis libero.
+ In dui est, ornare at suscipit non, aliquam eu nulla.</p>
+ </note>
+
+ <p>Pellentesque viverra tincidunt pretium.
+ Sed molestie dui metus, nec imperdiet nulla accumsan nec.
+ Ut consectetur tristique mauris, id rhoncus leo commodo eget.</p>
+
+ <note style="plain">
+ <title>Plain</title>
+ <p>Maecenas posuere urna odio, at congue quam imperdiet a.
+ Suspendisse vulputate sed quam in luctus.
+ Fusce hendrerit scelerisque dui eget faucibus.
+ Vivamus at augue molestie enim lacinia finibus eget a metus.
+ Curabitur non urna neque.</p>
+ </note>
+
+ <p>Ut viverra facilisis dui, et pharetra nibh volutpat et.
+ Nunc vitae ante ac nulla convallis tristique eu sit amet leo.
+ Cras et turpis eu erat fermentum porttitor.</p>
+
+ <note style="tip">
+ <title>Tip</title>
+ <p>Donec dictum tortor lorem, ut mattis est suscipit dapibus.
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Etiam feugiat mi semper mattis rhoncus. Sed laoreet convallis pharetra.
+ Cras semper nulla sit amet nulla dapibus finibus.</p>
+ </note>
+
+ <p>Vestibulum interdum ipsum a faucibus lacinia.
+ Mauris et sem ultrices, ornare velit et, rutrum nisi.</p>
+
+ <note style="warning">
+ <title>Warning</title>
+ <p>Proin bibendum neque nec egestas sodales.
+ Curabitur mattis sapien vitae justo pellentesque eleifend.
+ Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
+ Nulla commodo aliquam enim.</p>
+ </note>
+
+ <p>Ut viverra facilisis dui, et pharetra nibh volutpat et.
+ Nunc vitae ante ac nulla convallis tristique eu sit amet leo.
+ Cras et turpis eu erat fermentum porttitor.</p>
+</page>
diff --git a/test/lipsum/task1.page b/test/lipsum/task1.page
new file mode 100644
index 00000000..684bb07a
--- /dev/null
+++ b/test/lipsum/task1.page
@@ -0,0 +1,34 @@
+<page xmlns="http://projectmallard.org/1.0/"
+ type="topic" style="task"
+ id="task1">
+ <info>
+ <credit type="author copyright">
+ <name>Shaun McCance</name>
+ <email>shaunm@redhat.com</email>
+ <years>2020</years>
+ </credit>
+
+ <desc>Perform the first action with gusto.</desc>
+
+ <link type="guide" xref="index"/>
+ </info>
+
+ <title>The first task</title>
+
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Morbi mauris ipsum, varius quis hendrerit eleifend, lobortis ac risus.
+ In congue ac nunc id luctus.</p>
+
+ <steps>
+ <item><p>Nullam tincidunt, ligula id consequat ullamcorper, risus erat volutpat.</p></item>
+ <item><p>Curabitur aliquam ut urna sed molestie. Integer non fringilla dui.</p></item>
+ <item>
+ <p>Donec at elit id tortor lacinia sollicitudin ut non ligula.</p>
+ <list>
+ <item><p>Vestibulum in pretium ligula.</p></item>
+ <item><p>Cras dignissim nisl ligula, non semper diam lobortis sit amet.</p></item>
+ </list>
+ </item>
+ <item><p>Donec cursus sollicitudin velit, at vulputate enim.</p></item>
+ </steps>
+</page>