From 4972c5675604677a2bf546df0d30fac1bd7477bd Mon Sep 17 00:00:00 2001 From: "elioat@tilde.institute" Date: Mon, 16 Jan 2023 15:35:34 -0500 Subject: * --- archive.md | 3 +- ...ird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png | Bin 0 -> 58505 bytes changelog.md | 4 ++ content/index.md | 6 +-- content/mynah.md | 7 ++++ mynah | 8 ++-- public/archive.html | 6 ++- public/changelog.html | 35 ++++++++++++++++++ public/feed.xml | 33 ++++++++++++++--- public/index.html | 11 ++++-- public/mynah.html | 41 +++++++++++++++++++++ updated | 2 +- 12 files changed, 136 insertions(+), 20 deletions(-) create mode 100644 bin/myna-bird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png create mode 100644 content/mynah.md create mode 100644 public/mynah.html 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 Binary files /dev/null and b/bin/myna-bird-from-wikipedia-Richard-Taylor-CC_BY_2_0.png differ diff --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=$(' 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=' <![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 + + + + + +
+

changelog

+
    +
  • mynah, +Mon, 16 Jan 2023 15:35:16 -0500
  • +
  • index, +Mon, 16 Jan 2023 15:35:16 -0500
  • +
  • mynah, +Mon, 16 Jan 2023 15:28:35 -0500
  • +
  • index, +Mon, 16 Jan 2023 15:28:35 -0500
  • index, Mon, 16 Jan 2023 15:15:56 -0500
  • index, @@ -8,3 +41,5 @@ Tue, 10 Jan 2023 22:15:47 -0500
  • index, Tue, 10 Jan 2023 22:11:32 -0500
+ + diff --git a/public/feed.xml b/public/feed.xml index 29ffd76..15d43a1 100644 --- a/public/feed.xml +++ b/public/feed.xml @@ -14,21 +14,44 @@ https://elioat.tilde.institute/wiki/index.html - https://elioat.tilde.institute/wiki/index.html#C3040125-D84A-4325-A942-F7E35F060D59 - Mon, 16 Jan 2023 15:15:56 -0500 + https://elioat.tilde.institute/wiki/index.html#E7D76CCA-6B20-49B9-BAF8-6209E8AC63C7 + Mon, 16 Jan 2023 15:35:16 -0500 index updated!



# wiki
+

index updated!



% 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)
]]> + + + + + <![CDATA[ the page "mynah" was updated! ]]> + + https://elioat.tilde.institute/wiki/mynah.html + https://elioat.tilde.institute/wiki/mynah.html#34D20BDB-FB4B-47C6-849B-83CABB9DC948 + Mon, 16 Jan 2023 15:35:16 -0500 + + mynah updated!



% 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).
]]>
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 @@ - index + wiki + + + + +
+

mynah

+
+
+ + +
+

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.

+

The version of mynah that I use specifically for this wiki lives on +tilde.institute’s +git server.

+ + diff --git a/updated b/updated index 8a7cd62..e62bca9 100644 --- a/updated +++ b/updated @@ -1 +1 @@ -1673900156 +1673901316 -- cgit 1.4.1-2-gfad0