regenerated
authorJean-Philippe Orsini <orsinije@fr.ibm.com>
Tue, 12 Jul 2016 10:44:21 +0000 (12:44 +0200)
committerJean-Philippe Orsini <orsinije@fr.ibm.com>
Tue, 12 Jul 2016 10:44:21 +0000 (12:44 +0200)
src/news/asciidoctor_to_rss.adoc
www/news/asciidoctor_to_rss.html
www/news/feed.xml
www/news/news.html

index 8fc8233..a5291dc 100644 (file)
@@ -3,18 +3,21 @@ Jean-Philippe Orsini <jeanfi@gmail.com>
 :date: 2016-11-07
 :icons: font
 
-In order to have a website based only on Asciidoctor
-documents, I have written a small utility which
-converts a set of Asciidoctor documents to HTML pages and
-generates a RSS 2.0 feed.
+In order to ease the edition of this website and
+the management of the server, I want it to be purely
+static and generated from http://asciidoctor.org[Asciidoctor] documents.
+
+The _news_ part of the website is also written as Asciidoctor
+documents, `asciidoctor_to_rss` is converting them into static
+HTML pages and generates a RSS 2.0 file.
 
 == Installation of asciidoctor_to_rss
 
 It is required to install:
 
-* maven
+* http://maven.apache.org/download.cgi[Apache Maven] (3.3.9)
 
-* java (>1.7)
+* http://www.oracle.com/technetwork/java/javase/downloads/index.html[Java] (Sun JDK >=1.8)
 
 The sources can be retrieved from GIT:
 
@@ -31,22 +34,72 @@ mvn clean install
 
 == Howto write news
 
-Each news has to be written in a separate Asciidoctor document
+Each _news_ must be written in an http://asciidoctor.org[Asciidoctor] document
 and all documents must be dropped into a directory.
 
 There is not any restriction concerning the syntax because
-the utility is based on the java bridge of Asciidoctor.
-I have added an attribute 'date' which allows the utility
+the utility is based on the Java bridge of Asciidoctor.
+I have added an attribute `date` which allows the utility
 to know the publication date of the news.
 
-You can see some examples at https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD .
-The source document of this news is at https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD
+Here is an example of _news_:
+
+[source, asciidoc]
+----
+= Asciidoctor to RSS
+Jean-Philippe Orsini <jeanfi@gmail.com>
+:date: 2016-11-07
+:icons: font
+
+In order to ease the edition of this website and
+the management of the server, I want it to be purely
+static and generated from http://asciidoctor.org[Asciidoctor] documents.
+
+The _news_ part of the website is also written as Asciidoctor
+documents, `asciidoctor_to_rss` is converting them into static
+HTML pages and generates a RSS 2.0 file.
+
+== Installation of asciidoctor_to_rss
+
+It is required to install:
+
+* http://maven.apache.org/download.cgi[Apache Maven] (3.3.9)
+
+* http://www.oracle.com/technetwork/java/javase/downloads/index.html[Java] (Sun JDK >=1.8)
+----
+
+You can see few examples at
+https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD.
+The source document of this _news_ is at
+https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD.
 
 == Configuration
 
-The configuration of the utility can be done in text file.
+The configuration file of `asciidoctor_to_rss` is text file containing key/value pairs.
+
+See an example at
+https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD .
+
+[source, text]
+----
+feed.title=News
+feed.description=News of the wpitchoune.net website.
+feed.link=https://wpitchoune.net/news/feed.xml
+feed.baseurl=https://wpitchoune.net/news
+
+html.header.file=src/header.html
+----
+
+`feed.title`: the title used for the feed, in the RSS 2.0 and `news.html` files.
+
+`feed.description`: the description used in the RSS 2.0 file.
+
+`feed.link`: URI of the RSS 2.0 file.
+
+`feed.baseurl`: base URI where the HTML news files will be located.
 
-See an example at https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD .
+`html.header.file`: the content of the denoted file will be added in the `head` block of
+the generated HTML documents.
 
 == Run the utility
 
@@ -58,14 +111,15 @@ asciidoctor_to_rss.sh <IN_DIR> <OUT_DIR> <CFG_FILE>
 
 `IN_DIR`: the directory containing the news as Asciidoctor documents.
 
