diff --git a/Makefile b/Makefile index a1488d3..31743b0 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,4 @@ gensite: @echo ./bin/build-gensite -test: gensite - @echo - ./bin/test - -.PHONY: blog publish publish_beta gensite test +.PHONY: blog publish publish_beta gensite diff --git a/Tests/test-markdown/expected/hello/index.html b/Tests/test-markdown/expected/hello/index.html deleted file mode 100644 index 4299de6..0000000 --- a/Tests/test-markdown/expected/hello/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Valar Morghulis - - -

Valar Morghulis

-

hello world

- - diff --git a/Tests/test-markdown/in/public/hello.md b/Tests/test-markdown/in/public/hello.md deleted file mode 100644 index 95d09f2..0000000 --- a/Tests/test-markdown/in/public/hello.md +++ /dev/null @@ -1 +0,0 @@ -hello world \ No newline at end of file diff --git a/Tests/test-markdown/in/site.json b/Tests/test-markdown/in/site.json deleted file mode 100644 index 4462c23..0000000 --- a/Tests/test-markdown/in/site.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "author": "A man has no name", - "title": "Valar Morghulis", - "url": "http://example.net" -} diff --git a/Tests/test-markdown/in/templates/page.html b/Tests/test-markdown/in/templates/page.html deleted file mode 100644 index 7ff05a3..0000000 --- a/Tests/test-markdown/in/templates/page.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - {{ site.title }} - - -

{{ site.title }}

- {{ body }} - - diff --git a/Tests/test-posts/expected/index.html b/Tests/test-posts/expected/index.html deleted file mode 100644 index 126e3df..0000000 --- a/Tests/test-posts/expected/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - gonzo journalism: gonzo journalism - - - - - - -
-
-

gonzo journalism

-
-

By Hunter S. Thompson

-
-
- - - -
- -
-
- -

Cats

- - - -
-

Cats are neat. Look at these kittens!

-
- - -
-
- -

Fear and Loathing in Las Vegas

- - - -
-

We were somewhere around Barstow on the edge of the desert when the drugs began to take hold.

-
- - -
- - - - - - - - diff --git a/Tests/test-posts/expected/posts/2019/12/cats/index.html b/Tests/test-posts/expected/posts/2019/12/cats/index.html deleted file mode 100644 index a4bd88a..0000000 --- a/Tests/test-posts/expected/posts/2019/12/cats/index.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - gonzo journalism: Cats - - - - - - -
-
-

gonzo journalism

-
-

By Hunter S. Thompson

-
-
- - -
-
- -

Cats

- - - -
-

Cats are neat. Look at these kittens!

-
- - - - - - - - diff --git a/Tests/test-posts/expected/posts/2019/12/fear-and-loathing/index.html b/Tests/test-posts/expected/posts/2019/12/fear-and-loathing/index.html deleted file mode 100644 index 83881ca..0000000 --- a/Tests/test-posts/expected/posts/2019/12/fear-and-loathing/index.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - gonzo journalism: Fear and Loathing in Las Vegas - - - - - - -
-
-

gonzo journalism

-
-

By Hunter S. Thompson

-
-
- - -
-
- -

Fear and Loathing in Las Vegas

- - - -
-

We were somewhere around Barstow on the edge of the desert when the drugs began to take hold.

-
- - - - - - - - diff --git a/Tests/test-posts/expected/posts/2019/12/index.html b/Tests/test-posts/expected/posts/2019/12/index.html deleted file mode 100644 index bb88fe1..0000000 --- a/Tests/test-posts/expected/posts/2019/12/index.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - gonzo journalism: December 2019 - - - - - - -
-
-

gonzo journalism

-
-

By Hunter S. Thompson

-
-
- - - -
-

December 2019

-
- - -
-
- -

Cats

- - - -
-

Cats are neat. Look at these kittens!

-
- - -
-
- -

Fear and Loathing in Las Vegas

- - - -
-

We were somewhere around Barstow on the edge of the desert when the drugs began to take hold.

-
- - - - - - - - - - diff --git a/Tests/test-posts/expected/posts/2019/index.html b/Tests/test-posts/expected/posts/2019/index.html deleted file mode 100644 index 7ab3614..0000000 --- a/Tests/test-posts/expected/posts/2019/index.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - gonzo journalism: 2019 - - - - - - -
-
-

gonzo journalism

-
-

By Hunter S. Thompson

-
-
- - - -
-

2019

- - -

- December -

- - - - -
- - - - - - - - diff --git a/Tests/test-posts/expected/posts/index.html b/Tests/test-posts/expected/posts/index.html deleted file mode 100644 index 84f335f..0000000 --- a/Tests/test-posts/expected/posts/index.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - gonzo journalism: Archive - - - - - - -
-
-

