- Revise lang files: use `string.format()`, clean up template and message placeholders, include comments for translated lines (thanks to lucidiot for FR translation and suggestions) - Clarify dependencies in build instructions
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
- 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
Install Lua (including development libraries and headers) and luastatic.
Clone this repository and change into the directory. Run:
luastatic gemwriter.lua env.lua util.lua lang/*.lua \ /usr/lib/[arch]/liblua[5.x].a -I/usr/include/lua[5.x] -static \ -o gemwriter
[arch]with the OS architecture, e.g.
[5.x]with the Lua version. The paths to
liblua.aand the development headers (i.e.
/usr/include/lua[5.x]/lua.h) may need to be adjusted for your distribution.
gemwriterexecutable to a location in your
Generate a new config:
~/.config/gemwriter/config.tomlwith the correct details about your capsule and gemlog.
Create a new gemlog post:
gemwriter post "Hello World!"
Publish your capsule:
Special thanks to the following contributors:
- lucidiot — French translation