2024-04-16 09:41:10 -04:00
|
|
|
# yiki - the yellows111 "wiki"
|
|
|
|
|
|
|
|
Takes a bunch of Markdown (\*.md) files (default is from `docs`),
|
|
|
|
and renders to HTML with preserved directory paths.
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
* Table of Contents on every page.
|
|
|
|
* Preserved directory paths.
|
|
|
|
* All headers can be jumped to.
|
|
|
|
|
|
|
|
## Motivation
|
|
|
|
|
|
|
|
Just felt like writing it so I could write markdown instead of
|
|
|
|
working with HTML syntax rules for my documentation/research archive.
|
|
|
|
|
|
|
|
## Licensing
|
|
|
|
|
|
|
|
MIT. Review the `LICENSE` file if required.
|
|
|
|
|
|
|
|
## How to use
|
|
|
|
|
2024-05-09 07:14:50 -04:00
|
|
|
`node ymake`, set options using `export` commands.
|
2024-04-16 09:41:10 -04:00
|
|
|
|
2024-05-09 07:14:50 -04:00
|
|
|
An alternative makefile for GNU make is avaliable if it is prefered.
|
2024-04-16 09:41:10 -04:00
|
|
|
|
2024-05-09 07:14:50 -04:00
|
|
|
Either way, you'll want to write Markdown (\*.md) files to the
|
|
|
|
`docs` (which is the default `SRC_DIRS`) directory.
|
|
|
|
|
|
|
|
Afterwards, check the `build` (`BUILD_DIR`) directory for the `.html` files.
|
2024-04-16 09:41:10 -04:00
|
|
|
|
|
|
|
Otherwise, if you just want to use `yiki` to render one file:
|
|
|
|
|
|
|
|
`node compile source.md target.htm`
|
|
|
|
|
2024-05-09 07:14:50 -04:00
|
|
|
|
2024-04-16 17:50:07 -04:00
|
|
|
## Options
|
|
|
|
|
2024-05-09 07:14:50 -04:00
|
|
|
`SRC_DIRS` Specify the directory which `yiki` compiles files from.
|
|
|
|
|
|
|
|
ymake: `export SRC_DIRS="./input"`
|
|
|
|
|
|
|
|
GMake: `gmake SRC_DIRS="./input"`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`BUILD_DIR` Specify the directory which `yiki` compiles files into.
|
|
|
|
|
|
|
|
ymake: `export BUILD_DIR="./output"`
|
|
|
|
|
|
|
|
GMake: `gmake BUILD_DIR="./output"`
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-16 17:50:07 -04:00
|
|
|
`WIKINAME` Specify what the "A new yiki!" text should be replaced with.
|
|
|
|
|
2024-05-09 07:14:50 -04:00
|
|
|
ymake: `export WIKINAME="I love options!"`
|
|
|
|
|
|
|
|
GMake: `gmake WIKINAME="I love options!"`
|
|
|
|
|
|
|
|
|
2024-04-16 17:50:07 -04:00
|
|
|
|
2024-04-17 07:39:36 -04:00
|
|
|
`VPREFIX` Specify the virtual root of that the default template links to
|
|
|
|
for the `yiki.css` and the `index.html` files.
|
|
|
|
|
2024-05-09 07:14:50 -04:00
|
|
|
ymake: `export VPREFIX="/yiki/"`
|
|
|
|
|
|
|
|
GMake: `gmake VPREFIX:="/yiki/"`
|
|
|
|
|
|
|
|
|
2024-04-17 07:39:36 -04:00
|
|
|
|
2024-04-22 09:48:59 -04:00
|
|
|
`DOMAIN` Specifiy the domain name that your sitemap.xml links to.
|
|
|
|
|
2024-05-09 07:14:50 -04:00
|
|
|
ymake: `export DOMAIN="example.com"`
|
|
|
|
|
|
|
|
GMake: `gmake DOMAIN:="example.com"`
|
2024-04-22 09:48:59 -04:00
|
|
|
|
2024-04-16 09:41:10 -04:00
|
|
|
## Contributing
|
|
|
|
|
|
|
|
I request (but not require) that you modify files without Carriage Returns,
|
|
|
|
and to terminate new or modified files with a Line Feed character.
|