-
Notifications
You must be signed in to change notification settings - Fork 0
/
smarc.1
92 lines (92 loc) · 2.24 KB
/
smarc.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.\" smarc.1 was written by Omar Polo <[email protected]> and is placed in
.\" the public domain. The author hereby disclaims copyright to this
.\" source code.
.Dd January 10, 2023
.Dt SMARC 1
.Os
.Sh NAME
.Nm smarc
.Nd mailing list static site generator
.Sh SYNOPSIS
.Nm
.Op Fl c Ar cachedir
.Op Fl j Ar n
.Op Fl m Ar maildir
.Op Fl o Ar outdir
.Op Fl t Ar tmpldir
.Sh DESCRIPTION
.Nm
generates a static web archive from a maildir incrementally.
.Pp
The arguments are as follows:
.Bl -tag -width Ds
.It Fl c Ar cachedir
Cache directory used for keeping track of threads during incremental
updates.
Defaults to
.Pa ~/.cache/smarc
.It Fl j Ar n
Use
.Ar n
jobs to export threads.
With big mailing lists and on a multiprocessor machine this can save
quite some time.
.It Fl m Ar maildir
Source
.Ar maildir .
Defaults to
.Pa ~/Mail/smarc .
.It Fl o Ar outdir
The destination directory where the HTML files will be written to, it's
.Pa /var/www/smarc
by default.
.It Fl t Ar tmpldir
Path to a directory containing the template files.
.Pa /etc/smarc
by default.
.El
.Sh FILES
.Bl -tag -width Ds
.It Pa /etc/smarc/foot.html
Template with the trailing part of the page.
.It Pa /etc/smarc/head.html
Template with the first part of the page.
.Dv TITLE
is substituted with the title.
.It Pa /etc/smarc/index-header.html
Template with the title for index pages.
.Dv PAGE
is replaced with the page number and
.Dv SUBTITLE
with the date range.
.It Pa /etc/smarc/logo-small.html
Small version of the logo, included in the thread header.
.It Pa /etc/smarc/search-link.html
Template for the search link used in the mail and thread page.
.It Pa /etc/smarc/search.html
Template for the search form.
.Ev QUERY
is replaced with the search query.
.It Pa /var/www/smarc
Default output directory.
.It Pa ~/.cache/smarc
Default cache directory.
.It Pa ~/Mail/smarc
Default maildir.
.El
.Sh SEE ALSO
.Xr smarc 7
.Sh HISTORY
.Nm
started as a hacky collection of perl scripts under the name of
.Sq gotmarc
to generate a web archive for the Game of Trees mailing list.
Only later, while still being a hacky collection of perl and shell
scripts, was converted to be a generic web mailing list archive tool and
the project renamed.
.Sh AUTHORS
.An -nosplit
The
.Nm
utility was written by
.An Omar Polo Aq Mt [email protected] .