added ppastats
authorJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 14 Jun 2016 15:45:24 +0000 (17:45 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 14 Jun 2016 15:45:24 +0000 (17:45 +0200)
src/ppastats/ppastats.adoc [new file with mode: 0644]
www-update.sh
www/ppastats/index.html [new symlink]
www/ppastats/ppastats.html [new file with mode: 0644]
www/style.css

diff --git a/src/ppastats/ppastats.adoc b/src/ppastats/ppastats.adoc
new file mode 100644 (file)
index 0000000..6792c9a
--- /dev/null
@@ -0,0 +1,80 @@
+= PPAstats
+:docinfo2:
+:icons: font
+
+`ppastats` is a command line tool which produces HTML report for viewing
+download statistics of an Ubuntu PPA.
+
+Examples are available at: http://wpitchoune.net/ppastats/ppa.
+
+The license of `ppastats` is GPL v2.
+
+`ppastats` works fine with Firefox 6/7, Google Chrome 12 and IE8.
+
+== Usage
+
+----
+ppastats jfi psensor-unstable -o /var/www/ppastats
+----
+
+Generates the HTML report for the PPA: `ppa:jfi/psensor-unstable`.
+
+Use `ppastats --help` for more options.
+
+== Installation
+
+=== Ubuntu
+
+For Ubuntu, the easiest way to install `ppastats` is to use its
+dedicated PPA:
+
+----
+sudo apt-add-repository ppa:jfi/ppastats
+sudo apt-get update
+sudo apt-get install ppastats
+----
+
+=== Compilation
+
+`ppastats` should compile on any modern Linux distribution, it
+requires the `CURL` and `json-c` libraries.
+
+Download the source archive from: http://wpitchoune.net/ppastats/files.
+
+For compilation on Ubuntu:
+
+----
+apt-get install libcurl4-openssl-dev libjson0-dev
+./configure
+make clean all
+----
+
+and finally, install `ppastats`:
+
+----
+sudo make install
+----
+
+Alternatively, the last development version can be retrieved using GIT:
+
+----
+git clone git://git.wpitchoune.net/ppastats.git
+----
+
+To build the Ubuntu package:
+
+----
+git clone git://git.wpitchoune.net/ppastats-pkg-ubuntu.git
+cd ppastats-pkg-ubuntu
+git-buildpackage
+----
+
+== Download
+
+* link:files[Source archive]
+
+== Contact
+
+Bugs and comments can be sent to jeanfi@gmail.com.
+
+For announces or general information subscribe to link:http://plus.google.com/u/0/115217597639251170338?prsrc=3[ppastats Google+ page].
index 4dcfcb1..bacb403 100755 (executable)
@@ -31,3 +31,7 @@ asciidoctor $OPTS src/psensor/contribute.adoc -D www/psensor/
 OPTS="-a linkcss -a stylesheet=style.css -a docinfodir=$RDIR"
 
 asciidoctor $OPTS src/index.adoc -D www/
+
+OPTS="-a linkcss -a stylesheet=../style.css"
+
+asciidoctor $OPTS src/ppastats/ppastats.adoc -D www/ppastats/
diff --git a/www/ppastats/index.html b/www/ppastats/index.html
new file mode 120000 (symlink)
index 0000000..06dd9f5
--- /dev/null
@@ -0,0 +1 @@
+ppastats.html
\ No newline at end of file
diff --git a/www/ppastats/ppastats.html b/www/ppastats/ppastats.html
new file mode 100644 (file)
index 0000000..ce39279
--- /dev/null
@@ -0,0 +1,147 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="UTF-8">
+<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="generator" content="Asciidoctor 1.5.4">
+<title>PPAstats</title>
+<link rel="stylesheet" href="./../style.css">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
+<script src="../nav.js"></script>
+</head>
+<body class="article">
+<div id="header">
+<h1>PPAstats</h1>
+</div>
+<div id="content">
+<div id="preamble">
+<div class="sectionbody">
+<div class="paragraph">
+<p><code>ppastats</code> is a command line tool which produces HTML report for viewing
+download statistics of an Ubuntu PPA.</p>
+</div>
+<div class="paragraph">
+<p>Examples are available at: <a href="http://wpitchoune.net/ppastats/ppa" class="bare">http://wpitchoune.net/ppastats/ppa</a>.</p>
+</div>
+<div class="paragraph">
+<p>The license of <code>ppastats</code> is GPL v2.</p>
+</div>
+<div class="paragraph">
+<p><code>ppastats</code> works fine with Firefox 6/7, Google Chrome 12 and IE8.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_usage">Usage</h2>
+<div class="sectionbody">
+<div class="listingblock">
+<div class="content">
+<pre>ppastats jfi psensor-unstable -o /var/www/ppastats</pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Generates the HTML report for the PPA: <code>ppa:jfi/psensor-unstable</code>.</p>
+</div>
+<div class="paragraph">
+<p>Use <code>ppastats --help</code> for more options.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_installation">Installation</h2>
+<div class="sectionbody">
+<div class="sect2">
+<h3 id="_ubuntu">Ubuntu</h3>
+<div class="paragraph">
+<p>For Ubuntu, the easiest way to install <code>ppastats</code> is to use its
+dedicated PPA:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>sudo apt-add-repository ppa:jfi/ppastats
+sudo apt-get update
+sudo apt-get install ppastats</pre>
+</div>
+</div>
+</div>
+<div class="sect2">
+<h3 id="_compilation">Compilation</h3>
+<div class="paragraph">
+<p><code>ppastats</code> should compile on any modern Linux distribution, it
+requires the <code>CURL</code> and <code>json-c</code> libraries.</p>
+</div>
+<div class="paragraph">
+<p>Download the source archive from: <a href="http://wpitchoune.net/ppastats/files" class="bare">http://wpitchoune.net/ppastats/files</a>.</p>
+</div>
+<div class="paragraph">
+<p>For compilation on Ubuntu:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>apt-get install libcurl4-openssl-dev libjson0-dev
+./configure
+make clean all</pre>
+</div>
+</div>
+<div class="paragraph">
+<p>and finally, install <code>ppastats</code>:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>sudo make install</pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Alternatively, the last development version can be retrieved using GIT:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>git clone git://git.wpitchoune.net/ppastats.git</pre>
+</div>
+</div>
+<div class="paragraph">
+<p>To build the Ubuntu package:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>git clone git://git.wpitchoune.net/ppastats-pkg-ubuntu.git
+cd ppastats-pkg-ubuntu
+git-buildpackage</pre>
+</div>
+</div>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_download">Download</h2>
+<div class="sectionbody">
+<div class="ulist">
+<ul>
+<li>
+<p><a href="files">Source archive</a></p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_contact">Contact</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>Bugs and comments can be sent to <a href="mailto:jeanfi@gmail.com">jeanfi@gmail.com</a>.</p>
+</div>
+<div class="paragraph">
+<p>For announces or general information subscribe to <a href="http://plus.google.com/u/0/115217597639251170338?prsrc=3">ppastats Google+ page</a>.</p>
+</div>
+</div>
+</div>
+</div>
+<div id="footer">
+<div id="footer-text">
+Last updated 2016-06-14 17:45:11 CEST
+</div>
+</div>
+</body>
+</html>
\ No newline at end of file
index b50f01f..b4e45cd 100644 (file)
@@ -3,9 +3,10 @@ body {
         margin: 0;
         padding: 0;
        background-color: #fdfdfd;
+       font-size: 100%;
 }
 
-div, h2, h3 {
+div, h2, h3, nav ul {
     margin: 0;
     padding: 0;
 }
@@ -19,14 +20,25 @@ nav {
     color: white;
 }
 
-nav ul {
-    padding: 0;
-    margin: 0;
-}
-
 h1 {
     margin: 1em 1em 1em 1em;
     padding: 0;
+    font-size: 200%;
+    font-weight: bold;
+}
+
+h2 {
+    font-size: 160%;
+    font-weight: bold;
+}
+
+h3 {
+    font-size: 110%;
+    font-weight: bold;
+}
+
+h2,h3 {
+    margin: 0em 0em 1em 0em;
 }
 
 #content {