summaryrefslogtreecommitdiff
path: root/tests/io_files
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-02-19 23:36:04 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-02-19 23:36:04 -0600
commitf2ab2bac6b26f82730d5f5d7ab1e6d5f2f1060e3 (patch)
tree88a1ce15061cd7a9cee00941bc9ff3c39e09ab5e /tests/io_files
parente28fbb181851ca16bc0ade9c371628f86c25adbc (diff)
add yaml_parser tests, small refactor
Diffstat (limited to 'tests/io_files')
-rw-r--r--tests/io_files/simple.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/io_files/simple.yaml b/tests/io_files/simple.yaml
new file mode 100644
index 0000000..0b722a6
--- /dev/null
+++ b/tests/io_files/simple.yaml
@@ -0,0 +1,28 @@
+%YAML 1.2
+---
+define: &root "$HOME/pyssg/site_example/"
+
+title: "Example site"
+path:
+ src: !join [*root, "src"]
+ dst: !join [*root, "dst"]
+ plt: !join [*root, "plt"]
+ db: !join [*root, ".files"]
+url:
+ main: "https://example.com"
+ static: "https://static.example.com"
+ default_image: "images/default.png"
+fmt:
+ date: "%a, %b %d, %Y @ %H:%M %Z"
+ list_date: "%b %d"
+ list_sep_date: "%B %Y"
+dirs:
+ /:
+ cfg:
+ plt: "page.html"
+ tags: False
+ index: False
+ rss: False
+ sitemap: False
+ exclude_dirs: []
+... \ No newline at end of file