summaryrefslogtreecommitdiffstats
path: root/test/books
diff options
context:
space:
mode:
Diffstat (limited to 'test/books')
-rw-r--r--test/books/basic/README.md3
-rw-r--r--test/books/basic/SUMMARY.md1
-rw-r--r--test/books/config-js/README.md1
-rw-r--r--test/books/config-js/SUMMARY.md1
-rw-r--r--test/books/config-js/book.js3
-rw-r--r--test/books/config-json/README.md1
-rw-r--r--test/books/config-json/SUMMARY.md1
-rw-r--r--test/books/config-json/book.json3
-rw-r--r--test/books/conrefs/README.md10
-rw-r--r--test/books/conrefs/SUMMARY.md1
-rw-r--r--test/books/conrefs/hello.md1
-rw-r--r--test/books/glossary/GLOSSARY.md9
-rw-r--r--test/books/glossary/README.md8
-rw-r--r--test/books/glossary/SUMMARY.md3
-rw-r--r--test/books/glossary/folder/PAGE.md3
-rw-r--r--test/books/images/README.md18
-rw-r--r--test/books/images/SUMMARY.md3
-rw-r--r--test/books/images/folder/PAGE.md3
-rw-r--r--test/books/images/test.svg11
-rw-r--r--test/books/languages/LANGS.md4
-rw-r--r--test/books/languages/README.md1
-rw-r--r--test/books/languages/en/README.md1
-rw-r--r--test/books/languages/en/SUMMARY.md1
-rw-r--r--test/books/languages/fr/README.md1
-rw-r--r--test/books/languages/fr/SUMMARY.md1
-rw-r--r--test/books/summary/PAGE1.md1
-rw-r--r--test/books/summary/README.md1
-rw-r--r--test/books/summary/SUMMARY.md5
-rw-r--r--test/books/summary/folder/PAGE2.md1
29 files changed, 101 insertions, 0 deletions
diff --git a/test/books/basic/README.md b/test/books/basic/README.md
new file mode 100644
index 0000000..09ade40
--- /dev/null
+++ b/test/books/basic/README.md
@@ -0,0 +1,3 @@
+# Readme
+
+Default description for the book.
diff --git a/test/books/basic/SUMMARY.md b/test/books/basic/SUMMARY.md
new file mode 100644
index 0000000..ac9323c
--- /dev/null
+++ b/test/books/basic/SUMMARY.md
@@ -0,0 +1 @@
+# Summary
diff --git a/test/books/config-js/README.md b/test/books/config-js/README.md
new file mode 100644
index 0000000..f395431
--- /dev/null
+++ b/test/books/config-js/README.md
@@ -0,0 +1 @@
+# Readme
diff --git a/test/books/config-js/SUMMARY.md b/test/books/config-js/SUMMARY.md
new file mode 100644
index 0000000..ac9323c
--- /dev/null
+++ b/test/books/config-js/SUMMARY.md
@@ -0,0 +1 @@
+# Summary
diff --git a/test/books/config-js/book.js b/test/books/config-js/book.js
new file mode 100644
index 0000000..8731343
--- /dev/null
+++ b/test/books/config-js/book.js
@@ -0,0 +1,3 @@
+module.exports = {
+ "title": "js-config"
+};
diff --git a/test/books/config-json/README.md b/test/books/config-json/README.md
new file mode 100644
index 0000000..f395431
--- /dev/null
+++ b/test/books/config-json/README.md
@@ -0,0 +1 @@
+# Readme
diff --git a/test/books/config-json/SUMMARY.md b/test/books/config-json/SUMMARY.md
new file mode 100644
index 0000000..ac9323c
--- /dev/null
+++ b/test/books/config-json/SUMMARY.md
@@ -0,0 +1 @@
+# Summary
diff --git a/test/books/config-json/book.json b/test/books/config-json/book.json
new file mode 100644
index 0000000..eda10bb
--- /dev/null
+++ b/test/books/config-json/book.json
@@ -0,0 +1,3 @@
+{
+ "title": "json-config"
+}
diff --git a/test/books/conrefs/README.md b/test/books/conrefs/README.md
new file mode 100644
index 0000000..7f56eed
--- /dev/null
+++ b/test/books/conrefs/README.md
@@ -0,0 +1,10 @@
+# Readme
+
+### Relative
+
+<p id="t1">{% include "./hello.md" %}</p>
+
+### Git
+
+<p id="t2">{% include "git+https://gist.github.com/69ea4542e4c8967d2fa7.git/test.md" %}</p>
+<p id="t3">{% include "git+https://gist.github.com/69ea4542e4c8967d2fa7.git/test2.md" %}</p>
diff --git a/test/books/conrefs/SUMMARY.md b/test/books/conrefs/SUMMARY.md
new file mode 100644
index 0000000..ac9323c
--- /dev/null
+++ b/test/books/conrefs/SUMMARY.md
@@ -0,0 +1 @@
+# Summary
diff --git a/test/books/conrefs/hello.md b/test/books/conrefs/hello.md
new file mode 100644
index 0000000..557db03
--- /dev/null
+++ b/test/books/conrefs/hello.md
@@ -0,0 +1 @@
+Hello World
diff --git a/test/books/glossary/GLOSSARY.md b/test/books/glossary/GLOSSARY.md
new file mode 100644
index 0000000..fa706f1
--- /dev/null
+++ b/test/books/glossary/GLOSSARY.md
@@ -0,0 +1,9 @@
+# Glossary
+
+## test
+
+Just a simple and easy to understand test.
+
+## hakunamatata
+
+This word is not present in the content.
diff --git a/test/books/glossary/README.md b/test/books/glossary/README.md
new file mode 100644
index 0000000..50e8d4c
--- /dev/null
+++ b/test/books/glossary/README.md
@@ -0,0 +1,8 @@
+# Readme
+
+The word test should be replaced by a glossary link.
+
+```
+But the word test should not be replaced in code blocks
+```
+
diff --git a/test/books/glossary/SUMMARY.md b/test/books/glossary/SUMMARY.md
new file mode 100644
index 0000000..deaea20
--- /dev/null
+++ b/test/books/glossary/SUMMARY.md
@@ -0,0 +1,3 @@
+# Summary
+
+* [Page](folder/PAGE.md)
diff --git a/test/books/glossary/folder/PAGE.md b/test/books/glossary/folder/PAGE.md
new file mode 100644
index 0000000..33b17c2
--- /dev/null
+++ b/test/books/glossary/folder/PAGE.md
@@ -0,0 +1,3 @@
+# Page
+
+Just a page in a sub-directory to test relative link to glossary.
diff --git a/test/books/images/README.md b/test/books/images/README.md
new file mode 100644
index 0000000..484f410
--- /dev/null
+++ b/test/books/images/README.md
@@ -0,0 +1,18 @@
+# Tests for Images
+
+# SVG relative image
+
+
+### Convert SVG to PNG
+![test.svg](test.svg)
+
+### Should only convert it once
+![test.svg](test.svg)
+
+### Download remote images
+![remote image](http://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg)
+
+### Remote images with same filename
+![youtube1](http://img.youtube.com/vi/9bZkp7q19f0/0.jpg)
+![youtube2](http://img.youtube.com/vi/IkV2HQLAKHY/0.jpg)
+
diff --git a/test/books/images/SUMMARY.md b/test/books/images/SUMMARY.md
new file mode 100644
index 0000000..ec0c4fc
--- /dev/null
+++ b/test/books/images/SUMMARY.md
@@ -0,0 +1,3 @@
+# Summary
+
+* [Page](./folder/PAGE.md)
diff --git a/test/books/images/folder/PAGE.md b/test/books/images/folder/PAGE.md
new file mode 100644
index 0000000..8beb060
--- /dev/null
+++ b/test/books/images/folder/PAGE.md
@@ -0,0 +1,3 @@
+### Images from other folder
+![test.svg](../test.svg)
+
diff --git a/test/books/images/test.svg b/test/books/images/test.svg
new file mode 100644
index 0000000..48bba70
--- /dev/null
+++ b/test/books/images/test.svg
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
+<svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
+ <title id="test-title">basic SVG tiny doc</title>
+ <g id="test-body-content">
+ <text font-family="Arial" font-size="14" text-anchor="middle" x="225" y="25">hello world</text>
+ </g>
+ <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">Revision: 1.1</text>
+ <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+</svg>
+
diff --git a/test/books/languages/LANGS.md b/test/books/languages/LANGS.md
new file mode 100644
index 0000000..4267b3c
--- /dev/null
+++ b/test/books/languages/LANGS.md
@@ -0,0 +1,4 @@
+# Language
+
+* [English](en)
+* [French](fr)
diff --git a/test/books/languages/README.md b/test/books/languages/README.md
new file mode 100644
index 0000000..f395431
--- /dev/null
+++ b/test/books/languages/README.md
@@ -0,0 +1 @@
+# Readme
diff --git a/test/books/languages/en/README.md b/test/books/languages/en/README.md
new file mode 100644
index 0000000..e965047
--- /dev/null
+++ b/test/books/languages/en/README.md
@@ -0,0 +1 @@
+Hello
diff --git a/test/books/languages/en/SUMMARY.md b/test/books/languages/en/SUMMARY.md
new file mode 100644
index 0000000..ac9323c
--- /dev/null
+++ b/test/books/languages/en/SUMMARY.md
@@ -0,0 +1 @@
+# Summary
diff --git a/test/books/languages/fr/README.md b/test/books/languages/fr/README.md
new file mode 100644
index 0000000..632e4fe
--- /dev/null
+++ b/test/books/languages/fr/README.md
@@ -0,0 +1 @@
+Bonjour
diff --git a/test/books/languages/fr/SUMMARY.md b/test/books/languages/fr/SUMMARY.md
new file mode 100644
index 0000000..ac9323c
--- /dev/null
+++ b/test/books/languages/fr/SUMMARY.md
@@ -0,0 +1 @@
+# Summary
diff --git a/test/books/summary/PAGE1.md b/test/books/summary/PAGE1.md
new file mode 100644
index 0000000..9608001
--- /dev/null
+++ b/test/books/summary/PAGE1.md
@@ -0,0 +1 @@
+# Page 1
diff --git a/test/books/summary/README.md b/test/books/summary/README.md
new file mode 100644
index 0000000..f395431
--- /dev/null
+++ b/test/books/summary/README.md
@@ -0,0 +1 @@
+# Readme
diff --git a/test/books/summary/SUMMARY.md b/test/books/summary/SUMMARY.md
new file mode 100644
index 0000000..38d0f6b
--- /dev/null
+++ b/test/books/summary/SUMMARY.md
@@ -0,0 +1,5 @@
+# Summary
+
+* [Page 1](./PAGE1.md)
+* [Page 2](./folder/PAGE2.md)
+* [Don't exists](./NOTFOUND.md)
diff --git a/test/books/summary/folder/PAGE2.md b/test/books/summary/folder/PAGE2.md
new file mode 100644
index 0000000..f310be3
--- /dev/null
+++ b/test/books/summary/folder/PAGE2.md
@@ -0,0 +1 @@
+# Page 2