This commit is contained in:
Andrei Astafev 2019-04-26 10:56:04 +03:00
parent 4318bc1677
commit 9644c34ed2
4 changed files with 29 additions and 47 deletions

View File

@ -52,7 +52,11 @@ AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None AUTHOR_FEED_RSS = None
USE_FOLDER_AS_CATEGORY = True USE_FOLDER_AS_CATEGORY = True
DEFAULT_DATE = 'fs' DEFAULT_DATE = 'fs'
STATIC_PATHS = [ 'images', 'files' ] STATIC_PATHS = [ 'images', 'files', 'extras' ]
EXTRA_PATH_METADATA = {
'extras/favicon.ico': {'path': 'favicon.ico'},
}
MARKDOWN = { MARKDOWN = {
'extension_configs': { 'extension_configs': {
@ -81,9 +85,14 @@ JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
PLUGIN_PATHS = ["plugins/official", "plugins/thirdparty"] 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"]
#, "render_math", "md-metayaml"
#PLUGINS = ["better_tables", "just_table"] #PLUGINS = ["better_tables", "just_table"]
PDF_PROCESSOR = True
PANDOC_OUTPUTS = {
'pdf': 'pdf',
}
PANDOC_ARGS = [ PANDOC_ARGS = [
"--variable=documentclass:extarticle", "--variable=documentclass:extarticle",
"--variable=toc-title:Содержание", "--variable=toc-title:Содержание",
@ -91,25 +100,10 @@ PANDOC_ARGS = [
"--filter=pandoc_plantuml_filter.py", "--filter=pandoc_plantuml_filter.py",
"--highlight-style=tango", "--highlight-style=tango",
"--template=wiki", "--template=wiki",
"--resource-path=wiki" "--resource-path=wiki:."
] ]
PDF_PROCESSOR = True PANDOC_EXTRA_OPTIONS = PANDOC_ARGS + [ "--pdf-engine=xelatex" ]
PANDOC_OUTPUTS = {
'pdf': 'pdf',
}
PANDOC_EXTRA_OPTIONS = [
"--variable=documentclass:extarticle",
"--variable=toc-title:Содержание",
"--filter=skip-toc-tag",
"--filter=pandoc_plantuml_filter.py",
"--highlight-style=tango",
"--resource-path=wiki",
"--template=wiki",
"--pdf-engine=xelatex"
]
PANDOC_MARKDOWN_EXTENSIONS = [ PANDOC_MARKDOWN_EXTENSIONS = [
"+smart", "+smart",
@ -121,6 +115,8 @@ PANDOC_MARKDOWN_EXTENSIONS = [
"+native_spans" "+native_spans"
] ]
PANDOC_EXTENSIONS = PANDOC_MARKDOWN_EXTENSIONS
YUICOMPRESSOR_EXECUTABLE = "yui-compressor" YUICOMPRESSOR_EXECUTABLE = "yui-compressor"
YUICOMPRESSOR_EXTRA_OPTIONS = ["--nomunge"] YUICOMPRESSOR_EXTRA_OPTIONS = ["--nomunge"]
PLUGINS += ["yuicompressor-opt"] PLUGINS += ["yuicompressor-opt"]

View File

@ -52,7 +52,11 @@ AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None AUTHOR_FEED_RSS = None
USE_FOLDER_AS_CATEGORY = True USE_FOLDER_AS_CATEGORY = True
DEFAULT_DATE = 'fs' DEFAULT_DATE = 'fs'
STATIC_PATHS = [ 'images', 'files' ] STATIC_PATHS = [ 'images', 'files', 'extras' ]
EXTRA_PATH_METADATA = {
'extras/favicon.ico': {'path': 'favicon.ico'},
}
MARKDOWN = { MARKDOWN = {
'extension_configs': { 'extension_configs': {
@ -81,9 +85,14 @@ JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
PLUGIN_PATHS = ["plugins/official", "plugins/thirdparty"] 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"]
#, "render_math", "md-metayaml"
#PLUGINS = ["better_tables", "just_table"] #PLUGINS = ["better_tables", "just_table"]
#PDF_PROCESSOR = True
PANDOC_OUTPUTS = {
'pdf': 'pdf',
}
PANDOC_ARGS = [ PANDOC_ARGS = [
"--variable=documentclass:extarticle", "--variable=documentclass:extarticle",
"--variable=toc-title:Содержание", "--variable=toc-title:Содержание",
@ -91,28 +100,10 @@ PANDOC_ARGS = [
"--filter=pandoc_plantuml_filter.py", "--filter=pandoc_plantuml_filter.py",
"--highlight-style=tango", "--highlight-style=tango",
"--template=wiki", "--template=wiki",
"--resource-path=wiki" "--resource-path=wiki:."
] ]
PANDOC_EXTRA_OPTIONS = PANDOC_ARGS + [ "--pdf-engine=xelatex" ]
### for PDF """
#PDF_PROCESSOR = True
PANDOC_OUTPUTS = {
'pdf': 'pdf',
}
PANDOC_EXTRA_OPTIONS = [
"--variable=documentclass:extarticle",
"--variable=toc-title:Содержание",
"--filter=skip-toc-tag",
"--filter=pandoc_plantuml_filter.py",
"--highlight-style=tango",
"--resource-path=wiki",
"--template=wiki",
"--pdf-engine=xelatex"
]
PANDOC_MARKDOWN_EXTENSIONS = [ PANDOC_MARKDOWN_EXTENSIONS = [
"+smart", "+smart",
@ -124,7 +115,7 @@ PANDOC_MARKDOWN_EXTENSIONS = [
"+native_spans" "+native_spans"
] ]
### ### PANDOC_EXTENSIONS = PANDOC_MARKDOWN_EXTENSIONS
YUICOMPRESSOR_EXECUTABLE = "yui-compressor" YUICOMPRESSOR_EXECUTABLE = "yui-compressor"
YUICOMPRESSOR_EXTRA_OPTIONS = ["--nomunge"] YUICOMPRESSOR_EXTRA_OPTIONS = ["--nomunge"]

View File

@ -10,18 +10,13 @@ summary:
Пример приведён ниже: Пример приведён ниже:
![1](images/oo-shutup/1.jpg) ![1](images/oo-shutup/1.jpg)
{: .img-center }
![2](images/oo-shutup/2.jpg) ![2](images/oo-shutup/2.jpg)
{: .img-center }
![3](images/oo-shutup/3.jpg) ![3](images/oo-shutup/3.jpg)
{: .img-center }
![4](images/oo-shutup/4.jpg) ![4](images/oo-shutup/4.jpg)
{: .img-center }
![5](images/oo-shutup/5.jpg) ![5](images/oo-shutup/5.jpg)
{: .img-center }

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB