Skip to content

Commit 88fc00a

Browse files
authored
Merge pull request #220 from ArcEye/man-stubs
Man page stub & script to create links to it for each manual page
2 parents 19fdbfd + 34083e0 commit 88fc00a

File tree

2 files changed

+117
-0
lines changed

2 files changed

+117
-0
lines changed

docs/man/man1/machinekit.1

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
.\" Copyright (c) 2016 ArcEye <arceye@mgware.co.uk>
2+
.\"
3+
.\" This is free documentation; you can redistribute it and/or
4+
.\" modify it under the terms of the GNU General Public License as
5+
.\" published by the Free Software Foundation; either version 2 of
6+
.\" the License, or (at your option) any later version.
7+
.\"
8+
.\" The GNU General Public License's references to "object code"
9+
.\" and "executables" are to be interpreted as the output of any
10+
.\" document formatting or typesetting system, including
11+
.\" intermediate and printed output.
12+
.\"
13+
.\" This manual is distributed in the hope that it will be useful,
14+
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
.\" GNU General Public License for more details.
17+
.\"
18+
.\" You should have received a copy of the GNU General Public
19+
.\" License along with this manual; if not, write to the Free
20+
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
21+
.\" USA.
22+
.\"
23+
.\"
24+
.\"
25+
.TH machinekit "1" "2016-08-09" "Machinekit Documentation"
26+
.SH NAME
27+
\fBmachinekit \- Accessing Machinekit Manual Pages\fR
28+
29+
.SH DESCRIPTION
30+
31+
All Machinekit documentation has been reorganised.
32+
33+
This stub is to assist users to find the information they are seeking.
34+
35+
.SH WEBSITE
36+
37+
troff man page builds have been deprecated as part of Machinekit
38+
39+
The first port of call for manual pages (and all documentation) should be the website.
40+
41+
\fBhttp://www.machinekit.io\fR
42+
43+
From the right hand side bar - which is visible from anywhere in the 'Documentation' section, select either
44+
45+
\fBhttp://www.machinekit.io/docs/man/man1/\fR For information on utilities and GUIs
46+
47+
\fBhttp://www.machinekit.io/docs/man/man3/\fR For information on the hal and rtapi APIs
48+
49+
\fBhttp://www.machinekit.io/docs/man/man9/\fR For information on components and drivers
50+
51+
.SH MANUAL PAGES PACKAGE
52+
53+
To cater for terminal viewing locally, a second option is available
54+
55+
A Package called \fB'machinekit-manual-pages'\fR is now automatically created as part of the website build process.
56+
57+
This is available from deb.machinekit.io as per any other package.
58+
59+
The manual pages will then be available at /usr/share/doc/machinekit/man
60+
61+
You can display the pages easily with the asciidoctor plugin for firefox
62+
63+
\fBhttps://addons.mozilla.org/en-GB/firefox/addon/asciidoctorjs-live-preview/\fR
64+
65+
or for chrome
66+
67+
\fBhttps://chrome.google.com/webstore/detail/asciidoctorjs-live-preview/iaalpfgpbocpdfblpnhhgllgbdbchmia?hl=en\fR
68+
69+
Alternately, for a terminal display of manual pages, the Machinekit package now contains a script called \fBmank\fR.
70+
71+
Invoking \fB'mank debounce'\fR for instance, will display the manual page for the component \fBdebounce\fR
72+
73+
\fBmank\fR uses \fBasciidoctor\fR and \fBelinks\fR and will prompt for their installation if not present.
74+
75+
They were not made dependencies of the machinekit package deliberately, as the overwhelming majority of users are likely
76+
77+
to simply use the web site and never install the local manual pages.
78+
79+
(NB If you are a developer and use the --view-doc option to (inst)comp, you will need asciidoctor and elinks for that to operate.)
80+
81+
.SH AUTHOR
82+
This man page written by ArcEye, as part of the Machinekit project.
83+
84+
.SH REPORTING BUGS
85+
Report bugs to https://groups.google.com/forum/#!forum/machinekit
86+
87+
.SH LICENCE
88+
GPL2 or higher.

scripts/man-stubs.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
3+
mkdir -p docs/man/man1/links
4+
for i in docs/man/man1/*.asciidoc ; do
5+
compname=$(basename -s .asciidoc "$i") ;
6+
if [ $compname != "index" ] ; then
7+
ln -s -f /usr/share/man/man1/machinekit.1 docs/man/man1/links/$compname.1
8+
fi
9+
done
10+
11+
mkdir -p docs/man/man3/links
12+
for i in docs/man/man3/*.asciidoc ; do
13+
compname=$(basename -s .asciidoc "$i") ;
14+
if [ $compname != "index" ] ; then
15+
ln -s -f /usr/share/man/man1/machinekit.1 docs/man/man3/links/$compname.3
16+
fi
17+
done
18+
19+
mkdir -p docs/man/man9/links
20+
for i in docs/man/man9/*.asciidoc ; do
21+
compname=$(basename -s .asciidoc "$i") ;
22+
if [ $compname != "index" ] ; then
23+
ln -s -f /usr/share/man/man1/machinekit.1 docs/man/man9/links/$compname.9
24+
fi
25+
done
26+
27+
echo "Links created"
28+
29+

0 commit comments

Comments
 (0)