pttk
pttk OPTIONS verb [VERB_OPTIONS] [-- [PANDOC_OPTIONS] … ]
pttk implements a deconstructed content management system suitable for working with plain text. It intended as a compliment to Pandoc focusing on collections of documents and structed text. Currently pttk provides tools to layout blog directories, generate Gophermap files for Gopher distribution. The ideas is to provide the tooling that will allow publication and distribution both on the world wide web as well as the “small internet”.
pttk has grown to include features provide through simple “verbs”. The verbs include the following.
Verbs have their one options. You can see a list of them with the
form pttk VERB -h
Using pttk to manage blog content with the “blogit” verb.
Adding a blog “first-post.md” to “myblog”.
pttk blogit myblog $HOME/Documents/first-post.md
Adding/Updating the “first-post.md” on “2022-07-22”
pttk blogit myblog $HOME/Documents/first-post.md "2022-07-22"
Added additional material for posts on “2022-07-22”
pttk blogit myblog $HOME/Documents/charts/my-graph.svg "2022-07-22"
Refreshing the blogs’s blog.json file.
pttk blogit myblog
Using pttk to manage phlog content with the “phlogit” verb.
Adding a blog “first-post.md” to “myphlog”.
pttk phlogit myphlog $HOME/Documents/first-post.md
Adding/Updating the “first-post.md” on “2022-07-22”
pttk phlogit myblog $HOME/Documents/first-post.md "2022-07-22"
Added additional material for posts on “2022-07-22”
pttk phlogit myblog $HOME/Documents/charts/my-graph.svg "2022-07-22"
Refreshing the phlogs’s phlog.json file.
pttk phlogit myblog
Using pttk to generate RSS for “myblog”
pttk rss myblog
Generating a sitemap in a current directory (i.e. the “.” directory)
pttk sitemap .
Running a static web server to view rendering site
pttk ws $HOME/Sites/myblog
Running a static gopher server to view rendering site
pttk gs $HOME/Sites/myblog
Including a table of contents “toc.md”, and “chapters1.md” and “chapters2.md” in a file called “book.txt” and writing the result to “book.md”.
The “book.txt” file would look like
# My Book
#include(toc.md);
#include(chapter1.md);
#include(chapter2.md);
Putting the “book” together as on file.
pttk {verb} book.txt book.md