1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-06-07 23:56:06 +02:00

docs: Update example configuration

This commit is contained in:
adnano 2022-02-09 00:02:53 -05:00
parent 25abdfe285
commit 7d0dcae66e

View File

@ -337,19 +337,21 @@ command to convert Gemini text to HTML.
template = ".gmi"
postprocess = "gmnitohtml"
static_dir = "static"
output_dir = "public.html"
output_dir = "public_html"
```
The following configuration generates an HTML site from Markdown files in the
content directory and HTML templates in the templates directory. This
configuration makes use of the *markdown*(1) comand to convert Markdown to HTML.
The following configuration generates an HTML site from Markdown and Gemini text
files in the content directory and HTML templates in the templates directory.
This configuration makes use of the *mdtohtml*(1) command to convert Markdown to
HTML, and the *gmnitohtml*(1) command to convert Gemini text to HTML.
```
[[tasks]]
input_ext = [".md"]
output_ext = ".html"
template_ext = ".html"
preprocess.md = "markdown"
input = [".md", ".gmi"]
output = ".html"
template = ".html"
preprocess.md = "mdtohtml"
preprocess.gmi = "gmnitohtml"
static_dir = "static"
output_dir = "public"
```