-`OUT_DIR`: the output directory which contains all generated files
+`OUT_DIR`: the output directory which contains all generated files.
 
-`CFG_FILE`: the path to the configuration file
+`CFG_FILE`: the path to the configuration file.
 
 The `OUT_DIR` will contain:
 
-* one HTML file for each Asciidoctor document
+* one HTML file for each Asciidoctor document,
 
-* the `news.html` file
+* the https://wpitchoune.net/news/news.html[`news.html`] file,
 
-* the `feed.xml` file which is a feed compatible with RSS v2.0.
+* and the https://wpitchoune.net/news/news.html[`feed.xml`] file which is a feed
+  compatible with RSS v2.0.
index 3e78bca..1f48b4c 100644 (file)
 <div class='date'>2016-11-07</div><div id="preamble">
 <div class="sectionbody">
 <div class="paragraph">
-<p>In order to have a website based only on Asciidoctor
-documents, I have written a small utility which
-converts a set of Asciidoctor documents to HTML pages and
-generates a RSS 2.0 feed.</p>
+<p>In order to ease the edition of this website and
+the management of the server, I want it to be purely
+static and generated from <a href="http://asciidoctor.org">Asciidoctor</a> documents.</p>
+</div>
+<div class="paragraph">
+<p>The <em>news</em> part of the website is also written as Asciidoctor
+documents, <code>asciidoctor_to_rss</code> is converting them into static
+HTML pages and generates a RSS 2.0 file.</p>
 </div>
 </div>
 </div>
@@ -30,10 +34,10 @@ generates a RSS 2.0 feed.</p>
 <div class="ulist">
 <ul>
 <li>
-<p>maven</p>
+<p><a href="http://maven.apache.org/download.cgi">Apache Maven</a> (3.3.9)</p>
 </li>
 <li>
-<p>java (&gt;1.7)</p>
+<p><a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Java</a> (Sun JDK &gt;=1.8)</p>
 </li>
 </ul>
 </div>
@@ -60,18 +64,47 @@ mvn clean install</pre>
 <h2 id="_howto_write_news">Howto write news</h2>
 <div class="sectionbody">
 <div class="paragraph">
-<p>Each news has to be written in a separate Asciidoctor document
+<p>Each <em>news</em> must be written in an <a href="http://asciidoctor.org">Asciidoctor</a> document
 and all documents must be dropped into a directory.</p>
 </div>
 <div class="paragraph">
 <p>There is not any restriction concerning the syntax because
-the utility is based on the java bridge of Asciidoctor.
-I have added an attribute 'date' which allows the utility
+the utility is based on the Java bridge of Asciidoctor.
+I have added an attribute <code>date</code> which allows the utility
 to know the publication date of the news.</p>
 </div>
 <div class="paragraph">
-<p>You can see some examples at <a href="https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD</a> .
-The source document of this news is at <a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD</a></p>
+<p>Here is an example of <em>news</em>:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">= Asciidoctor to RSS
+Jean-Philippe Orsini &lt;jeanfi@gmail.com&gt;
+:date: 2016-11-07
+:icons: font
+
+In order to ease the edition of this website and
+the management of the server, I want it to be purely
+static and generated from http://asciidoctor.org[Asciidoctor] documents.
+
+The _news_ part of the website is also written as Asciidoctor
+documents, `asciidoctor_to_rss` is converting them into static
+HTML pages and generates a RSS 2.0 file.
+
+== Installation of asciidoctor_to_rss
+
+It is required to install:
+
+* http://maven.apache.org/download.cgi[Apache Maven] (3.3.9)
+
+* http://www.oracle.com/technetwork/java/javase/downloads/index.html[Java] (Sun JDK &gt;=1.8)</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>You can see few examples at
+<a href="https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD</a>.
+The source document of this <em>news</em> is at
+<a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD</a>.</p>
 </div>
 </div>
 </div>
@@ -79,10 +112,37 @@ The source document of this news is at <a href="https://wpitchoune.net/gitweb/?p
 <h2 id="_configuration">Configuration</h2>
 <div class="sectionbody">
 <div class="paragraph">
