diff options
-rw-r--r-- | archive.md | 3 | ||||
-rw-r--r-- | bin/myna-bird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png | bin | 0 -> 58505 bytes | |||
-rw-r--r-- | changelog.md | 4 | ||||
-rw-r--r-- | content/index.md | 6 | ||||
-rw-r--r-- | content/mynah.md | 7 | ||||
-rwxr-xr-x | mynah | 8 | ||||
-rw-r--r-- | public/archive.html | 6 | ||||
-rw-r--r-- | public/changelog.html | 35 | ||||
-rw-r--r-- | public/feed.xml | 33 | ||||
-rw-r--r-- | public/index.html | 11 | ||||
-rw-r--r-- | public/mynah.html | 41 | ||||
-rw-r--r-- | updated | 2 |
12 files changed, 136 insertions, 20 deletions
diff --git a/archive.md b/archive.md index e808141..713c173 100644 --- a/archive.md +++ b/archive.md @@ -1,3 +1,2 @@ -# Archive - - [index](https://elioat.tilde.institute/wiki/index.html) +- [mynah](https://elioat.tilde.institute/wiki/mynah.html) diff --git a/bin/myna-bird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png b/bin/myna-bird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png new file mode 100644 index 0000000..830498c --- /dev/null +++ b/bin/myna-bird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png Binary files differdiff --git a/changelog.md b/changelog.md index 01886da..21ebb8c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +- [mynah](https://elioat.tilde.institute/wiki/mynah.html), Mon, 16 Jan 2023 15:35:16 -0500 +- [index](https://elioat.tilde.institute/wiki/index.html), Mon, 16 Jan 2023 15:35:16 -0500 +- [mynah](https://elioat.tilde.institute/wiki/mynah.html), Mon, 16 Jan 2023 15:28:35 -0500 +- [index](https://elioat.tilde.institute/wiki/index.html), Mon, 16 Jan 2023 15:28:35 -0500 - [index](https://elioat.tilde.institute/wiki/index.html), Mon, 16 Jan 2023 15:15:56 -0500 - [index](https://elioat.tilde.institute/wiki/index.html), Sun, 15 Jan 2023 22:24:35 -0500 - [index](https://elioat.tilde.institute/wiki/index.html), Tue, 10 Jan 2023 22:15:47 -0500 diff --git a/content/index.md b/content/index.md index 659bce2..6b5baa4 100644 --- a/content/index.md +++ b/content/index.md @@ -1,8 +1,8 @@ -# wiki +% wiki -This is the start of a little wiki. +This is the start of a little wiki. I use [mynah](mynah.html) to build it. -![Dithered image of a cat sleeping on a shelf mounted against a window. The window is surrounded by fairy lights, and it is snowing outside.](/bin/snorlax-napping-in-the-snowy-window.png) +![Dithered image of a cat sleeping on a shelf mounted against a window. The window is surrounded by fairy lights, and it is snowing outside.](bin/snorlax-napping-in-the-snowy-window.png) - [archive](archive.html) - [change log](changelog.html) diff --git a/content/mynah.md b/content/mynah.md new file mode 100644 index 0000000..9900c48 --- /dev/null +++ b/content/mynah.md @@ -0,0 +1,7 @@ +% mynah + +![Photo of the Mynah bird from Wikipedia, CC BY 2.0 Richard Taylor](bin/myna-bird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png) + +[Mynah](https://git.sr.ht/~eli_oat/mynah/) is a little wiki bird. I use a modified version of it to build this wiki. It isn't much, mostly a pile of bash around [pandoc](https://pandoc.org). + +The version of mynah that I use specifically for this wiki lives on [tilde.institute's git server](https://git.tilde.institute/elioat/wiki/tree/mynah). \ No newline at end of file diff --git a/mynah b/mynah index 3ae37c1..96a652a 100755 --- a/mynah +++ b/mynah @@ -15,6 +15,7 @@ fi SITENAME="wiki" SITEURL="https://elioat.tilde.institute/wiki" +SITESTYLES="$SITEURL"/styles.css SITEDESCRIPTION="a little wiki" if [[ -f updated ]]; then LASTUPDATE=$(<updated) @@ -35,17 +36,16 @@ RSSHEADER='<?xml version="1.0" encoding="UTF-8"?> RSSEND='</channel></rss>' build_logs() { - pandoc -c https://elioat.tilde.institute/wiki/styles.css -s changelog.md -o public/changelog.html + pandoc -c "$SITESTYLES" -s --metadata title="changelog" changelog.md -o public/changelog.html cd content rm ../archive.md - echo -e "# Archive\n" > ../archive.md for file in *; do archive_entry="- [${file%.*}](${SITEURL}/${file%.*}.html)" echo -e "$archive_entry" >> ../archive.md done cd .. - pandoc -c https://elioat.tilde.institute/wiki/styles.css -s archive.md -o public/archive.html + pandoc -c "$SITESTYLES" -s --metadata title="archive" archive.md -o public/archive.html } build() { @@ -64,7 +64,7 @@ build() { (( i++ )) updated_at="- [${file%.*}](${SITEURL}/${file%.*}.html), ${RFC822}" echo -e "$updated_at\n$(cat ../changelog.md)" > ../changelog.md - pandoc -c https://elioat.tilde.institute/wiki/styles.css -s "${file}" -o ../public/"${file%.*}".html + pandoc -c "$SITESTYLES" -s "${file}" -o ../public/"${file%.*}".html rss_entry='<item> <title> <![CDATA[ the page "'${file%.*}'" was updated! ]]> diff --git a/public/archive.html b/public/archive.html index f408d58..26f2cc0 100644 --- a/public/archive.html +++ b/public/archive.html @@ -20,10 +20,14 @@ <![endif]--> </head> <body> -<h1 id="archive">Archive</h1> +<header id="title-block-header"> +<h1 class="title">archive</h1> +</header> <ul> <li><a href="https://elioat.tilde.institute/wiki/index.html">index</a></li> +<li><a +href="https://elioat.tilde.institute/wiki/mynah.html">mynah</a></li> </ul> </body> </html> diff --git a/public/changelog.html b/public/changelog.html index 43c4820..6722cb0 100644 --- a/public/changelog.html +++ b/public/changelog.html @@ -1,4 +1,37 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> +<head> + <meta charset="utf-8" /> + <meta name="generator" content="pandoc" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> + <title>changelog</title> + <style> + code{white-space: pre-wrap;} + span.smallcaps{font-variant: small-caps;} + span.underline{text-decoration: underline;} + div.column{display: inline-block; vertical-align: top; width: 50%;} + div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} + ul.task-list{list-style: none;} + .display.math{display: block; text-align: center; margin: 0.5rem auto;} + </style> + <link rel="stylesheet" href="https://elioat.tilde.institute/wiki/styles.css" /> + <!--[if lt IE 9]> + <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> + <![endif]--> +</head> +<body> +<header id="title-block-header"> +<h1 class="title">changelog</h1> +</header> <ul> +<li><a href="https://elioat.tilde.institute/wiki/mynah.html">mynah</a>, +Mon, 16 Jan 2023 15:35:16 -0500</li> +<li><a href="https://elioat.tilde.institute/wiki/index.html">index</a>, +Mon, 16 Jan 2023 15:35:16 -0500</li> +<li><a href="https://elioat.tilde.institute/wiki/mynah.html">mynah</a>, +Mon, 16 Jan 2023 15:28:35 -0500</li> +<li><a href="https://elioat.tilde.institute/wiki/index.html">index</a>, +Mon, 16 Jan 2023 15:28:35 -0500</li> <li><a href="https://elioat.tilde.institute/wiki/index.html">index</a>, Mon, 16 Jan 2023 15:15:56 -0500</li> <li><a href="https://elioat.tilde.institute/wiki/index.html">index</a>, @@ -8,3 +41,5 @@ Tue, 10 Jan 2023 22:15:47 -0500</li> <li><a href="/index.html">index</a>, Tue, 10 Jan 2023 22:11:32 -0500</li> </ul> +</body> +</html> diff --git a/public/feed.xml b/public/feed.xml index 29ffd76..15d43a1 100644 --- a/public/feed.xml +++ b/public/feed.xml @@ -14,22 +14,45 @@ <![CDATA[ the page "index" was updated! ]]> </title> <link>https://elioat.tilde.institute/wiki/index.html</link> - <guid>https://elioat.tilde.institute/wiki/index.html#C3040125-D84A-4325-A942-F7E35F060D59</guid> - <pubDate>Mon, 16 Jan 2023 15:15:56 -0500</pubDate> + <guid>https://elioat.tilde.institute/wiki/index.html#E7D76CCA-6B20-49B9-BAF8-6209E8AC63C7</guid> + <pubDate>Mon, 16 Jan 2023 15:35:16 -0500</pubDate> <description> <![CDATA[ -<p><a href="https://elioat.tilde.institute/wiki/index.html">index</a> updated!</p><br><br><pre><code># wiki +<p><a href="https://elioat.tilde.institute/wiki/index.html">index</a> updated!</p><br><br><pre><code>% wiki -This is the start of a little wiki. +This is the start of a little wiki. I use [mynah](mynah.html) to build it. ![Dithered image of a cat sleeping on a shelf mounted against a window. The window is surrounded by fairy lights, and it is snowing -outside.](/bin/snorlax-napping-in-the-snowy-window.png) +outside.](bin/snorlax-napping-in-the-snowy-window.png) - [archive](archive.html) - [change log](changelog.html) - [feed](feed.xml)</code></pre> ]]> </description> </item> + <item> + <title> + <![CDATA[ the page "mynah" was updated! ]]> +</title> + <link>https://elioat.tilde.institute/wiki/mynah.html</link> + <guid>https://elioat.tilde.institute/wiki/mynah.html#34D20BDB-FB4B-47C6-849B-83CABB9DC948</guid> + <pubDate>Mon, 16 Jan 2023 15:35:16 -0500</pubDate> + <description> + <![CDATA[ +<p><a href="https://elioat.tilde.institute/wiki/mynah.html">mynah</a> updated!</p><br><br><pre><code>% mynah + +![Photo of the Mynah bird from Wikipedia, CC BY 2.0 Richard +Taylor](bin/myna-bird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png) + +[Mynah](https://git.sr.ht/~eli_oat/mynah/) is a little wiki bird. I use a +modified version of it to build this wiki. It isn't much, mostly a pile of bash +around [pandoc](https://pandoc.org). + +The version of mynah that I use specifically for this wiki lives on +[tilde.institute's git +server](https://git.tilde.institute/elioat/wiki/tree/mynah).</code></pre> ]]> +</description> + </item> </channel> </rss> diff --git a/public/index.html b/public/index.html index b4595bc..4f9f029 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ <meta charset="utf-8" /> <meta name="generator" content="pandoc" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> - <title>index</title> + <title>wiki</title> <style> code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} @@ -20,10 +20,13 @@ <![endif]--> </head> <body> -<h1 id="wiki">wiki</h1> -<p>This is the start of a little wiki.</p> +<header id="title-block-header"> +<h1 class="title">wiki</h1> +</header> +<p>This is the start of a little wiki. I use <a +href="mynah.html">mynah</a> to build it.</p> <figure> -<img src="/bin/snorlax-napping-in-the-snowy-window.png" +<img src="bin/snorlax-napping-in-the-snowy-window.png" alt="Dithered image of a cat sleeping on a shelf mounted against a window. The window is surrounded by fairy lights, and it is snowing outside." /> <figcaption aria-hidden="true">Dithered image of a cat sleeping on a shelf mounted against a window. The window is surrounded by fairy diff --git a/public/mynah.html b/public/mynah.html new file mode 100644 index 0000000..410902d --- /dev/null +++ b/public/mynah.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> +<head> + <meta charset="utf-8" /> + <meta name="generator" content="pandoc" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> + <title>mynah</title> + <style> + code{white-space: pre-wrap;} + span.smallcaps{font-variant: small-caps;} + span.underline{text-decoration: underline;} + div.column{display: inline-block; vertical-align: top; width: 50%;} + div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} + ul.task-list{list-style: none;} + .display.math{display: block; text-align: center; margin: 0.5rem auto;} + </style> + <link rel="stylesheet" href="https://elioat.tilde.institute/wiki/styles.css" /> + <!--[if lt IE 9]> + <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> + <![endif]--> +</head> +<body> +<header id="title-block-header"> +<h1 class="title">mynah</h1> +</header> +<figure> +<img src="bin/myna-bird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png" +alt="Photo of the Mynah bird from Wikipedia, CC BY 2.0 Richard Taylor" /> +<figcaption aria-hidden="true">Photo of the Mynah bird from Wikipedia, +CC BY 2.0 Richard Taylor</figcaption> +</figure> +<p><a href="https://git.sr.ht/~eli_oat/mynah/">Mynah</a> is a little +wiki bird. I use a modified version of it to build this wiki. It isn’t +much, mostly a pile of bash around <a +href="https://pandoc.org">pandoc</a>.</p> +<p>The version of mynah that I use specifically for this wiki lives on +<a +href="https://git.tilde.institute/elioat/wiki/tree/mynah">tilde.institute’s +git server</a>.</p> +</body> +</html> diff --git a/updated b/updated index 8a7cd62..e62bca9 100644 --- a/updated +++ b/updated @@ -1 +1 @@ -1673900156 +1673901316 |