gonzo journalism

-
-

By Hunter S. Thompson

-
-
- - - -

Archive

- - -
-

2019

- - -

- December -

- - - - -
- - - - - - - - - diff --git a/Tests/test-posts/in/posts/2019/12/cats.md b/Tests/test-posts/in/posts/2019/12/cats.md deleted file mode 100644 index 4e78ddc..0000000 --- a/Tests/test-posts/in/posts/2019/12/cats.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -Title: Cats -Author: Sami Samhuri -Date: 18th December, 2019 -Link: https://placekitten.com -Timestamp: 1576656168 -Tags: cats ---- - -Cats are neat. Look at these kittens! diff --git a/Tests/test-posts/in/posts/2019/12/fear-and-loathing.md b/Tests/test-posts/in/posts/2019/12/fear-and-loathing.md deleted file mode 100644 index 62db99f..0000000 --- a/Tests/test-posts/in/posts/2019/12/fear-and-loathing.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -Title: Fear and Loathing in Las Vegas -Author: Hunter S. Thompson -Date: 9th December, 2019 -Timestamp: 1575964368 -Tags: fear, loathing, las vegas ---- - -We were somewhere around Barstow on the edge of the desert when the drugs began to take hold. diff --git a/Tests/test-posts/in/site.json b/Tests/test-posts/in/site.json deleted file mode 100644 index cbcdfab..0000000 --- a/Tests/test-posts/in/site.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "author": "Hunter S. Thompson", - "title": "gonzo journalism", - "url": "http://example.net", - "plugins": { - "posts": {} - } -} diff --git a/Tests/test-posts/in/templates/partial-post.html b/Tests/test-posts/in/templates/partial-post.html deleted file mode 100644 index 1cbf952..0000000 --- a/Tests/test-posts/in/templates/partial-post.html +++ /dev/null @@ -1,12 +0,0 @@ -
-
-{% if post.isLink %} -

{{ post.title }}

-{% else %} -

{{ post.title }}

-{% endif %} - - -
- {{ post.body }} -
diff --git a/Tests/test-posts/in/templates/post.html b/Tests/test-posts/in/templates/post.html deleted file mode 100644 index eaa3001..0000000 --- a/Tests/test-posts/in/templates/post.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "site.html" %} - -{% block body %} -{% include "partial-post.html" post %} -{% endblock %} diff --git a/Tests/test-posts/in/templates/posts-archive.html b/Tests/test-posts/in/templates/posts-archive.html deleted file mode 100644 index 683a020..0000000 --- a/Tests/test-posts/in/templates/posts-archive.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "site.html" %} - -{% block body %} - -

{{ title }}

- -{% for year in years %} -
-

{{ year.title }}

- - {% for month in year.months %} -

- {{ month.name }} -

- - - - {% endfor %} -
-{% endfor %} - -{% endblock %} diff --git a/Tests/test-posts/in/templates/posts-month.html b/Tests/test-posts/in/templates/posts-month.html deleted file mode 100644 index 8699f72..0000000 --- a/Tests/test-posts/in/templates/posts-month.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "site.html" %} - -{% block body %} - -
-

{{ title }}

-
- -{% for post in posts %} - {% include "partial-post.html" post %} -{% endfor %} - -{% endblock %} diff --git a/Tests/test-posts/in/templates/posts-year.html b/Tests/test-posts/in/templates/posts-year.html deleted file mode 100644 index abc0659..0000000 --- a/Tests/test-posts/in/templates/posts-year.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "site.html" %} - -{% block body %} - -
-

{{ title }}

- -{% for month in months %} -

- {{ month.name }} -

- - - -{% endfor %} -
- -{% endblock %} diff --git a/Tests/test-posts/in/templates/recent-posts.html b/Tests/test-posts/in/templates/recent-posts.html deleted file mode 100644 index fdd96d5..0000000 --- a/Tests/test-posts/in/templates/recent-posts.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "site.html" %} - -{% block body %} - -
-{% for post in recentPosts %} - {% include "partial-post.html" post %} -{% endfor %} -
- -{% endblock %} diff --git a/Tests/test-posts/in/templates/site.html b/Tests/test-posts/in/templates/site.html deleted file mode 100644 index ce26177..0000000 --- a/Tests/test-posts/in/templates/site.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - {% if title %} - {{ site.title }}: {{ title }} - {% elif page.title %} - {{ site.title }}: {{ page.title }} - {% else %} - {{ site.title }} - {% endif %} - -{% for style in styles %} - -{% endfor %} - - - -
-
-

{{ site.title }}

-
-

By {{ site.author }}