-<p>The configuration of the utility can be done in text file.</p>
+<p>The configuration file of <code>asciidoctor_to_rss</code> is text file containing key/value pairs.</p>
+</div>
+<div class="paragraph">
+<p>See an example at
+<a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD</a> .</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlight"><code class="language-text" data-lang="text">feed.title=News
+feed.description=News of the wpitchoune.net website.
+feed.link=https://wpitchoune.net/news/feed.xml
+feed.baseurl=https://wpitchoune.net/news
+
+html.header.file=src/header.html</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p><code>feed.title</code>: the title used for the feed, in the RSS 2.0 and <code>news.html</code> files.</p>
+</div>
+<div class="paragraph">
+<p><code>feed.description</code>: the description used in the RSS 2.0 file.</p>
+</div>
+<div class="paragraph">
+<p><code>feed.link</code>: URI of the RSS 2.0 file.</p>
+</div>
+<div class="paragraph">
+<p><code>feed.baseurl</code>: base URI where the HTML news files will be located.</p>
 </div>
 <div class="paragraph">
-<p>See an example at <a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD</a> .</p>
+<p><code>html.header.file</code>: the content of the denoted file will be added in the <code>head</code> block of
+the generated HTML documents.</p>
 </div>
 </div>
 </div>
@@ -101,10 +161,10 @@ The source document of this news is at <a href="https://wpitchoune.net/gitweb/?p
 <p><code>IN_DIR</code>: the directory containing the news as Asciidoctor documents.</p>
 </div>
 <div class="paragraph">
-<p><code>OUT_DIR</code>: the output directory which contains all generated files</p>
+<p><code>OUT_DIR</code>: the output directory which contains all generated files.</p>
 </div>
 <div class="paragraph">
-<p><code>CFG_FILE</code>: the path to the configuration file</p>
+<p><code>CFG_FILE</code>: the path to the configuration file.</p>
 </div>
 <div class="paragraph">
 <p>The <code>OUT_DIR</code> will contain:</p>
@@ -112,13 +172,14 @@ The source document of this news is at <a href="https://wpitchoune.net/gitweb/?p
 <div class="ulist">
 <ul>
 <li>
-<p>one HTML file for each Asciidoctor document</p>
+<p>one HTML file for each Asciidoctor document,</p>
 </li>
 <li>
-<p>the <code>news.html</code> file</p>
+<p>the <a href="https://wpitchoune.net/news/news.html"><code>news.html</code></a> file,</p>
 </li>
 <li>
-<p>the <code>feed.xml</code> file which is a feed compatible with RSS v2.0.</p>
+<p>and the <a href="https://wpitchoune.net/news/news.html"><code>feed.xml</code></a> file which is a feed
+compatible with RSS v2.0.</p>
 </li>
 </ul>
 </div>
index c935850..6e355c1 100644 (file)
@@ -52,10 +52,14 @@ from the GIT repository: &lt;a href="https://git.wpitchoune.net/asciidoctor_to_r
       <description>&lt;div id="preamble"&gt;\r
 &lt;div class="sectionbody"&gt;\r
 &lt;div class="paragraph"&gt;\r
-&lt;p&gt;In order to have a website based only on Asciidoctor\r
-documents, I have written a small utility which\r
-converts a set of Asciidoctor documents to HTML pages and\r
-generates a RSS 2.0 feed.&lt;/p&gt;\r
+&lt;p&gt;In order to ease the edition of this website and\r
+the management of the server, I want it to be purely\r
+static and generated from &lt;a href="http://asciidoctor.org"&gt;Asciidoctor&lt;/a&gt; documents.&lt;/p&gt;\r
+&lt;/div&gt;\r
+&lt;div class="paragraph"&gt;\r
+&lt;p&gt;The &lt;em&gt;news&lt;/em&gt; part of the website is also written as Asciidoctor\r
+documents, &lt;code&gt;asciidoctor_to_rss&lt;/code&gt; is converting them into static\r
+HTML pages and generates a RSS 2.0 file.&lt;/p&gt;\r
 &lt;/div&gt;\r
 &lt;/div&gt;\r
 &lt;/div&gt;\r
