forked from solderpunk/AV-98
Provide manuals for new commands.
This patch add stubs of documentation for ansicat(1), netcache(1), migrate-offpunk-cache(1) and opnk(1) in prevision of offpunk 2.0 release. The migration script manual notably resolves issue #15. Signed-off-by: Étienne Mollier <emollier@debian.org>
This commit is contained in:
parent
a1ce45403f
commit
7a22ea3c8a
72
man/ansicat.1
Normal file
72
man/ansicat.1
Normal file
|
@ -0,0 +1,72 @@
|
|||
.Dd August 27, 2023
|
||||
.Dt ANSICAT 1
|
||||
.Os Debian
|
||||
.
|
||||
.Sh NAME
|
||||
.Nm ansicat
|
||||
.Nd terminal gemini gemtext renderer for offpunk
|
||||
.
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl \-format Ar RENDERER
|
||||
.Op Fl \-mime Ar MIME
|
||||
.Op Fl \-url Ar URL ...
|
||||
.Op Ar INPUT ...
|
||||
.Nm
|
||||
.Fl h | \-help
|
||||
.
|
||||
.Sh DESCRIPTION
|
||||
Ansicat is the rendering engine of the browser
|
||||
.Xr offpunk 1 .
|
||||
It will render nicely on the terminal any gemtext,
|
||||
html,
|
||||
gopher,
|
||||
and a few other formats.
|
||||
.Pp
|
||||
.Xr Offpunk 1
|
||||
is a command-line browser and feed reader dedicated to browsing the Web,
|
||||
Gemini, Gopher and Spartan.
|
||||
.Ss Positional arguments
|
||||
.Bl -tag -width Ds -offset indent
|
||||
.It Ar INPUT
|
||||
path to the text to render.
|
||||
It defaults to the standard input.
|
||||
.El
|
||||
.Ss Keyword arguments
|
||||
.Bl -tag -width Ds -offset indent
|
||||
.It Fl h , \-help
|
||||
show a help message and exit.
|
||||
.It Fl \-format Ar RENDERER
|
||||
renderer to use.
|
||||
Available renderers are
|
||||
.Ic auto ,
|
||||
.Ic gemtext ,
|
||||
.Ic html ,
|
||||
.Ic feed ,
|
||||
.Ic gopher ,
|
||||
.Ic image ,
|
||||
and
|
||||
.Ic folder .
|
||||
The
|
||||
.Ic auto
|
||||
renderer will heuristically guess the format,
|
||||
either thanks to the MIME type,
|
||||
or from the file being rendered itself.
|
||||
.It Fl \-mime Ar MIME
|
||||
MIME type of the content to parse.
|
||||
.It Fl \-url Ar URL ...
|
||||
original URL of the content.
|
||||
.El
|
||||
.
|
||||
.Sh EXIT STATUS
|
||||
.Ex -std
|
||||
.
|
||||
.Sh SEE ALSO
|
||||
.Xr migrate-offpunk-cache 1 ,
|
||||
.Xr netcache 1 ,
|
||||
.Xr offpunk 1 ,
|
||||
.Xr opnk 1 ,
|
||||
.Lk https://sr.ht/~lioploum/offpunk/
|
||||
.
|
||||
.Sh AUTHORS
|
||||
.An Lionel Dricot (Ploum) Aq Mt offpunk2 at ploum.eu
|
44
man/migrate-offpunk-cache.1
Normal file
44
man/migrate-offpunk-cache.1
Normal file
|
@ -0,0 +1,44 @@
|
|||
.Dd August 11, 2023
|
||||
.Dt MIGRATE-OFFPUNK-CACHE 1
|
||||
.Os
|
||||
.
|
||||
.Sh NAME
|
||||
.Nm migrate-offpunk-cache
|
||||
.Nd migrate offpunk cache to the newest version
|
||||
.
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Ar CACHE_DIR
|
||||
.Nm
|
||||
.Fl h | \-help
|
||||
.
|
||||
.Sh DESCRIPTION
|
||||
For each new version of offpunk that requires changes to the cache,
|
||||
a migration function is provided.
|
||||
All migration functions will be called by this script,
|
||||
from the oldest to the newest version.
|
||||
.Ss Positional arguments
|
||||
.Bl -tag -width Ds -offset indent
|
||||
.It CACHE_DIR
|
||||
This is the path to the cache.
|
||||
The default value will point to $XDG_CACHE_HOME,
|
||||
or $HOME/.cache/offpunk if undefined.
|
||||
.El
|
||||
.Ss Keyword arguments
|
||||
.Bl -tag -width Ds -offset indent
|
||||
.It Fl h , \-help
|
||||
Show a help message and exit
|
||||
.El
|
||||
.
|
||||
.Sh EXIT STATUS
|
||||
.Ex -std
|
||||
.
|
||||
.Sh SEE ALSO
|
||||
.Xr ansicat 1 ,
|
||||
.Xr netcache 1 ,
|
||||
.Xr offpunk 1 ,
|
||||
.Xr opnk 1 ,
|
||||
.Lk https://sr.ht/~lioploum/offpunk/
|
||||
.
|
||||
.Sh AUTHORS
|
||||
.An Lionel Dricot (Ploum) Aq Mt offpunk2 at ploum.eu
|
63
man/netcache.1
Normal file
63
man/netcache.1
Normal file
|
@ -0,0 +1,63 @@
|
|||
.Dd August 27, 2023
|
||||
.Dt NETCACHE 1
|
||||
.Os Debian
|
||||
.
|
||||
.Sh NAME
|
||||
.Nm netcache
|
||||
.Nd local Internet cache handler for offpunk
|
||||
.
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl \-path
|
||||
.Op Fl \-offline
|
||||
.Op Fl \-max\-size Ar MAX_SIZE
|
||||
.Op Fl \-timeout Ar TIMEOUT
|
||||
.Op Ar URL ...
|
||||
.Nm
|
||||
.Fl h | \-help
|
||||
.
|
||||
.Sh DESCRIPTION
|
||||
Netcache is the download and cache management engine of the browser
|
||||
.Xr offpunk 1 .
|
||||
It allows one to fetch a link and get its content,
|
||||
writing the content through the local cache for ulterior reference.
|
||||
Netcache can be forced into offline mode,
|
||||
in order to only fetch resources from the local cache,
|
||||
otherwise it would always refresh it from the version available online.
|
||||
It is also useful for mapping a given URL to its location in the cache,
|
||||
independently of whether it has been downloaded first.
|
||||
.Pp
|
||||
.Xr Offpunk 1
|
||||
is a command-line browser and feed reader dedicated to browsing the Web,
|
||||
Gemini, Gopher and Spartan.
|
||||
.Ss Positional arguments
|
||||
.Bl -tag -width Ds -offset indent
|
||||
.It Ar URL
|
||||
download the URL and output the content.
|
||||
.El
|
||||
.Ss Keyword arguments
|
||||
.Bl -tag -width Ds -offset indent
|
||||
.It Fl h , \-help
|
||||
show a help message and exit.
|
||||
.It Fl \-path
|
||||
output the path to the cache instead of the content of the URL.
|
||||
.It Fl \-max-size Ar MAX_SIZE
|
||||
cancel download of items above that size.
|
||||
The value is expressed in megabytes.
|
||||
.It Fl \-timeout Ar TIMEOUT
|
||||
time to wait before cancelling connection.
|
||||
The value is expressed in seconds.
|
||||
.El
|
||||
.
|
||||
.Sh EXIT STATUS
|
||||
.Ex -std
|
||||
.
|
||||
.Sh SEE ALSO
|
||||
.Xr ansicat 1 ,
|
||||
.Xr migrate-offpunk-cache 1 ,
|
||||
.Xr offpunk 1 ,
|
||||
.Xr opnk 1 ,
|
||||
.Lk https://sr.ht/~lioploum/offpunk/
|
||||
.
|
||||
.Sh AUTHORS
|
||||
.An Lionel Dricot (Ploum) Aq Mt offpunk2 at ploum.eu
|
53
man/opnk.1
Normal file
53
man/opnk.1
Normal file
|
@ -0,0 +1,53 @@
|
|||
.Dd August 27, 2023
|
||||
.Dt OPNK 1
|
||||
.Os Debian
|
||||
.
|
||||
.Sh NAME
|
||||
.Nm opnk
|
||||
.Nd universal open (like a punk) for offpunk
|
||||
.
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Ar INPUT ...
|
||||
.Nm
|
||||
.Fl h | \-help
|
||||
.
|
||||
.Sh DESCRIPTION
|
||||
Opnk is the "universal open (like a punk)".
|
||||
Opnk is a tool that will try to render any file or URL in the terminal,
|
||||
using
|
||||
.Xr netcache 1
|
||||
and
|
||||
.Xr ansicat 1 ,
|
||||
and put them in
|
||||
.Xr less 1 .
|
||||
If that doesn’t work,
|
||||
it will fallback to
|
||||
.Xr xdg-open 1 .
|
||||
.Pp
|
||||
.Xr Offpunk 1
|
||||
is a command-line browser and feed reader dedicated to browsing the Web,
|
||||
Gemini, Gopher and Spartan.
|
||||
.Ss Positional arguments
|
||||
.Bl -tag -width Ds -offset indent
|
||||
.It Ar INPUT
|
||||
path to the file or URL to open.
|
||||
.El
|
||||
.Ss Keyword arguments
|
||||
.Bl -tag -width Ds -offset indent
|
||||
.It Fl h , \-help
|
||||
Show a help message and exit
|
||||
.El
|
||||
.
|
||||
.Sh EXIT STATUS
|
||||
.Ex -std
|
||||
.
|
||||
.Sh SEE ALSO
|
||||
.Xr ansicat 1 ,
|
||||
.Xr migrate-offpunk-cache 1 ,
|
||||
.Xr netcache 1 ,
|
||||
.Xr offpunk 1 ,
|
||||
.Lk https://sr.ht/~lioploum/offpunk/
|
||||
.
|
||||
.Sh AUTHORS
|
||||
.An Lionel Dricot (Ploum) Aq Mt offpunk2 at ploum.eu
|
Loading…
Reference in New Issue
Block a user