-
-
- - {% block body %}{{ body }}{% endblock %} - - - -{% for script in scripts %} - -{% endfor %} - - diff --git a/Tests/test-projects/expected/projects/index.html b/Tests/test-projects/expected/projects/index.html deleted file mode 100644 index e110c53..0000000 --- a/Tests/test-projects/expected/projects/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - Nvidia, fuck you! - - -

Nvidia, fuck you!

- - - - diff --git a/Tests/test-projects/expected/projects/linux/index.html b/Tests/test-projects/expected/projects/linux/index.html deleted file mode 100644 index 4781c28..0000000 --- a/Tests/test-projects/expected/projects/linux/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Nvidia, fuck you!: linux - - -

linux

-

a (free) operating system (just a hobby, won't be big and professional like gnu)

- - diff --git a/Tests/test-projects/in/projects.json b/Tests/test-projects/in/projects.json deleted file mode 100644 index d99c72a..0000000 --- a/Tests/test-projects/in/projects.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "projects": [ - { - "title": "linux", - "description": "a (free) operating system (just a hobby, won't be big and professional like gnu)" - } - ] -} \ No newline at end of file diff --git a/Tests/test-projects/in/site.json b/Tests/test-projects/in/site.json deleted file mode 100644 index 3767499..0000000 --- a/Tests/test-projects/in/site.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "author": "Linus Torvalds", - "title": "Nvidia, fuck you!", - "url": "http://example.net", - "plugins": { - "projects": {} - } -} diff --git a/Tests/test-projects/in/templates/project.html b/Tests/test-projects/in/templates/project.html deleted file mode 100644 index d0adbfd..0000000 --- a/Tests/test-projects/in/templates/project.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - {{ site.title }}: {{ project.title }} - - -

{{ project.title }}

-

{{ project.description }}

- - diff --git a/Tests/test-projects/in/templates/projects.html b/Tests/test-projects/in/templates/projects.html deleted file mode 100644 index ee71b12..0000000 --- a/Tests/test-projects/in/templates/projects.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - {{ site.title }} - - -

{{ site.title }}

- - - - diff --git a/Tests/test-public-subdirs/expected/about/index.html b/Tests/test-public-subdirs/expected/about/index.html deleted file mode 100644 index 374715e..0000000 --- a/Tests/test-public-subdirs/expected/about/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Valar Morghulis - - -

Valar Morghulis

-

i liek milk

- - diff --git a/Tests/test-public-subdirs/expected/images/sjs.png b/Tests/test-public-subdirs/expected/images/sjs.png deleted file mode 100644 index e943b8e..0000000 Binary files a/Tests/test-public-subdirs/expected/images/sjs.png and /dev/null differ diff --git a/Tests/test-public-subdirs/expected/index.html b/Tests/test-public-subdirs/expected/index.html deleted file mode 100644 index 4299de6..0000000 --- a/Tests/test-public-subdirs/expected/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Valar Morghulis - - -

Valar Morghulis

-

hello world

- - diff --git a/Tests/test-public-subdirs/in/public/about.md b/Tests/test-public-subdirs/in/public/about.md deleted file mode 100644 index c2b212c..0000000 --- a/Tests/test-public-subdirs/in/public/about.md +++ /dev/null @@ -1 +0,0 @@ -i liek milk \ No newline at end of file diff --git a/Tests/test-public-subdirs/in/public/images/sjs.png b/Tests/test-public-subdirs/in/public/images/sjs.png deleted file mode 100644 index e943b8e..0000000 Binary files a/Tests/test-public-subdirs/in/public/images/sjs.png and /dev/null differ diff --git a/Tests/test-public-subdirs/in/public/index.md b/Tests/test-public-subdirs/in/public/index.md deleted file mode 100644 index 95d09f2..0000000 --- a/Tests/test-public-subdirs/in/public/index.md +++ /dev/null @@ -1 +0,0 @@ -hello world \ No newline at end of file diff --git a/Tests/test-public-subdirs/in/site.json b/Tests/test-public-subdirs/in/site.json deleted file mode 100644 index 4462c23..0000000 --- a/Tests/test-public-subdirs/in/site.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "author": "A man has no name", - "title": "Valar Morghulis", - "url": "http://example.net" -} diff --git a/Tests/test-public-subdirs/in/templates/page.html b/Tests/test-public-subdirs/in/templates/page.html deleted file mode 100644 index 7ff05a3..0000000 --- a/Tests/test-public-subdirs/in/templates/page.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - {{ site.title }} - - -

{{ site.title }}

- {{ body }} - - diff --git a/bin/test b/bin/test deleted file mode 100755 index 87779b8..0000000 --- a/bin/test +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -set -e - -for site in Tests/test-*; do - bin/gensite "$site/in" "$site/actual" - diff -bru "$site/expected" "$site/actual" - rm -r "$site/actual" -done