@@ -68,10 +72,10 @@ generates a RSS 2.0 feed.&lt;/p&gt;
 &lt;div class="ulist"&gt;\r
 &lt;ul&gt;\r
 &lt;li&gt;\r
-&lt;p&gt;maven&lt;/p&gt;\r
+&lt;p&gt;&lt;a href="http://maven.apache.org/download.cgi"&gt;Apache Maven&lt;/a&gt; (3.3.9)&lt;/p&gt;\r
 &lt;/li&gt;\r
 &lt;li&gt;\r
-&lt;p&gt;java (&amp;gt;1.7)&lt;/p&gt;\r
+&lt;p&gt;&lt;a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html"&gt;Java&lt;/a&gt; (Sun JDK &amp;gt;=1.8)&lt;/p&gt;\r
 &lt;/li&gt;\r
 &lt;/ul&gt;\r
 &lt;/div&gt;\r
@@ -98,18 +102,47 @@ mvn clean install&lt;/pre&gt;
 &lt;h2 id="_howto_write_news"&gt;Howto write news&lt;/h2&gt;\r
 &lt;div class="sectionbody"&gt;\r
 &lt;div class="paragraph"&gt;\r
-&lt;p&gt;Each news has to be written in a separate Asciidoctor document\r
+&lt;p&gt;Each &lt;em&gt;news&lt;/em&gt; must be written in an &lt;a href="http://asciidoctor.org"&gt;Asciidoctor&lt;/a&gt; document\r
 and all documents must be dropped into a directory.&lt;/p&gt;\r
 &lt;/div&gt;\r
 &lt;div class="paragraph"&gt;\r
 &lt;p&gt;There is not any restriction concerning the syntax because\r
-the utility is based on the java bridge of Asciidoctor.\r
-I have added an attribute 'date' which allows the utility\r
+the utility is based on the Java bridge of Asciidoctor.\r
+I have added an attribute &lt;code&gt;date&lt;/code&gt; which allows the utility\r
 to know the publication date of the news.&lt;/p&gt;\r
 &lt;/div&gt;\r
 &lt;div class="paragraph"&gt;\r
-&lt;p&gt;You can see some examples at &lt;a href="https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD" class="bare"&gt;https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD&lt;/a&gt; .\r
-The source document of this news is at &lt;a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD" class="bare"&gt;https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD&lt;/a&gt;&lt;/p&gt;\r
+&lt;p&gt;Here is an example of &lt;em&gt;news&lt;/em&gt;:&lt;/p&gt;\r
+&lt;/div&gt;\r
+&lt;div class="listingblock"&gt;\r
+&lt;div class="content"&gt;\r
+&lt;pre class="highlight"&gt;&lt;code class="language-asciidoc" data-lang="asciidoc"&gt;= Asciidoctor to RSS\r
+Jean-Philippe Orsini &amp;lt;jeanfi@gmail.com&amp;gt;\r
+:date: 2016-11-07\r
+:icons: font\r
+\r
+In order to ease the edition of this website and\r
+the management of the server, I want it to be purely\r
+static and generated from http://asciidoctor.org[Asciidoctor] documents.\r
+\r
+The _news_ part of the website is also written as Asciidoctor\r
+documents, `asciidoctor_to_rss` is converting them into static\r
+HTML pages and generates a RSS 2.0 file.\r
+\r
+== Installation of asciidoctor_to_rss\r
+\r
+It is required to install:\r
+\r
+* http://maven.apache.org/download.cgi[Apache Maven] (3.3.9)\r
+\r
+* http://www.oracle.com/technetwork/java/javase/downloads/index.html[Java] (Sun JDK &amp;gt;=1.8)&lt;/code&gt;&lt;/pre&gt;\r
+&lt;/div&gt;\r
+&lt;/div&gt;\r
+&lt;div class="paragraph"&gt;\r
+&lt;p&gt;You can see few examples at\r
+&lt;a href="https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD" class="bare"&gt;https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD&lt;/a&gt;.\r
+The source document of this &lt;em&gt;news&lt;/em&gt; is at\r
+&lt;a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD" class="bare"&gt;https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD&lt;/a&gt;.&lt;/p&gt;\r
 &lt;/div&gt;\r
 &lt;/div&gt;\r
 &lt;/div&gt;\r
