diff options
author | Case Duckworth | 2024-03-18 10:11:17 -0500 |
---|---|---|
committer | Case Duckworth | 2024-03-18 10:11:17 -0500 |
commit | 8c77207d8672408afb32bee5a97c0b93b8033b03 (patch) | |
tree | ca5f4f64b967b8ad0709735decc7aebfdcc6c1b0 /README.md | |
parent | Add COPYING (diff) | |
download | schwa-8c77207d8672408afb32bee5a97c0b93b8033b03.tar.gz schwa-8c77207d8672408afb32bee5a97c0b93b8033b03.zip |
Update README
Still need to finish ... whatever
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 85 |
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 | ||
3 | Hey guess what loser, it's a source code htmlizer written in awk. | 3 | Here 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 | |||
9 | I 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 | |||
21 | Of course, some explanation is in order. | ||
22 | |||
23 | ### Command-line variables | ||
24 | |||
25 | template | ||
26 | : *needs documentation* | ||
27 | |||
28 | out | ||
29 | : *needs documentation* | ||
30 | |||
31 | readme | ||
32 | : *needs documentation* | ||
33 | |||
34 | readmefilter | ||
35 | : *needs documentation* | ||
36 | |||
37 | clone | ||
38 | : *needs documentation* | ||
39 | |||
40 | desc | ||
41 | : *needs documentation* | ||
42 | |||
43 | static | ||
44 | : *needs documentation* | ||
45 | |||
46 | ### Templating | ||
47 | |||
48 | CLONE | ||
49 | : *needs documentation* | ||
50 | |||
51 | DESCRIPTION | ||
52 | : *needs documentation* | ||
53 | |||
54 | DIRECTORY | ||
55 | : *needs documentation* | ||
56 | |||
57 | FILENAME | ||
58 | : *needs documentation* | ||
59 | |||
60 | OUTFILE | ||
61 | : *needs documentation* | ||
62 | |||
63 | RAWFILE | ||
64 | : *needs documentation* | ||
65 | |||
66 | CONTENT | ||
67 | : *needs documentation* | ||
68 | |||
69 | #### "Conditionals" | ||
70 | |||
71 | `<!--INDEX--> ... <!--/INDEX-->` | ||
72 | : *needs documentation* | ||
73 | |||
74 | `<!--NORMAL--> ... <!--/NORMAL-->` | ||
75 | : *needs documentation* | ||
76 | |||
77 | ## Contributing | ||
78 | |||
79 | Email me at <git@acdw.net> to contribute. | ||
80 | |||
81 | ## License | ||
82 | |||
83 | This project is licensed under a BSD 3-clause license. | ||
84 | See COPYING for more details. | ||