summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorNicolas Paul <n@nc0.fr>2023-04-26 03:45:11 +0200
committerNicolas Paul <n@nc0.fr>2023-04-26 03:45:11 +0200
commit3b41c3e2008498a804a03154f5b876827f1f4e7c (patch)
treebd36b8671ad9b99fecfd353e335e1660287224c6 /testdata
parentdab887d5b26df8ba45bf61e426736684a1d8df78 (diff)
Add HTML generation
Diffstat (limited to 'testdata')
-rw-r--r--testdata/.DS_Storebin0 -> 6148 bytes
-rw-r--r--testdata/.keep0
-rw-r--r--testdata/src/.crocc.html19
-rw-r--r--testdata/src/folder/another.md11
-rw-r--r--testdata/src/foo.txt1
-rw-r--r--testdata/src/hidden.md16
-rw-r--r--testdata/src/index.md59
7 files changed, 106 insertions, 0 deletions
diff --git a/testdata/.DS_Store b/testdata/.DS_Store
new file mode 100644
index 0000000..acd344d
--- /dev/null
+++ b/testdata/.DS_Store
Binary files differ
diff --git a/testdata/.keep b/testdata/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/testdata/.keep
diff --git a/testdata/src/.crocc.html b/testdata/src/.crocc.html
new file mode 100644
index 0000000..ee699f1
--- /dev/null
+++ b/testdata/src/.crocc.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<!--
+ Copyright (c) 2023 Nicolas Paul All rights reserved.
+ Use of this source code is governed by a BSD-style
+ license that can be found in the LICENSE file.
+-->
+<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">
+ <title>
+ {{ .Title }}
+ </title>
+ </head>
+ <body>
+ {{ .Content }}
+ </body>
+</html> \ No newline at end of file
diff --git a/testdata/src/folder/another.md b/testdata/src/folder/another.md
new file mode 100644
index 0000000..a8427f0
--- /dev/null
+++ b/testdata/src/folder/another.md
@@ -0,0 +1,11 @@
+---
+title: Another
+description: Some another Markdown
+keywords:
+ - foo
+publication_time: 2019-01-01T00:00:00Z
+author: John Doe
+---
+# Another
+
+This is some another Markdown. \ No newline at end of file
diff --git a/testdata/src/foo.txt b/testdata/src/foo.txt
new file mode 100644
index 0000000..e238773
--- /dev/null
+++ b/testdata/src/foo.txt
@@ -0,0 +1 @@
+this file should get copied as is \ No newline at end of file
diff --git a/testdata/src/hidden.md b/testdata/src/hidden.md
new file mode 100644
index 0000000..925972f
--- /dev/null
+++ b/testdata/src/hidden.md
@@ -0,0 +1,16 @@
+---
+title: Hidden
+description: Some hidden Markdown
+keywords:
+ - foo
+ - bar
+ - baz
+publication_time: 2019-01-01T00:00:00Z
+author: John Doe
+hidden: true
+---
+# Hidden
+
+This is some hidden Markdown.
+The file should not be rendered, unless the crocc is run with the
+`-hidden` flag.
diff --git a/testdata/src/index.md b/testdata/src/index.md
new file mode 100644
index 0000000..757972f
--- /dev/null
+++ b/testdata/src/index.md
@@ -0,0 +1,59 @@
+---
+title: Index
+description: Some Markdown
+keywords:
+ - foo
+ - bar
+ - baz
+publication_time: 2019-01-01T00:00:00Z
+author: John Doe
+---
+# Index
+
+This is some Markdown.
+
+1. foo
+2. bar
+3. baz
+
+**bold**, *italic*, `code`, [link](https://example.com), ~~strikethrough~~.
+
+> blockquote
+> blah blah blah
+
+## Subheading
+### Subsubheading
+#### Subsubsubheading
+##### Subsubsubsubheading
+###### Subsubsubsubsubheading
+
+| foo | bar | baz |
+| --- | --- | --- |
+| 1 | 2 | 3 |
+| 4 | 5 | 6 |
+| 7 | 8 | 9 |
+
+```go
+package main
+
+import "fmt"
+
+func main() {
+ fmt.Println("Hello, world!")
+}
+```
+
+- foo
+- bar
+- baz
+ + qux
+
+Did you know that `foo` is a thing?[^1]
+And that `bar` is a thing?[^2]
+
+[^1]: foo is a thing.
+[^2]: bar is a thing.
+
+2^3 = 8
+
+H~2~O