@@ -117,10 +150,37 @@ The source document of this news is at &lt;a href="https://wpitchoune.net/gitweb
 &lt;h2 id="_configuration"&gt;Configuration&lt;/h2&gt;\r
 &lt;div class="sectionbody"&gt;\r
 &lt;div class="paragraph"&gt;\r
-&lt;p&gt;The configuration of the utility can be done in text file.&lt;/p&gt;\r
+&lt;p&gt;The configuration file of &lt;code&gt;asciidoctor_to_rss&lt;/code&gt; is text file containing key/value pairs.&lt;/p&gt;\r
+&lt;/div&gt;\r
+&lt;div class="paragraph"&gt;\r
+&lt;p&gt;See an example at\r
+&lt;a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD" class="bare"&gt;https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD&lt;/a&gt; .&lt;/p&gt;\r
+&lt;/div&gt;\r
+&lt;div class="listingblock"&gt;\r
+&lt;div class="content"&gt;\r
+&lt;pre class="highlight"&gt;&lt;code class="language-text" data-lang="text"&gt;feed.title=News\r
+feed.description=News of the wpitchoune.net website.\r
+feed.link=https://wpitchoune.net/news/feed.xml\r
+feed.baseurl=https://wpitchoune.net/news\r
+\r
+html.header.file=src/header.html&lt;/code&gt;&lt;/pre&gt;\r
+&lt;/div&gt;\r
+&lt;/div&gt;\r
+&lt;div class="paragraph"&gt;\r
+&lt;p&gt;&lt;code&gt;feed.title&lt;/code&gt;: the title used for the feed, in the RSS 2.0 and &lt;code&gt;news.html&lt;/code&gt; files.&lt;/p&gt;\r
+&lt;/div&gt;\r
+&lt;div class="paragraph"&gt;\r
+&lt;p&gt;&lt;code&gt;feed.description&lt;/code&gt;: the description used in the RSS 2.0 file.&lt;/p&gt;\r
+&lt;/div&gt;\r
+&lt;div class="paragraph"&gt;\r
+&lt;p&gt;&lt;code&gt;feed.link&lt;/code&gt;: URI of the RSS 2.0 file.&lt;/p&gt;\r
+&lt;/div&gt;\r
+&lt;div class="paragraph"&gt;\r
+&lt;p&gt;&lt;code&gt;feed.baseurl&lt;/code&gt;: base URI where the HTML news files will be located.&lt;/p&gt;\r
 &lt;/div&gt;\r
 &lt;div class="paragraph"&gt;\r
-&lt;p&gt;See an example at &lt;a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD" class="bare"&gt;https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD&lt;/a&gt; .&lt;/p&gt;\r
+&lt;p&gt;&lt;code&gt;html.header.file&lt;/code&gt;: the content of the denoted file will be added in the &lt;code&gt;head&lt;/code&gt; block of\r
+the generated HTML documents.&lt;/p&gt;\r
 &lt;/div&gt;\r
 &lt;/div&gt;\r
 &lt;/div&gt;\r
@@ -139,10 +199,10 @@ The source document of this news is at &lt;a href="https://wpitchoune.net/gitweb
 &lt;p&gt;&lt;code&gt;IN_DIR&lt;/code&gt;: the directory containing the news as Asciidoctor documents.&lt;/p&gt;\r
 &lt;/div&gt;\r
 &lt;div class="paragraph"&gt;\r
-&lt;p&gt;&lt;code&gt;OUT_DIR&lt;/code&gt;: the output directory which contains all generated files&lt;/p&gt;\r
+&lt;p&gt;&lt;code&gt;OUT_DIR&lt;/code&gt;: the output directory which contains all generated files.&lt;/p&gt;\r
 &lt;/div&gt;\r
 &lt;div class="paragraph"&gt;\r
