From 0679f822980f66735da39a734b56364f79bd2c4f Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 26 Apr 2019 12:53:19 +0300 Subject: [PATCH] replacer plugin --- .gitmodules | 3 +++ pelicanconf.py | 7 ++++++- plugins/thirdparty/replacer | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 160000 plugins/thirdparty/replacer diff --git a/.gitmodules b/.gitmodules index 83b71ed..07a184a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/pelicanconf.py b/pelicanconf.py index fdc2991..97e4c6c 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -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"] diff --git a/plugins/thirdparty/replacer b/plugins/thirdparty/replacer new file mode 160000 index 0000000..7881a1d --- /dev/null +++ b/plugins/thirdparty/replacer @@ -0,0 +1 @@ +Subproject commit 7881a1d838b599dd69c8b83a90f00fee96a3ae44