|
| 1 | + |
| 2 | +import datetime |
| 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/' |
| 10 | +CURRENTYEAR = datetime.date.today().year |
| 11 | +TRADEMARKS = 'Apache and the Apache feather logo are trademarks of The Apache Software Foundation.' |
| 12 | +TIMEZONE = 'UTC' |
| 13 | +# Theme includes templates and possibly static files |
| 14 | +THEME = 'content/theme' |
| 15 | +# Specify location of plugins, and which to use |
| 16 | +PLUGIN_PATHS = [ 'plugins', ] |
| 17 | +# If the website uses any *.ezmd files, include the 'gfm' and 'asfreader' plugins (in that order) |
| 18 | +PLUGINS = [ 'toc', 'spu', 'gfm', 'asfgenid', 'asfrun', ] |
| 19 | +# All content is located at '.' (aka content/ ) |
| 20 | +PAGE_PATHS = [ 'pages' ] |
| 21 | +STATIC_PATHS = [ '.', ] |
| 22 | +# Where to place/link generated pages |
| 23 | + |
| 24 | +PATH_METADATA = 'pages/(?P<path_no_ext>.*)\\..*' |
| 25 | + |
| 26 | +PAGE_SAVE_AS = '{path_no_ext}.html' |
| 27 | +# Don't try to translate |
| 28 | +PAGE_TRANSLATION_ID = None |
| 29 | +# Disable unused Pelican features |
| 30 | +# N.B. These features are currently unsupported, see https://github.com/apache/infrastructure-pelican/issues/49 |
| 31 | +FEED_ALL_ATOM = None |
| 32 | +INDEX_SAVE_AS = '' |
| 33 | +TAGS_SAVE_AS = '' |
| 34 | +CATEGORIES_SAVE_AS = '' |
| 35 | +AUTHORS_SAVE_AS = '' |
| 36 | +ARCHIVES_SAVE_AS = '' |
| 37 | +# Disable articles by pointing to a (should-be-absent) subdir |
| 38 | +ARTICLE_PATHS = [ 'blog' ] |
| 39 | +# needed to create blogs page |
| 40 | +ARTICLE_URL = 'blog/{slug}.html' |
| 41 | +ARTICLE_SAVE_AS = 'blog/{slug}.html' |
| 42 | +# Disable all processing of .html files |
| 43 | +READERS = { 'html': None, } |
| 44 | + |
| 45 | +# Configure the asfgenid plugin |
| 46 | +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 | +} |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +# Configure the asfrun plugin (finalization) |
| 66 | +ASF_POSTRUN = [ '/bin/bash pagefind.sh', ] |
| 67 | + |
| 68 | + |
| 69 | +# Configure ignore files |
| 70 | +# File and directory basenames matching any of these patterns will be ignored by the processor. |
| 71 | +IGNORE_FILES = [ 'theme', ] |
| 72 | + |
| 73 | + |
| 74 | + |
0 commit comments