2 Star 0 Fork 0

mirrors_apache/infrastructure-website

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pelicanconf.py 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
Sebb 提交于 2024-06-26 23:03 . No longer needed
import datetime
# Basic information about the site.
SITENAME = 'Apache Infrastructure Website'
SITEDESC = 'The official website of the Apache Infrastructure'
SITEDOMAIN = 'infra.apache.org'
SITEURL = 'https://infra.apache.org'
SITELOGO = 'https://infra.apache.org//extras/favicon.ico'
SITEREPOSITORY = 'https://github.com/apache/infrastructure-website/blob/main/content/'
CURRENTYEAR = datetime.date.today().year
TRADEMARKS = 'Apache HTTP Server, 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 'asfreader' plugin
PLUGINS = [ 'toc', 'gfm', 'asfgenid', ]
# 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 ignore file and directory basenames (paths not checked)
# blogs/README.md is not intended for publication
IGNORE_FILES = [ 'theme', 'README.md' ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_apache/infrastructure-website.git
git@gitee.com:mirrors_apache/infrastructure-website.git
mirrors_apache
infrastructure-website
infrastructure-website
master

搜索帮助