-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpelicanconf.py
More file actions
80 lines (72 loc) · 2.08 KB
/
pelicanconf.py
File metadata and controls
80 lines (72 loc) · 2.08 KB
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
import datetime
# Basic information about the site.
SITENAME = "ASF Tooling Website"
SITEDESC = "The official website of the ASF Tooling Team"
SITEDOMAIN = "tooling.apache.org"
SITEURL = "https://tooling.apache.org"
SITELOGO = "https://tooling.apache.org//extras/favicon.ico"
SITEREPOSITORY = "https://github.com/apache/tooling-docs/blob/main/content/"
CURRENTYEAR = datetime.date.today().year
TRADEMARKS = "Apache and the Apache feather logo are trademarks of The Apache Software Foundation."
TIMEZONE = "UTC"
# Theme includes templates and possibly static files
THEME = "content/theme"
# Specify location of plugins, and which to use
PLUGIN_PATHS = [
"plugins",
]
# If the website uses any *.ezmd files, include the 'gfm' and 'asfreader' plugins (in that order)
PLUGINS = [
"toc",
"spu",
"gfm",
"asfgenid",
"asfrun",
]
# All content is located at '.' (aka content/ )
PAGE_PATHS = ["pages"]
STATIC_PATHS = [
".",
]
# Where to place/link generated pages
PATH_METADATA = "pages/(?P<path_no_ext>.*)\\..*"
PAGE_SAVE_AS = "{path_no_ext}.html"
# Don't try to translate
PAGE_TRANSLATION_ID = None
# Disable unused Pelican features
# N.B. These features are currently unsupported, see https://github.com/apache/infrastructure-pelican/issues/49
FEED_ALL_ATOM = None
INDEX_SAVE_AS = ""
TAGS_SAVE_AS = ""
CATEGORIES_SAVE_AS = ""
AUTHORS_SAVE_AS = ""
ARCHIVES_SAVE_AS = ""
# Disable articles by pointing to a (should-be-absent) subdir
ARTICLE_PATHS = ["blog"]
# needed to create blogs page
ARTICLE_URL = "blog/{slug}.html"
ARTICLE_SAVE_AS = "blog/{slug}.html"
# Disable all processing of .html files
READERS = {
"html": None,
}
# Configure the asfgenid plugin
ASF_GENID = {
"unsafe_tags": True,
"metadata": False,
"elements": False,
"permalinks": False,
"tables": False,
"headings": False,
"toc": False,
"debug": False,
}
# Configure the asfrun plugin (finalization)
ASF_POSTRUN = [
"/bin/bash pagefind.sh",
]
# Configure ignore files
# File and directory basenames matching any of these patterns will be ignored by the processor.
IGNORE_FILES = [
"theme",
]