about summary refs log tree commit diff stats
path: root/README.md
diff options
context:
space:
mode:
authorCase Duckworth2024-03-18 10:11:17 -0500
committerCase Duckworth2024-03-18 10:11:17 -0500
commit8c77207d8672408afb32bee5a97c0b93b8033b03 (patch)
treeca5f4f64b967b8ad0709735decc7aebfdcc6c1b0 /README.md
parentAdd COPYING (diff)
downloadschwa-8c77207d8672408afb32bee5a97c0b93b8033b03.tar.gz
schwa-8c77207d8672408afb32bee5a97c0b93b8033b03.zip
Update README
Still need to finish ... whatever
Diffstat (limited to 'README.md')
-rw-r--r--README.md85
1 files changed, 83 insertions, 2 deletions
diff --git a/README.md b/README.md index 57417a5..1a55ef6 100644 --- a/README.md +++ b/README.md
@@ -1,3 +1,84 @@
1## Source Code Htmlizer Written in Awk 1# Source Code Htmlizer Written in Awk
2 2
3Hey guess what loser, it's a source code htmlizer written in awk. 3Here we have a tool that's in a similar vein to [stagit][] and others. It takes a number of files on the commandline and generates HTML for them in an output directory, then generates an index with a file listing and a readme. It's also written completely in awk(1p). I guess that's the gimmick.
4
5[stagit]: https://codemadness.org/stagit.html
6
7## How to use
8
9I don't want to figure out how to process actual command-line arguments in awk, so I've made all the configuration doable through awk variables. The command I've been running to test `schwa` is
10
11```sh
12./schwa.awk -vreadme=README.md \
13 -vreadmefilter='pandoc -thtml5' \
14 -vtemplate=template.html \
15 -vstatic=style.css \
16 -vclone=https://foo.bar/schwa \
17 -vdesc="Source Code Htmlizer" \
18 *
19```
20
21Of course, some explanation is in order.
22
23### Command-line variables
24
25template
26: *needs documentation*
27
28out
29: *needs documentation*
30
31readme
32: *needs documentation*
33
34readmefilter
35: *needs documentation*
36
37clone
38: *needs documentation*
39
40desc
41: *needs documentation*
42
43static
44: *needs documentation*
45
46### Templating
47
48CLONE
49: *needs documentation*
50
51DESCRIPTION
52: *needs documentation*
53
54DIRECTORY
55: *needs documentation*
56
57FILENAME
58: *needs documentation*
59
60OUTFILE
61: *needs documentation*
62
63RAWFILE
64: *needs documentation*
65
66CONTENT
67: *needs documentation*
68
69#### "Conditionals"
70
71`<!--INDEX--> ... <!--/INDEX-->`
72: *needs documentation*
73
74`<!--NORMAL--> ... <!--/NORMAL-->`
75: *needs documentation*
76
77## Contributing
78
79Email me at <git@acdw.net> to contribute.
80
81## License
82
83This project is licensed under a BSD 3-clause license.
84See COPYING for more details.