Stog is a static web site compiler. It is able to handle blog posts as well are regular pages. It can be seen as a kind of Jekyll developed in OCaml.

Since release 0.12.0, Stog can be used to compile a single file to admittedly publish HTML files where PDF was used (think about math articles, for example).

The main features are:

Examples of web sites generated by Stog:

A mailing-list is here.

Get the code

Stog is developped on Github. See the Installation page for details about downloading and installing.

License

Stog is released under GPL v3.

Files in the doc/.stog/templates/ directory are released in the public domain; feel free to use them for your own site.

Latest news
May 16, 2014

Release 0.12.0 of stog is available from the Installation page.

next
March 21, 2014

Release 0.11.1 of stog is available from the Installation page.

next
March 20, 2014

Release 0.11.0 of stog is available from the Installation page.

next
January 21, 2014

Release 0.10.0 of stog is available from the Installation page.

next

For information you can see the source code of the page.

<page
  main="true"
  title="Stog"
  stog:site-description="Static blog and web site generator"
  stog:site-email="zoggy 'AT' bat8 'DOT' org"
  stog:site-url="https://zoggy.github.io/stog"
  stog:rss-length="10"
  navbar-home="active"
  stog:archived-docs="post"
  with-contents="true"
>
<stog:use>nocounter</stog:use>
<stog:sectionning>section,subsection</stog:sectionning>
<stog:hxml foo=""><hcode lang="xml" defer_="1"><contents/></hcode></stog:hxml>
<stog:ixml foo=""><icode lang="xml" defer_="1"><contents/></icode></stog:ixml>
<stog:nbsp>&#160;</stog:nbsp>
<stog:doccode foo="">
<p class="alert alert-info">
For information you can see the <a href="#pagesource"> source code of the page</a>.
</p>
<div id="pagesource">
  <hcode lang="xml" defer_="1"><include file="&lt;stog-dir/&gt;/&lt;doc-src/&gt;" raw="true"/></hcode>
</div>
</stog:doccode>
<stog:command prompt="#"><pre><prompt/> <contents/></pre></stog:command>

<stog:also-base-rules>
<p class="alert alert-warning">This function also applies the
<doc href="funs#base">base rules</doc>.</p>
</stog:also-base-rules>

<stog:rule foo=""><ixml defer_="1">&lt;<contents/>&gt;</ixml></stog:rule>

<contents>
<p>Stog is a static web site compiler. It is able to
handle blog posts as well are regular pages. It can be seen as
a kind of <ext-a href="http://jekyllrb.com/">Jekyll</ext-a> developed in OCaml.
</p>
<p>
Since <doc href="release-0.12.0">release 0.12.0</doc>, Stog can be used
to compile a single file to admittedly publish HTML files where PDF was used
(think about math articles, for example).
</p>
<p>
The main features are:
</p>
<ul>
<li>It is developped in <ext-a href="http://ocaml.org/">OCaml</ext-a>
and can be extended with OCaml <doc href="writing_plugins">plugins</doc>,</li>
<li>It is based on a XML engine allowing to apply substitutions
  (rewrite rules) on some tags. Some substitutions are pre-defined, and others can be
défined in your documents or added by plugins,</li>
<li>It easily supports multi-language sites,</li>
<li>A lot of <doc href="funs">functions</doc> can be used to handle
  sectionning, table of contents, verified cross-references, ...,
</li>
<li>OCaml code can be interpreted at compilation time and the result
  included in the generated documents,
</li>
<li>Some <doc href="plugins">plugins</doc> ease the inclusion of
  <ext-a href="http://www.graphviz.org">graphviz</ext-a> graphs,
  and pictures generated by <ext-a href="http://asymptote.sourceforge.net/">Aysmptote</ext-a>
  or <doc href="latex-in-stog">LaTeX</doc>,
</li>
<li>A <doc href="markdown">markdown</doc> plugin converts markdown sources.
</li>
</ul>
<p>
Examples of web sites generated by Stog:
</p>
<ul>
<li>the Stog site (you're on it!),</li>
<li><ext-a href="http://form-ocaml.forge.ocamlcore.org/">Introduction to OCaml</ext-a> (in french),</li>
<li><ext-a href="http://gallium.inria.fr/~scherer/gagallium/">Gagallium</ext-a>,</li>
<li><ext-a href="http://zoggy.github.io/vlmc-suffix-trie/">Vlmc-suffix-tries</ext-a>,</li>
<li><ext-a href="http://zoggy.github.io/chamo/">The Chamo website</ext-a>,</li>
<li><ext-a href="http://zoggy.github.io/genet/">The Genet website</ext-a>,</li>
<li><ext-a href="http://zoggy.github.io/ocaml-rdf/">The OCaml-RDF website</ext-a>,</li>
<li><ext-a href="http://zoggy.github.io/erssical/">The Erssical website</ext-a>,</li>
<li><ext-a href="http://www.saltimfo.com/">Le chameau saltimbanque</ext-a> (in french),</li>
<li><ext-a href="http://www.snesup-bourgogne.org">The SNESUP Bourgogne website</ext-a> (in french),</li>
<li><ext-a href="http://www.oranadoz.net/">Oranadoz</ext-a> (in french),</li>
<li><ext-a href="http://pauillac.inria.fr/~guesdon/">Maxence Guesdon's site</ext-a>.</li>
</ul>
<p>
A mailing-list is <ext-a href="https://lists.forge.ocamlcore.org/cgi-bin/listinfo/stog-devel">here</ext-a>.
</p>
<section title="Get the code">
<p>
Stog is developped on <ext-a href="http://www.github.com/zoggy/stog">Github</ext-a>.
See the <page href="/install"/> page for details about downloading and installing.
</p>
</section>
<section title="License">
<p>
Stog is released under <ext-a href="http://www.gnu.org/copyleft/gpl.html">GPL v3</ext-a>.
</p>
<p>
Files in the <icode>doc/.stog/templates/</icode> directory are released in the public domain; feel free to use
them for your own site.
</p>
</section>

<section title="Latest news">
<documents type="post" max="4"/>
</section>
</contents>
</page>