redoules.github.io/backup/pelicanconf.py
Guillaume Redoulès 3d3e208928 test with only the content
test with only the content ie output of pelican.
2017-10-14 21:59:53 +02:00

74 lines
1.6 KiB
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Guillaume Redoulès'
SITENAME = 'Notes on python, machine learning, linux and other programming related topics'
SITEURL = 'redoules.github.io'#'output'#
THEME = 'theme/'
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'fr'
# 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
FEED_ALL_RSS = None #'feeds/all.rss.xml'
CATEGORY_FEED_RSS = None #'feeds/%s.rss.xml'
DEFAULT_PAGINATION = False
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
STATIC_PATHS = ['images', 'extra/CNAME', 'extra/favicon.ico']
ARTICLE_URL = '{category}/{slug}.html'
ARTICLE_SAVE_AS = '{category}/{slug}.html'
FEED_MAX_ITEMS = 10
EXTRA_PATH_METADATA = {
'extra/favicon.ico': {'path': 'favicon.ico'},
'extra/CNAME': {'path': 'CNAME'},
}
ARTICLE_EXCLUDES = ['in_progress']
PLUGIN_PATHS = ['plugins']
PLUGINS = ['render_math', 'tipue_search', 'sitemap']
DIRECT_TEMPLATES = ['index', 'search']
CATEGORY_SAVE_AS = ''
AUTHOR_SAVE_AS = ''
TAG_SAVE_AS = ''
AUTHORS_SAVE_AS = ''
CATEGORIES_SAVE_AS = ''
TAGS_SAVE_AS = ''
ARCHIVES_SAVE_AS = ''
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}
MD_EXTENSIONS = ['codehilite(guess_lang=False)', 'extra']