summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <victortoso@redhat.com>2015-11-04 13:11:24 +0100
committerVictor Toso <victortoso@redhat.com>2015-11-04 13:11:24 +0100
commit65ef7fc68b4580941f02a99e849ea5d73d1f332f (patch)
tree0802f028b90d7a84220ed90fcf9cec4f3c033579
parentc75fb2e0f5dfac8e62a6ffdbc91531c8cee575f3 (diff)
publishconf: update it to be similar to pelicanconf
with pelicanconf.py: make html: generate output for local testing with publishconf.py: make publish: generate output for publishing
-rw-r--r--publishconf.py84
1 files changed, 69 insertions, 15 deletions
diff --git a/publishconf.py b/publishconf.py
index 4a5d63c..47eed20 100644
--- a/publishconf.py
+++ b/publishconf.py
@@ -1,24 +1,78 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
-# This file is only used if you use `make publish` or
-# explicitly specify it as your config file.
+# Pelican configuration
+#######################
+AUTHOR = u'spice-team'
+SITENAME = u'SPICE'
+SITEURL = '' # path from page root such as '/~victortoso/spice-space/'
+THEME = 'spice-space'
+TIMEZONE = 'Europe/Paris'
+PATH = 'content'
-import os
-import sys
-sys.path.append(os.curdir)
-from pelicanconf import *
-
-SITEURL = 'http://www.spice-space.org'
+DEFAULT_LANG = u'en'
RELATIVE_URLS = False
-FEED_ALL_ATOM = 'feeds/all.atom.xml'
-CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
+# Static content that we reference in our site goes into folders appointed
+# by this path
+STATIC_PATHS = ['static', 'downloads']
+
+# Templates that are used directly to render content
+DIRECT_TEMPLATES = ['search']
+
+# ATOM/RSS not used. Disable so they are not generated (and not warned)
+FEED_DOMAIN = TRANSLATION_FEED_ATOM = None
+
+FEED_ATOM = FEED_RSS = None
+FEED_ALL_ATOM = FEED_ALL_RSS = None
+CATEGORY_FEED_ATOM = CATEGORY_FEED_RSS = None
+AUTHOR_FEED_ATOM = AUTHOR_FEED_RSS = None
+TAG_FEED_ATOM = TAG_FEED_RSS = None
+
+
+PAGE_URL = PAGE_SAVE_AS = '{slug}.html'
+PAGE_LANG_URL = PAGE_LANG_SAVE_AS = '{lang}/{slug}.html'
+ARTICLE_URL = ARTICLE_SAVE_AS = '{slug}.html'
+ARTICLE_LANG_URL = ARTICLE_LANG_SAVE_AS = '{lang}/{slug}.html'
+CATEGORY_URL = CATEGORY_SAVE_AS = None
+
+# Theme-related configuration
+#############################
+DEFAULT_PAGINATION = False
+FOOTER_IMAGE_PATH = SITEURL + '/theme/images/icons/et_logo.png'
+
+MENUITEMS = [
+ ("HOME", "home.html"),
+ ("FAQ", "faq.html"),
+ ("Documentation", "documentation.html"),
+ ("Download", "download.html"),
+ ("Developers", "developers.html"),
+ ("Contact", "contact.html"),
+]
+
+SUBMENUS = {
+ "documentation" : [
+ ("Introduction", "introduction.html"),
+ ("Overview", "documentation.html"),
+ ("Manual", "spice-user-manual.html"),
+ ("spice-gtk API", "spice-gtk.html"),
+ ("Support", "support.html"),
+ ("Features", "features.html"),
+ ],
+ "download" : [
+ ("Download", "download.html"),
+ ("Repositories", "repositories.html"),
+ ("Releases", "releases.html"),
+ ],
+}
-DELETE_OUTPUT_DIRECTORY = True
+# Plugins configuration
+#######################
+PLUGIN_PATHS = ["plugins"]
+PLUGINS = ["asciidoc_reader", "tipue_search", "sitemap"]
-# Following items are often useful when publishing
+SITEMAP = {'format' : 'xml'}
-#DISQUS_SITENAME = ""
-#GOOGLE_ANALYTICS = ""
+ASCIIDOC_OPTIONS = ["-f asciidoc.conf",
+ "-a iconsdir=" + SITEURL + "/theme/images/icons"]
+ASCIIDOC_BACKEND = "html5"