Настройки

This commit is contained in:
Andrei Astafev 2019-05-24 07:55:47 +03:00
parent 11e041c59a
commit 02dddfeb08
4 changed files with 11 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,4 +1,6 @@
cache/*
cache-full/*
cache-html/*
output/*
__pycache__
wiki/trash

View File

@ -5,5 +5,5 @@ pdf:
pelican -s pelicanconf-full.py
clean:
rm -rf cache __pycache__
rm -rf cache-html cache-full cache __pycache__

View File

@ -35,6 +35,7 @@ SITENAME = 'ДСП'
SITEURL = 'https://dsp.246060.ru'
PATH = 'wiki'
CACHE_PATH = 'cache-full'
TIMEZONE = 'Europe/Moscow'
@ -84,7 +85,7 @@ I18N_GETTEXT_DOMAIN = 'messages'
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
PLUGIN_PATHS = ["plugins/official", "plugins/thirdparty"]
PLUGINS = [i18n(), "pandoc_reader", "pelican-css", "pelidoc", "series", "subcategory", "tag_cloud", "tipue_search", "plantuml"]
PLUGINS = [i18n(), "pandoc_reader", "pelican-css", "pelidoc", "series", "subcategory", "tag_cloud", "tipue_search", "plantuml", "replacer"]
#PLUGINS = ["better_tables", "just_table"]
PDF_PROCESSOR = True
@ -117,6 +118,11 @@ PANDOC_MARKDOWN_EXTENSIONS = [
PANDOC_EXTENSIONS = PANDOC_MARKDOWN_EXTENSIONS
REPLACES = (
(u'output/images/', u'images/'),
)
YUICOMPRESSOR_EXECUTABLE = "yui-compressor"
YUICOMPRESSOR_EXTRA_OPTIONS = ["--nomunge"]
PLUGINS += ["yuicompressor-opt"]

View File

@ -35,6 +35,7 @@ SITENAME = 'ДСП'
SITEURL = 'https://dsp.246060.ru'
PATH = 'wiki'
CACHE_PATH = 'cache-html'
TIMEZONE = 'Europe/Moscow'