From 90ffb90619b223151cd839e0cf351d53c4d5b9d4 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 22 Sep 2019 20:15:31 -0400 Subject: [PATCH] normalize wiki names --- wiki/build-wiki.sh | 4 ++++ wiki/source/Editing-your-index.html-file.md | 20 ------------------- wiki/source/Finding-your-index.html-file.md | 17 ---------------- wiki/source/email.md | 1 + wiki/source/{JSON.md => json.md} | 0 ...-your-editor-view-when-chat-interrupts.md} | 0 ...Way.md => safe-scripting-the-tilde-way.md} | 0 wiki/source/{Time-zone.md => time-zone.md} | 0 .../source/{Usenet-news.md => usenet-news.md} | 0 wiki/source/{VPN-Gate.md => vpn-gate.md} | 0 wiki/wiki.tmpl | 3 ++- 11 files changed, 7 insertions(+), 38 deletions(-) delete mode 100644 wiki/source/Editing-your-index.html-file.md delete mode 100644 wiki/source/Finding-your-index.html-file.md rename wiki/source/{JSON.md => json.md} (100%) rename wiki/source/{Resetting-your-editor-view-when-chat-interrupts.md => resetting-your-editor-view-when-chat-interrupts.md} (100%) rename wiki/source/{Safe-Scripting-the-Tilde-Way.md => safe-scripting-the-tilde-way.md} (100%) rename wiki/source/{Time-zone.md => time-zone.md} (100%) rename wiki/source/{Usenet-news.md => usenet-news.md} (100%) rename wiki/source/{VPN-Gate.md => vpn-gate.md} (100%) diff --git a/wiki/build-wiki.sh b/wiki/build-wiki.sh index 4686c77..2b46002 100755 --- a/wiki/build-wiki.sh +++ b/wiki/build-wiki.sh @@ -1,10 +1,14 @@ #!/bin/sh +printf "removing previous html build artifacts" +rm *.html + for page in source/*.md; do pagename=$(basename $page ".md") printf "building %s wiki article\n" "$pagename" pandoc \ + --toc \ --template wiki.tmpl \ --lua-filter header-permalinks.lua \ -T "tilde.club wiki | " \ diff --git a/wiki/source/Editing-your-index.html-file.md b/wiki/source/Editing-your-index.html-file.md deleted file mode 100644 index 4eeeca5..0000000 --- a/wiki/source/Editing-your-index.html-file.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Editing your index.html file ---- - -Type: `nano` index.html to open your index.html file and begin editing - -![screenshot of the nano editor](http://tilde.club/~annika/static/nano.png) - -Edit your file, willy nilly - -When done editing, use `CTRL+X` to close the file - -You'll be asked if you want to save; say y and [return] to return to the command line - -Refresh your tilde page in your browser to see your new website - -Note: If at any time you feel you made a mistake in editing, you can exit and n to not save. - -There's more info here about the [[nano]] editor; if you're familiar with -[[emacs]] or [[vim]] they are here too. diff --git a/wiki/source/Finding-your-index.html-file.md b/wiki/source/Finding-your-index.html-file.md deleted file mode 100644 index 6470c76..0000000 --- a/wiki/source/Finding-your-index.html-file.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: Finding your index.html file ---- - -There are some basic command line commands you'll want to Google and learn, but for this tutorial you only need a few: - -`ls` = list files and folders in current directory - -`cd` = change directories - -`vim`, `emacs`, `nano` = a text editor - -Type: `ls` to see where you are; you should see a directory called "public_html" - -Type: `cd public_html` to browse into that folder - -Type: `ls` to see where you are; you should see your index.html file diff --git a/wiki/source/email.md b/wiki/source/email.md index 78692a0..2cc9803 100644 --- a/wiki/source/email.md +++ b/wiki/source/email.md @@ -17,6 +17,7 @@ alternatively, you can use the [webmail](https://webmail.tilde.club/) or standar some clients will automatically detect the right settings (tested with thunderbird). connection settings: + - imap.tilde.club port 993 with ssl - pop3.tilde.club port 995 with ssl - smtp.tilde.club port 587 with starttls diff --git a/wiki/source/JSON.md b/wiki/source/json.md similarity index 100% rename from wiki/source/JSON.md rename to wiki/source/json.md diff --git a/wiki/source/Resetting-your-editor-view-when-chat-interrupts.md b/wiki/source/resetting-your-editor-view-when-chat-interrupts.md similarity index 100% rename from wiki/source/Resetting-your-editor-view-when-chat-interrupts.md rename to wiki/source/resetting-your-editor-view-when-chat-interrupts.md diff --git a/wiki/source/Safe-Scripting-the-Tilde-Way.md b/wiki/source/safe-scripting-the-tilde-way.md similarity index 100% rename from wiki/source/Safe-Scripting-the-Tilde-Way.md rename to wiki/source/safe-scripting-the-tilde-way.md diff --git a/wiki/source/Time-zone.md b/wiki/source/time-zone.md similarity index 100% rename from wiki/source/Time-zone.md rename to wiki/source/time-zone.md diff --git a/wiki/source/Usenet-news.md b/wiki/source/usenet-news.md similarity index 100% rename from wiki/source/Usenet-news.md rename to wiki/source/usenet-news.md diff --git a/wiki/source/VPN-Gate.md b/wiki/source/vpn-gate.md similarity index 100% rename from wiki/source/VPN-Gate.md rename to wiki/source/vpn-gate.md diff --git a/wiki/wiki.tmpl b/wiki/wiki.tmpl index 82c2d65..c640c06 100644 --- a/wiki/wiki.tmpl +++ b/wiki/wiki.tmpl @@ -43,13 +43,13 @@ $highlighting-css$ $endfor$ - < back to wiki home $for(include-before)$ $include-before$ $endfor$ $if(title)$

$title$

+ < back to wiki home $if(subtitle)$

$subtitle$

$endif$ @@ -59,6 +59,7 @@ $highlighting-css$ $for(author)$

~$author$

$endfor$ +
$endif$ $if(date)$