Add LICENCE and README

This commit is contained in:
Gender Demon 2021-01-01 17:25:09 +00:00
parent 938250ae37
commit dc63a4059b
2 changed files with 45 additions and 0 deletions

5
LICENCE Normal file
View File

@ -0,0 +1,5 @@
0BSD Licence
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

40
README Normal file
View File

@ -0,0 +1,40 @@
# Wordpusher
Push the writing stack.
## Quick start
0. `git clone https://tildegit.org/c-ren/wordpusher.git`
1. `mkdir input`
2. `mkdir output`
3. `echo 'Hello world!' > input/index.md`
4. `wordpusher/render_tree input output`
You will want to edit `render_file` to change things that only apply to my
deployment (the header that says "cren's website", for example). (Yes, I know
that this is terrible practice. I will fix it.)
## Usage
### render_file
`render_file` is a POSIX `sh` script that mostly consists of running `cmark` on
a file.
```
render_file <input.md>
```
### render_tree
`render_tree` is another `sh` script that calls `render_file` on every file
in a directory, including every file in every directory in that directory (it's
recursive). You must also provide an output directory.
```
render_tree <input_dir> <output_dir>
```
## Licence
Made available under the 0BSD licence, a permissive free-as-in-freedom licence. See the included LICENCE file for full text.