-&lt;p&gt;&lt;code&gt;CFG_FILE&lt;/code&gt;: the path to the configuration file&lt;/p&gt;\r
+&lt;p&gt;&lt;code&gt;CFG_FILE&lt;/code&gt;: the path to the configuration file.&lt;/p&gt;\r
 &lt;/div&gt;\r
 &lt;div class="paragraph"&gt;\r
 &lt;p&gt;The &lt;code&gt;OUT_DIR&lt;/code&gt; will contain:&lt;/p&gt;\r
@@ -150,13 +210,14 @@ The source document of this news is at &lt;a href="https://wpitchoune.net/gitweb
 &lt;div class="ulist"&gt;\r
 &lt;ul&gt;\r
 &lt;li&gt;\r
-&lt;p&gt;one HTML file for each Asciidoctor document&lt;/p&gt;\r
+&lt;p&gt;one HTML file for each Asciidoctor document,&lt;/p&gt;\r
 &lt;/li&gt;\r
 &lt;li&gt;\r
-&lt;p&gt;the &lt;code&gt;news.html&lt;/code&gt; file&lt;/p&gt;\r
+&lt;p&gt;the &lt;a href="https://wpitchoune.net/news/news.html"&gt;&lt;code&gt;news.html&lt;/code&gt;&lt;/a&gt; file,&lt;/p&gt;\r
 &lt;/li&gt;\r
 &lt;li&gt;\r
-&lt;p&gt;the &lt;code&gt;feed.xml&lt;/code&gt; file which is a feed compatible with RSS v2.0.&lt;/p&gt;\r
+&lt;p&gt;and the &lt;a href="https://wpitchoune.net/news/news.html"&gt;&lt;code&gt;feed.xml&lt;/code&gt;&lt;/a&gt; file which is a feed\r
+compatible with RSS v2.0.&lt;/p&gt;\r
 &lt;/li&gt;\r
 &lt;/ul&gt;\r
 &lt;/div&gt;\r
index b1cea92..bcf505c 100644 (file)
 <div id="preamble">
 <div class="sectionbody">
 <div class="paragraph">
-<p>In order to have a website based only on Asciidoctor
-documents, I have written a small utility which
-converts a set of Asciidoctor documents to HTML pages and
-generates a RSS 2.0 feed.</p>
+<p>In order to ease the edition of this website and
+the management of the server, I want it to be purely
+static and generated from <a href="http://asciidoctor.org">Asciidoctor</a> documents.</p>
+</div>
+<div class="paragraph">
+<p>The <em>news</em> part of the website is also written as Asciidoctor
+documents, <code>asciidoctor_to_rss</code> is converting them into static
+HTML pages and generates a RSS 2.0 file.</p>
 </div>
 </div>
 </div>
@@ -35,10 +39,10 @@ generates a RSS 2.0 feed.</p>
 <div class="ulist">
 <ul>
 <li>
-<p>maven</p>
+<p><a href="http://maven.apache.org/download.cgi">Apache Maven</a> (3.3.9)</p>
 </li>
 <li>
-<p>java (&gt;1.7)</p>
+<p><a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Java</a> (Sun JDK &gt;=1.8)</p>
 </li>
 </ul>
 </div>
@@ -65,18 +69,47 @@ mvn clean install</pre>
 <h2 id="_howto_write_news">Howto write news</h2>
 <div class="sectionbody">
 <div class="paragraph">
-<p>Each news has to be written in a separate Asciidoctor document
+<p>Each <em>news</em> must be written in an <a href="http://asciidoctor.org">Asciidoctor</a> document
 and all documents must be dropped into a directory.</p>
 </div>
 <div class="paragraph">
 <p>There is not any restriction concerning the syntax because
-the utility is based on the java bridge of Asciidoctor.
-I have added an attribute 'date' which allows the utility
+the utility is based on the Java bridge of Asciidoctor.
+I have added an attribute <code>date</code> which allows the utility
 to know the publication date of the news.</p>
 </div>
 <div class="paragraph">
