New version moved to https://codeberg.org/mio/gemwriter
This repository has been archived on 2023-10-02. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
lucidiot 75e9c66b52 Add French translation 2022-08-05 22:06:38 +00:00
lang Add French translation 2022-08-05 22:06:38 +00:00
.gitignore Change config format 2022-08-05 05:09:47 +00:00
env.lua Fix custom templates not being loaded 2022-08-05 17:27:25 +00:00
gemwriter.lua Fix custom templates not being loaded 2022-08-05 17:27:25 +00:00
readme.md Fix custom templates not being loaded 2022-08-05 17:27:25 +00:00
util.lua Fix custom templates not being loaded 2022-08-05 17:27:25 +00:00

readme.md

Gemwriter

A little command-line helper for publishing Gemini sites or "capsules".

Options:

config                    Generate a config directory
page [capsule] [title]    Add a new page with the given title
post [capsule] [title]    Add a new gemlog post with the given title
index                     Generate an index page and feed of posts
publish                   Index and copy posts remotely using scp
help                      Show this help message
version                   Print version info

Requirements

  • Linux or Unix-based OS
  • Lua 5.4 (other versions >= 5.1 will probably be fine but are untested)
  • scp or rsync, to transfer files remotely

Build

  • Install Lua and luastatic.

  • Clone this repository and change into the directory. Run:

    luastatic gemwriter.lua env.lua util.lua lang/en.lua \
      /usr/lib/liblua.so -I/usr/include -o gemwriter
    

    The paths to liblua.so and the development headers (i.e. /usr/include/lua.h) may need to be adjusted for your distribution.

  • Move the gemwriter executable to a location in your $PATH.

Quick start

  1. Generate a new config: gemwriter config

  2. Edit ~/.config/gemwriter/config.toml with the correct details about your capsule and gemlog.

  3. Create a new gemlog post: gemwriter post "Hello World!"

  4. Publish your capsule: gemwriter publish

License

BSD-3-Clause