-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
104 lines (87 loc) · 2.44 KB
/
pelicanconf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u"James Mills"
AUTHOR_EMAIL = "[email protected]"
SITENAME = u"Circuits Framework"
SITEURL = ""
SITEMAP = {
"format": "xml",
"priorities": {
"articles": 0.5,
"indexes": 0.5,
"pages": 0.5
},
"changefreqs": {
"articles": "monthly",
"indexes": "daily",
"pages": "monthly"
}
}
PATH = "content"
STATIC_PATHS = ["images", "extra/CNAME"]
EXTRA_PATH_METADATA = {
"extra/CNAME": {
"path": "CNAME"
},
}
THEME = "theme"
BOOTSTRAP_THEME = "cerulean"
TIMEZONE = "Australia/Brisbane"
DEFAULT_LANG = u"en"
# 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
ARTICLE_URL = "{date:%Y}/{date:%b}/{date:%d}/{slug}/"
ARTICLE_SAVE_AS = "{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html"
CATEGORY_URL = "{slug}/"
CATEGORY_SAVE_AS = "{slug}/index.html"
PAGE_URL = "{slug}/"
PAGE_SAVE_AS = "{slug}/index.html"
TAGS_URL = "tags/"
TAGS_SAVE_AS = "tags/index.html"
AUTHORS_URL = "authors/"
AUTHORS_SAVE_AS = "authors/index.html"
ARCHIVES_URL = "archives/"
ARCHIVES_SAVE_AS = "archives/index.html"
CATEGORIES_URL = "categories/"
CATEGORIES_SAVE_AS = "categories/index.html"
DISPLAY_PAGES_ON_MENU = False
MENUITEMS = (
("Home", "/"),
("Downloads", "/downloads"),
("Docs", "/docs"),
("Blogs", "/blogs"),
("Community", "/community"),
("Support", "/support"),
)
# Blogroll
LINKS = (
("PyPi", "https://pypi.python.org/pypi/circuits"),
("Github", "https://github.com/circuits/circuits"),
("Waffle", "https://waffle.io/circuits/circuits"),
("OpenHub", "https://www.openhub.net/p/circuits"),
("Coveralls", "https://coveralls.io/r/circuits/circuits"),
("Landscape", "https://landscape.io/github/circuits/circuits"),
("Travis CI", "https://travis-ci.org/circuits/circuits"),
("ReadTheDocs", "http://circuits.readthedocs.org/"),
)
# Social widget
SOCIAL = (
("Github", "https://github.com/circuits"),
("Twitter", "https://twitter.com/pythoncircuits")
)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
PLUGINS = (
"sitemap",
"headerid",
"code_include",
"filetime_from_git",
"html_rst_directive",
"twitter_bootstrap_rst_directives",
)