aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-02-17 13:15:38 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-02-17 13:15:38 +0100
commit27274e8b23374db4a3adbc93b4276eca2639521a (patch)
treebb5b9b9a54c65018efc6e79124c8a82b9c871ce4
parentRewrote the updater (diff)
downloadsmolbote-27274e8b23374db4a3adbc93b4276eca2639521a.tar.xz
Added manpage
-rw-r--r--linux/makepkg/PKGBUILD3
-rw-r--r--linux/man/manpage.md8
-rw-r--r--linux/man/smolbote.741
-rw-r--r--linux/man/smolbote.7.html98
-rw-r--r--linux/man/smolbote.7.ronn29
-rw-r--r--src/forms/aboutdialog.cpp2
6 files changed, 181 insertions, 0 deletions
diff --git a/linux/makepkg/PKGBUILD b/linux/makepkg/PKGBUILD
index 1f76dda..a9e178a 100644
--- a/linux/makepkg/PKGBUILD
+++ b/linux/makepkg/PKGBUILD
@@ -70,4 +70,7 @@ package() {
# Install
ninja install
+
+ # man page
+ gzip --keep --to-stdout "$srcdir/smolbote-hg/linux/man/smolbote.7" > "$pkgdir/usr/local/share/man/man7/smolbote.7.gz"
}
diff --git a/linux/man/manpage.md b/linux/man/manpage.md
new file mode 100644
index 0000000..deb06fd
--- /dev/null
+++ b/linux/man/manpage.md
@@ -0,0 +1,8 @@
+To generate the manpage, use ronn:
+
+~~~sh
+## install
+gem install --user-install ronn
+## generate
+ronn smolbote.7.ronn
+~~~
diff --git a/linux/man/smolbote.7 b/linux/man/smolbote.7
new file mode 100644
index 0000000..9bf2458
--- /dev/null
+++ b/linux/man/smolbote.7
@@ -0,0 +1,41 @@
+.\" generated with Ronn/v0.7.3
+.\" http://github.com/rtomayko/ronn/tree/0.7.3
+.
+.TH "SMOLBOTE" "7" "February 2018" "" ""
+.
+.SH "NAME"
+\fBsmolbote\fR \- yet another no\-frills browser
+.
+.SH "SYNOPSIS"
+\fBpoi\fR [\fIoptions\fR\.\.\.] URL
+.
+.SH "OPTIONS"
+.
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Displays this help\.
+.
+.TP
+\fB\-v\fR, \fB\-\-version\fR
+Displays version information\.
+.
+.TP
+\fB\-c\fR, \fB\-\-config\fR
+Set configuration file\.
+.
+.TP
+\fB\-\-default\-config\fR
+Set the default configuration file\.
+.
+.TP
+\fB\-p\fR, \fB\-\-profile\fR
+Use this profile\.
+.
+.TP
+\fB\-\-socket\fR
+Local server socket
+.
+.TP
+\fB\-\-in\-new\-window\fR
+Open URL in new window
+
diff --git a/linux/man/smolbote.7.html b/linux/man/smolbote.7.html
new file mode 100644
index 0000000..c251436
--- /dev/null
+++ b/linux/man/smolbote.7.html
@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv='content-type' value='text/html;charset=utf8'>
+ <meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
+ <title>smolbote(7) - yet another no-frills browser</title>
+ <style type='text/css' media='all'>
+ /* style: man */
+ body#manpage {margin:0}
+ .mp {max-width:100ex;padding:0 9ex 1ex 4ex}
+ .mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
+ .mp h2 {margin:10px 0 0 0}
+ .mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
+ .mp h3 {margin:0 0 0 4ex}
+ .mp dt {margin:0;clear:left}
+ .mp dt.flush {float:left;width:8ex}
+ .mp dd {margin:0 0 0 9ex}
+ .mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
+ .mp pre {margin-bottom:20px}
+ .mp pre+h2,.mp pre+h3 {margin-top:22px}
+ .mp h2+pre,.mp h3+pre {margin-top:5px}
+ .mp img {display:block;margin:auto}
+ .mp h1.man-title {display:none}
+ .mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
+ .mp h2 {font-size:16px;line-height:1.25}
+ .mp h1 {font-size:20px;line-height:2}
+ .mp {text-align:justify;background:#fff}
+ .mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
+ .mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
+ .mp u {text-decoration:underline}
+ .mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
+ .mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
+ .mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
+ .mp b.man-ref {font-weight:normal;color:#434241}
+ .mp pre {padding:0 4ex}
+ .mp pre code {font-weight:normal;color:#434241}
+ .mp h2+pre,h3+pre {padding-left:0}
+ ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
+ ol.man-decor {width:100%}
+ ol.man-decor li.tl {text-align:left}
+ ol.man-decor li.tc {text-align:center;letter-spacing:4px}
+ ol.man-decor li.tr {text-align:right;float:right}
+ </style>
+</head>
+<!--
+ The following styles are deprecated and will be removed at some point:
+ div#man, div#man ol.man, div#man ol.head, div#man ol.man.
+
+ The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
+ .man-navigation should be used instead.
+-->
+<body id='manpage'>
+ <div class='mp' id='man'>
+
+ <div class='man-navigation' style='display:none'>
+ <a href="#NAME">NAME</a>
+ <a href="#SYNOPSIS">SYNOPSIS</a>
+ <a href="#OPTIONS">OPTIONS</a>
+ </div>
+
+ <ol class='man-decor man-head man head'>
+ <li class='tl'>smolbote(7)</li>
+ <li class='tc'></li>
+ <li class='tr'>smolbote(7)</li>
+ </ol>
+
+ <h2 id="NAME">NAME</h2>
+<p class="man-name">
+ <code>smolbote</code> - <span class="man-whatis">yet another no-frills browser</span>
+</p>
+
+<h2 id="SYNOPSIS">SYNOPSIS</h2>
+
+<p><code>poi</code> [<var>options</var>...] URL</p>
+
+<h2 id="OPTIONS">OPTIONS</h2>
+
+<dl>
+<dt><code>-h</code>, <code>--help</code></dt><dd><p>Displays this help.</p></dd>
+<dt><code>-v</code>, <code>--version</code></dt><dd><p>Displays version information.</p></dd>
+<dt><code>-c</code>, <code>--config</code></dt><dd><p>Set configuration file.</p></dd>
+<dt><code>--default-config</code></dt><dd><p>Set the default configuration file.</p></dd>
+<dt><code>-p</code>, <code>--profile</code></dt><dd><p>Use this profile.</p></dd>
+<dt><code>--socket</code></dt><dd><p>Local server socket</p></dd>
+<dt><code>--in-new-window</code></dt><dd><p>Open URL in new window</p></dd>
+</dl>
+
+
+
+ <ol class='man-decor man-foot man foot'>
+ <li class='tl'></li>
+ <li class='tc'>February 2018</li>
+ <li class='tr'>smolbote(7)</li>
+ </ol>
+
+ </div>
+</body>
+</html>
diff --git a/linux/man/smolbote.7.ronn b/linux/man/smolbote.7.ronn
new file mode 100644
index 0000000..ece9697
--- /dev/null
+++ b/linux/man/smolbote.7.ronn
@@ -0,0 +1,29 @@
+smolbote(7) -- yet another no-frills browser
+====
+
+## SYNOPSIS
+
+`poi` [<options>...] URL
+
+## OPTIONS
+
+* `-h`, `--help`:
+Displays this help.
+
+* `-v`, `--version`:
+Displays version information.
+
+* `-c`, `--config`:
+Set configuration file.
+
+* `--default-config`:
+Set the default configuration file.
+
+* `-p`, `--profile`:
+Use this profile.
+
+* `--socket`:
+Local server socket
+
+* `--in-new-window`:
+Open URL in new window
diff --git a/src/forms/aboutdialog.cpp b/src/forms/aboutdialog.cpp
index 93cb688..058c57d 100644
--- a/src/forms/aboutdialog.cpp
+++ b/src/forms/aboutdialog.cpp
@@ -10,6 +10,7 @@
#include "browser.h"
#include "ui_aboutdialog.h"
#include "version.h"
+#include <QtWebEngine/QtWebEngineVersion>
#include <boost/version.hpp>
// compiler
@@ -60,6 +61,7 @@ AboutDialog::AboutDialog(QWidget *parent)
"Compiled with " compiler "</p>"
"<p><ul>"
"<li>Qt " QT_VERSION_STR "</li>"
+ "<li>QtWebEngine " QTWEBENGINE_VERSION_STR "</li>"
"<li>Boost " BOOST_LIB_VERSION " </li>"
"</ul></p>"));
ui->toolBox->addItem(libsLabel, tr("Details"));