|
1 | | - |
2 | 1 | import datetime |
| 2 | + |
3 | 3 | # Basic information about the site. |
4 | | -SITENAME = 'ASF Tooling Website' |
5 | | -SITEDESC = 'The official website of the ASF Tooling Team' |
6 | | -SITEDOMAIN = 'tooling.apache.org' |
7 | | -SITEURL = 'https://tooling.apache.org' |
8 | | -SITELOGO = 'https://tooling.apache.org//extras/favicon.ico' |
9 | | -SITEREPOSITORY = 'https://github.com/apache/tooling-docs/blob/main/content/' |
| 4 | +SITENAME = "ASF Tooling Website" |
| 5 | +SITEDESC = "The official website of the ASF Tooling Team" |
| 6 | +SITEDOMAIN = "tooling.apache.org" |
| 7 | +SITEURL = "https://tooling.apache.org" |
| 8 | +SITELOGO = "https://tooling.apache.org//extras/favicon.ico" |
| 9 | +SITEREPOSITORY = "https://github.com/apache/tooling-docs/blob/main/content/" |
10 | 10 | CURRENTYEAR = datetime.date.today().year |
11 | | -TRADEMARKS = 'Apache and the Apache feather logo are trademarks of The Apache Software Foundation.' |
12 | | -TIMEZONE = 'UTC' |
| 11 | +TRADEMARKS = "Apache and the Apache feather logo are trademarks of The Apache Software Foundation." |
| 12 | +TIMEZONE = "UTC" |
13 | 13 | # Theme includes templates and possibly static files |
14 | | -THEME = 'content/theme' |
| 14 | +THEME = "content/theme" |
15 | 15 | # Specify location of plugins, and which to use |
16 | | -PLUGIN_PATHS = [ 'plugins', ] |
| 16 | +PLUGIN_PATHS = [ |
| 17 | + "plugins", |
| 18 | +] |
17 | 19 | # If the website uses any *.ezmd files, include the 'gfm' and 'asfreader' plugins (in that order) |
18 | | -PLUGINS = [ 'toc', 'spu', 'gfm', 'asfgenid', 'asfrun', ] |
| 20 | +PLUGINS = [ |
| 21 | + "toc", |
| 22 | + "spu", |
| 23 | + "gfm", |
| 24 | + "asfgenid", |
| 25 | + "asfrun", |
| 26 | +] |
19 | 27 | # All content is located at '.' (aka content/ ) |
20 | | -PAGE_PATHS = [ 'pages' ] |
21 | | -STATIC_PATHS = [ '.', ] |
| 28 | +PAGE_PATHS = ["pages"] |
| 29 | +STATIC_PATHS = [ |
| 30 | + ".", |
| 31 | +] |
22 | 32 | # Where to place/link generated pages |
23 | 33 |
|
24 | | -PATH_METADATA = 'pages/(?P<path_no_ext>.*)\\..*' |
| 34 | +PATH_METADATA = "pages/(?P<path_no_ext>.*)\\..*" |
25 | 35 |
|
26 | | -PAGE_SAVE_AS = '{path_no_ext}.html' |
| 36 | +PAGE_SAVE_AS = "{path_no_ext}.html" |
27 | 37 | # Don't try to translate |
28 | 38 | PAGE_TRANSLATION_ID = None |
29 | 39 | # Disable unused Pelican features |
30 | 40 | # N.B. These features are currently unsupported, see https://github.com/apache/infrastructure-pelican/issues/49 |
31 | 41 | FEED_ALL_ATOM = None |
32 | | -INDEX_SAVE_AS = '' |
33 | | -TAGS_SAVE_AS = '' |
34 | | -CATEGORIES_SAVE_AS = '' |
35 | | -AUTHORS_SAVE_AS = '' |
36 | | -ARCHIVES_SAVE_AS = '' |
| 42 | +INDEX_SAVE_AS = "" |
| 43 | +TAGS_SAVE_AS = "" |
| 44 | +CATEGORIES_SAVE_AS = "" |
| 45 | +AUTHORS_SAVE_AS = "" |
| 46 | +ARCHIVES_SAVE_AS = "" |
37 | 47 | # Disable articles by pointing to a (should-be-absent) subdir |
38 | | -ARTICLE_PATHS = [ 'blog' ] |
| 48 | +ARTICLE_PATHS = ["blog"] |
39 | 49 | # needed to create blogs page |
40 | | -ARTICLE_URL = 'blog/{slug}.html' |
41 | | -ARTICLE_SAVE_AS = 'blog/{slug}.html' |
| 50 | +ARTICLE_URL = "blog/{slug}.html" |
| 51 | +ARTICLE_SAVE_AS = "blog/{slug}.html" |
42 | 52 | # Disable all processing of .html files |
43 | | -READERS = { 'html': None, } |
| 53 | +READERS = { |
| 54 | + "html": None, |
| 55 | +} |
44 | 56 |
|
45 | 57 | # Configure the asfgenid plugin |
46 | 58 | ASF_GENID = { |
47 | | - 'unsafe_tags': True, |
48 | | - 'metadata': False, |
49 | | - 'elements': False, |
50 | | - 'permalinks': False, |
51 | | - 'tables': False, |
52 | | - |
53 | | - 'headings': False, |
54 | | - |
55 | | - |
56 | | - 'toc': False, |
57 | | - |
58 | | - 'debug': False, |
| 59 | + "unsafe_tags": True, |
| 60 | + "metadata": False, |
| 61 | + "elements": False, |
| 62 | + "permalinks": False, |
| 63 | + "tables": False, |
| 64 | + "headings": False, |
| 65 | + "toc": False, |
| 66 | + "debug": False, |
59 | 67 | } |
60 | 68 |
|
61 | 69 |
|
62 | | - |
63 | | - |
64 | | - |
65 | 70 | # Configure the asfrun plugin (finalization) |
66 | | -ASF_POSTRUN = [ '/bin/bash pagefind.sh', ] |
| 71 | +ASF_POSTRUN = [ |
| 72 | + "/bin/bash pagefind.sh", |
| 73 | +] |
67 | 74 |
|
68 | 75 |
|
69 | 76 | # Configure ignore files |
70 | 77 | # File and directory basenames matching any of these patterns will be ignored by the processor. |
71 | | -IGNORE_FILES = [ 'theme', ] |
| 78 | +IGNORE_FILES = [ |
| 79 | + "theme", |
| 80 | +] |
0 commit comments