Update version of gema_texto
Remove no longer necessary code
Bump version
A static website generator for exactly 1 use case.
"I have a bunch of gemini files that I want to serve as-is, but I also want to generate some HTML"
So for example:
$ pwd
/home/rbdr/web/website
$ page
$ ls ..
website/
website_html/
website_gemini/
You can add some optional front matter. We'll look at the two first lines that
start with ---
The format is:
--- title: the title of the page
--- description: a description
This only works if they are the first lines of the page.
Links that end with .gmi
will be replaced with .html
unless they specifically start with gemini:
page expects a file called _layout.html in the root. It expects three placeholders:
Hidden folders are copied as well, we only make an exception for .git/
, and
.gitignore
which are explicitly ignored. This is handy for folders like
.well-known
, but could cause unwanted behavior if there's other hidden files
in the directory.
They're copied as-is.
This project is built using cargo. A makefile is provided to run common tasks.
Build dev version with make
or make build
.
Build release with make -e profile=release
or make -e profile=release build
.
Run tests with make test
.
If you have tarpaulin, you can also run make coverage
to get
coverage information.
Builds are available at build.r.bdr.sh. The linux builds are
generated automatically by the CI: Unstable builds are built from the main
branch, and stable releases are built from tags.
For mac, the process is still manual, since the commands need to be run from
a macos machine by running make mac
for unstable builds, and
make -e tag=M.m.p
for stable builds.