Skip to content

Commit 2320c81

Browse files
tdittrdavidv1992
authored andcommitted
Generate man pages and add new one to deployment
1 parent 2a4d76b commit 2320c81

File tree

5 files changed

+59
-3
lines changed

5 files changed

+59
-3
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.\" Automatically generated by Pandoc 3.6.2
2+
.\"
3+
.TH "STATIME\-METRICS\-EXPORTER" "8" "" "statime 0.2.2" "statime"
4+
.SH NAME
5+
\f[CR]statime\-metrics\-exporter\f[R] \- Prometheus/OpenMetrics exporter
6+
for the Statime PTP daemon
7+
.SH SYNOPSIS
8+
\f[CR]statime\-metrics\-exporter\f[R] [\f[CR]\-c\f[R] \f[I]path\f[R]]
9+
.PD 0
10+
.P
11+
.PD
12+
\f[CR]statime\-metrics\-exporter\f[R] \f[CR]\-h\f[R]
13+
.PD 0
14+
.P
15+
.PD
16+
\f[CR]statime\-metrics\-exporter\f[R] \f[CR]\-V\f[R]
17+
.SH DESCRIPTION
18+
\&...
19+
.SH OPTIONS
20+
.TP
21+
\f[CR]\-c\f[R] \f[I]path\f[R], \f[CR]\-\-config\f[R]=\f[I]path\f[R]
22+
Path to the configuration file for the statime daemon.
23+
If not specified this defaults to \f[CR]/etc/statime/statime.toml\f[R].
24+
.TP
25+
\f[CR]\-h\f[R], \f[CR]\-\-help\f[R]
26+
Display usage instructions.
27+
.TP
28+
\f[CR]\-V\f[R], \f[CR]\-\-version\f[R]
29+
Display version information.
30+
.SH SEE ALSO
31+
statime(8), statime.toml(5)

docs/precompiled/man/statime.8

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 3.4
1+
.\" Automatically generated by Pandoc 3.6.2
22
.\"
33
.TH "STATIME" "8" "" "statime 0.2.2" "statime"
44
.SH NAME
@@ -26,3 +26,5 @@ Display usage instructions.
2626
.TP
2727
\f[CR]\-V\f[R], \f[CR]\-\-version\f[R]
2828
Display version information.
29+
.SH SEE ALSO
30+
statime\-metrics\-exporter(8), statime.toml(5)

docs/precompiled/man/statime.toml.5

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 3.4
1+
.\" Automatically generated by Pandoc 3.6.2
22
.\"
33
.TH "STATIME.TOML" "5" "" "statime 0.2.2" "statime"
44
.SH NAME
@@ -115,3 +115,24 @@ The default is to accept all clock identities.
115115
Set a different minor ptp version.
116116
Should be either 1 or 0, intended to work around misbehaving ptp 2.0
117117
hardware
118+
.SS \f[CR][observability]\f[R]
119+
.TP
120+
\f[CR]observation\-path\f[R] = \f[I]path\f[R] (\f[B]unset\f[R])
121+
Path where the daemon will create an observation Unix domain socket.
122+
This socket is used by \f[CR]statime\-metrics\-exporter\f[R] to read the
123+
current status of the daemon.
124+
If not set (the default) no observation socket will be created, and it
125+
is not possible to use \f[CR]statime\-metrics\-exporter\f[R] to observe
126+
the daemon.
127+
.TP
128+
\f[CR]observation\-permissions\f[R] = \f[I]mode\f[R] (\f[B]0o666\f[R])
129+
The file system permissions with which the observation socket should be
130+
created.
131+
Warning: You should always write this number with the octal prefix
132+
\f[CR]0o\f[R], otherwise your permissions might be interpreted wrongly.
133+
The default should be OK for most applications.
134+
.TP
135+
\f[CR]metrics\-exporter\-listen\f[R] = \f[I]socketaddr\f[R] (\f[B]127.0.0.1:9975\f[R])
136+
The listen address that is used for the statime\-metrics\-exporter(8).
137+
.SH SEE ALSO
138+
statime(8), statime\-metrics\-exporter(8)

statime-linux/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ assets = [
5555
["target/release/statime", "/usr/bin/statime", "755"],
5656
["target/release/statime-metrics-exporter", "/usr/bin/statime-metrics-exporter", "755"],
5757
["docs/precompiled/man/statime.8", "/usr/share/man/man8/statime.8", "644"],
58+
["docs/precompiled/man/statime-metrics-exporter.8", "/usr/share/man/man8/statime-metrics-exporter.8", "644"],
5859
["docs/precompiled/man/statime.toml.5", "/usr/share/man/man5/statime.toml.5", "644"],
5960
["docs/examples/conf/statime.toml.default", "/usr/share/doc/statime/statime.toml.default", "644"],
6061
["docs/examples/conf/statime.toml.default", "/etc/statime/statime.toml", "644"],
@@ -81,6 +82,7 @@ assets = [
8182
{ source = "target/release/statime", dest = "/usr/bin/statime", mode = "755" },
8283
{ source = "target/release/statime-metrics-exporter", dest = "/usr/bin/statime-metrics-exporter", mode = "755" },
8384
{ source = "docs/precompiled/man/statime.8", dest = "/usr/share/man/man8/statime.8", mode = "644", doc = true },
85+
{ source = "docs/precompiled/man/statime-metrics-exporter.8", dest = "/usr/share/man/man8/statime-metrics-exporter.8", mode = "644", doc = true },
8486
{ source = "docs/precompiled/man/statime.toml.5", dest = "/usr/share/man/man5/statime-toml.5", mode = "644", doc = true },
8587
{ source = "docs/examples/conf/statime.toml.default", dest = "/usr/share/doc/statime/statime.toml.default", mode = "644", doc = true },
8688
{ source = "docs/examples/conf/statime.toml.default", dest = "/etc/statime/statime.toml", mode = "644", config = true },

utils/generate-man.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eo pipefail
44

55
docs_dir="docs/man"
66
output_dir="${1:-"docs/precompiled/man"}"
7-
files=("statime.8" "statime.toml.5")
7+
files=("statime.8" "statime-metrics-exporter.8" "statime.toml.5")
88

99
mkdir -p "$output_dir"
1010

0 commit comments

Comments
 (0)