You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2022/04/03 09:50:01 UTC

[steve] branch asf-site-build updated: Create pelicanconf.py

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch asf-site-build
in repository https://gitbox.apache.org/repos/asf/steve.git


The following commit(s) were added to refs/heads/asf-site-build by this push:
     new 1175427  Create pelicanconf.py
1175427 is described below

commit 11754270152163b24aa1f34a5965b0bc0cf69a50
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Apr 3 11:49:57 2022 +0200

    Create pelicanconf.py
---
 pelicanconf.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/pelicanconf.py b/pelicanconf.py
new file mode 100644
index 0000000..97364a1
--- /dev/null
+++ b/pelicanconf.py
@@ -0,0 +1,52 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*- #
+from __future__ import unicode_literals
+from datetime import date
+
+
+AUTHOR = u'dev@steve.apache.org'
+SITENAME = u'Apache STeVe'
+CURRENTYEAR = date.today().year
+
+PATH = 'content'
+
+TIMEZONE = 'UTC'
+DEFAULT_DATE = 'fs'
+DEFAULT_LANG = u'en'
+SITEURL = 'https://steve.apache.org'
+
+# Save pages using full directory preservation
+PATH_METADATA= '.*?(pages/)?(?P<path_no_ext>.*?)\.[a-z]*$'
+PAGE_SAVE_AS= './{slug}.html'
+PAGE_URL= './{slug}.html'
+
+# Make .htaccess static
+STATIC_PATHS = ['pages/.htaccess']
+
+# Sort news by date, descending, latest article first
+ARTICLE_ORDER_BY = 'reversed-date'
+
+# Feed generation is usually not desired when developing
+FEED_ALL_ATOM = None
+CATEGORY_FEED_ATOM = None
+TRANSLATION_FEED_ATOM = None
+AUTHOR_FEED_ATOM = None
+AUTHOR_FEED_RSS = None
+
+# TOC Generator
+PLUGIN_PATHS = ['./theme/plugins']
+PLUGINS = ['toc', 'pelican-gfm', 'spu']
+TOC_HEADERS = r"h[1-6]"
+
+# Blogroll
+LINKS = (('Pelican', 'http://getpelican.com/'),
+         ('Python.org', 'http://python.org/'),
+         ('Jinja2', 'http://jinja.pocoo.org/'),
+         ('You can modify those links in your config file', '#'),)
+
+# Social widget
+SOCIAL = (('You can add links in your config file', '#'),
+          ('Another social link', '#'),)
+
+DEFAULT_PAGINATION = False
+