replacer plugin

This commit is contained in:
Andrei Astafev 2019-04-26 12:53:19 +03:00
parent 2d1ac5eaf9
commit 0679f82298
3 changed files with 10 additions and 1 deletions

3
.gitmodules vendored
View File

@ -20,3 +20,6 @@
path = plugins/thirdparty/pandoc_reader
url = git@git.246060.ru:/f1x1t/pelican-pandoc-reader
branch = master
[submodule "plugins/thirdparty/replacer"]
path = plugins/thirdparty/replacer
url = git@github.com:/narusemotoki/replacer

View File

@ -84,7 +84,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 +117,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"]

1
plugins/thirdparty/replacer vendored Submodule

@ -0,0 +1 @@
Subproject commit 7881a1d838b599dd69c8b83a90f00fee96a3ae44