Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
178 lines (163 sloc) 8.44 KB
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
<html xmlns="">
<script type="text/javascript" src="docs.js"></script>
<link rel="stylesheet" type="text/css" href="docs.css"/>
<title>Venus Configuration</title>
<p>Configuration files are in <a href="
ConfigParser.html">ConfigParser</a> format which basically means the same
format as INI files, i.e., they consist of a series of
<code>[sections]</code>, in square brackets, with each section containing a
list of <code>name:value</code> pairs (or <code>name=value</code> pairs, if
you prefer).</p>
<p>You are welcome to place your entire configuration into one file.
Alternately, you may factor out the templating into a "theme", and
the list of subscriptions into one or more "reading lists".</p>
<h3 id="planet"><code>[planet]</code></h3>
<p>This is the only required section, which is a bit odd as none of the
parameters listed below are required. Even so, you really do want to
provide many of these, especially ones that identify your planet and
either (or both) of <code>template_files</code> and <code>theme</code>.</p>
<p>Below is a complete list of predefined planet configuration parameters,
including <del>ones not (yet) implemented by Venus</del> and <ins>ones that
are either new or implemented differently by Venus</ins>.</p>
<dl class="compact code">
<dd>Your planet's name</dd>
<dd>Link to the main page</dd>
<dd>Your name</dd>
<dd>Your e-mail address</dd>
<dl class="compact code">
<dd>Where cached feeds are stored</dd>
<dd>Directory to place output files</dd>
<dl class="compact code">
<dd>Directory containing a <code>config.ini</code> file which is merged
with this one. This is typically used to specify templating and bill of
material information.</dd>
<dd>Space-separated list of output template files</dd>
<dd>Space-separated list of directories in which <code>template_files</code>
can be found</dd>
<dd>Space-separated list of files to be copied as is directly from the <code>template_directories</code> to the <code>output_dir</code></dd>
<dd>Regular expression that must be found in the textual portion of the entry</dd>
<dd>Regular expression that must <b>not</b> be found in the textual portion of the entry</dd>
<dd>Space-separated list of <a href="filters.html">filters</a> to apply to
each entry</dd>
<dd>Space-separated list of directories in which <code>filters</code>
can be found</dd>
<dl class="compact code">
<dd>How many items to put on each page. <ins>Whereas Planet 2.0 allows this to
be overridden on a per template basis, Venus currently takes the maximum value
for this across all templates.</ins></dd>
<dd>How many complete days of posts to put on each page This is the absolute, hard limit (over the item limit)</dd>
<dd><a href="">strftime</a> format for the default 'date' template variable</dd>
<dd><a href="">strftime</a> format for the 'new_date' template variable <ins>only applies to htmltmpl templates</ins></dd>
<dd>Output encoding for the file, Python 2.3+ users can use the special "xml" value to output ASCII with XML character references</dd>
<dd>Locale to use for (e.g.) strings in dates, default is taken from your system</dd>
<dd>If non-zero, all feeds which have not been updated in the indicated
number of days will be marked as inactive</dd>
<dl class="compact code">
<dd>One of <code>DEBUG</code>, <code>INFO</code>, <code>WARNING</code>, <code>ERROR</code> or <code>CRITICAL</code></dd>
<dd><a href="">format string</a> to
use for logging output. Note: this configuration value is processed
<a href="">raw</a></dd>
<dd>Number of seconds to wait for any given feed</dd>
<dd>Maximum number of items to include in the output from any one feed</dd>
<dd>The number of threads to use when spidering. When set to 0, the default,
no threads are used and spidering follows the traditional algorithm.</dd>
<dd>If <code>spider_threads</code> is specified, you can also specify a
directory to be used for an additional HTTP cache to front end the Venus
cache. If specified as a relative path, it is evaluated relative to the
<dd>Used by <code>expunge</code> to determine how many entries should be
kept for each source when expunging old entries from the cache directory.
This may be overriden on a per subscription feed basis.</dd>
<dd>URL to a PubSubHubbub hub, for example <a
Used by <code>publish</code> to ping the
hub when feeds are published, speeding delivery of updates to
subscribers. See
the <a href=""> PubSubHubbub
home page</a> for more information.</dd>
<dd>List of feeds to publish. Defaults to <code>atom.xml rss10.xml
<dt id="django_autoescape"><ins>django_autoescape</ins></dt>
<dd>Control <a href="">autoescaping</a> behavior of django templates. Defaults to <code>on</code>.</dd>
<p>Additional options can be found in
<a href="normalization.html#overrides">normalization level overrides</a>.</p>
<h3 id="default"><code>[DEFAULT]</code></h3>
<p>Values placed in this section are used as default values for all sections.
While it is true that few values make sense in all sections; in most cases
unused parameters cause few problems.</p>
<h3 id="subscription"><code>[</code><em>subscription</em><code>]</code></h3>
<p>All sections other than <code>planet</code>, <code>DEFAULT</code>, or are
named in <code>[planet]</code>'s <code>filters</code> or
<code>templatefiles</code> parameters
are treated as subscriptions and typically take the form of a
<acronym title="Uniform Resource Identifier">URI</acronym>.</p>
<p>Parameters placed in this section are passed to templates. While
you are free to include as few or as many parameters as you like, most of
the predefined themes presume that at least <code>name</code> is defined.</p>
<p>The <code>content_type</code> parameter can be defined to indicate that
this subscription is a <em>reading list</em>, i.e., is an external list
of subscriptions. At the moment, three formats of reading lists are supported:
<code>opml</code>, <code>foaf</code>, <code>csv</code>, and
<code>config</code>. In the future,
support for formats like <code>xoxo</code> could be added.</p>
<p><a href="normalization.html#overrides">Normalization overrides</a> can
also be defined here.</p>
<h3 id="template"><code>[</code><em>template</em><code>]</code></h3>
<p>Sections which are listed in <code>[planet] template_files</code> are
processed as <a href="templates.html">templates</a>. With Planet 2.0,
it is possible to override parameters like <code>items_per_page</code>
on a per template basis, but at the current time Planet Venus doesn't
implement this.</p>
<p><ins><a href="filters.html">Filters</a> can be defined on a per-template basis, and will be used to post-process the output of the template.</ins></p>
<h3 id="filter"><code>[</code><em>filter</em><code>]</code></h3>
<p>Sections which are listed in <code>[planet] filters</code> are
processed as <a href="filters.html">filters</a>.</p>
<p>Parameters which are listed in this section are passed to the filter
in a language specific manner. Given the way defaults work, filters
should be prepared to ignore parameters that they didn't expect.</p>