-<p>You can see some examples at <a href="https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD</a> .
-The source document of this news is at <a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD</a></p>
+<p>Here is an example of <em>news</em>:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">= Asciidoctor to RSS
+Jean-Philippe Orsini &lt;jeanfi@gmail.com&gt;
+:date: 2016-11-07
+:icons: font
+
+In order to ease the edition of this website and
+the management of the server, I want it to be purely
+static and generated from http://asciidoctor.org[Asciidoctor] documents.
+
+The _news_ part of the website is also written as Asciidoctor
+documents, `asciidoctor_to_rss` is converting them into static
+HTML pages and generates a RSS 2.0 file.
+
+== Installation of asciidoctor_to_rss
+
+It is required to install:
+
+* http://maven.apache.org/download.cgi[Apache Maven] (3.3.9)
+
+* http://www.oracle.com/technetwork/java/javase/downloads/index.html[Java] (Sun JDK &gt;=1.8)</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>You can see few examples at
+<a href="https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=tree;f=src/news;hb=HEAD</a>.
+The source document of this <em>news</em> is at
+<a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/news/asciidoctor_to_rss.adoc;hb=HEAD</a>.</p>
 </div>
 </div>
 </div>
@@ -84,10 +117,37 @@ The source document of this news is at <a href="https://wpitchoune.net/gitweb/?p
 <h2 id="_configuration">Configuration</h2>
 <div class="sectionbody">
 <div class="paragraph">
-<p>The configuration of the utility can be done in text file.</p>
+<p>The configuration file of <code>asciidoctor_to_rss</code> is text file containing key/value pairs.</p>
+</div>
+<div class="paragraph">
+<p>See an example at
+<a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD</a> .</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlight"><code class="language-text" data-lang="text">feed.title=News
+feed.description=News of the wpitchoune.net website.
+feed.link=https://wpitchoune.net/news/feed.xml
+feed.baseurl=https://wpitchoune.net/news
+
+html.header.file=src/header.html</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p><code>feed.title</code>: the title used for the feed, in the RSS 2.0 and <code>news.html</code> files.</p>
+</div>
+<div class="paragraph">
+<p><code>feed.description</code>: the description used in the RSS 2.0 file.</p>
+</div>
+<div class="paragraph">
+<p><code>feed.link</code>: URI of the RSS 2.0 file.</p>
+</div>
+<div class="paragraph">
+<p><code>feed.baseurl</code>: base URI where the HTML news files will be located.</p>
 </div>
 <div class="paragraph">
-<p>See an example at <a href="https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD" class="bare">https://wpitchoune.net/gitweb/?p=www.git;a=blob;f=src/asciidoctorrss.props;hb=HEAD</a> .</p>
+<p><code>html.header.file</code>: the content of the denoted file will be added in the <code>head</code> block of
+the generated HTML documents.</p>
 </div>
 </div>
 </div>
@@ -106,10 +166,10 @@ The source document of this news is at <a href="https://wpitchoune.net/gitweb/?p
 <p><code>IN_DIR</code>: the directory containing the news as Asciidoctor documents.</p>
 </div>
 <div class="paragraph">
-<p><code>OUT_DIR</code>: the output directory which contains all generated files</p>
+<p><code>OUT_DIR</code>: the output directory which contains all generated files.</p>
 </div>
 <div class="paragraph">
-<p><code>CFG_FILE</code>: the path to the configuration file</p>
+<p><code>CFG_FILE</code>: the path to the configuration file.</p>
 </div>
 <div class="paragraph">
 <p>The <code>OUT_DIR</code> will contain:</p>
@@ -117,13 +177,14 @@ The source document of this news is at <a href="https://wpitchoune.net/gitweb/?p
 <div class="ulist">
 <ul>
 <li>
-<p>one HTML file for each Asciidoctor document</p>
+<p>one HTML file for each Asciidoctor document,</p>
 </li>
 <li>
-<p>the <code>news.html</code> file</p>
+<p>the <a href="https://wpitchoune.net/news/news.html"><code>news.html</code></a> file,</p>
 </li>
 <li>
-<p>the <code>feed.xml</code> file which is a feed compatible with RSS v2.0.</p>
+<p>and the <a href="https://wpitchoune.net/news/news.html"><code>feed.xml</code></a> file which is a feed
+compatible with RSS v2.0.</p>
 </li>
 </ul>
 </div>