Commit ca7a0db9 authored by BorisPAING's avatar BorisPAING

FIX: PlantUML plugin image attributes fell back to default

parent 1e56a9aa
......@@ -229,7 +229,7 @@ Nombre de membres : 402
Notez ici l'utilisation de `onDatabaseExecute:` : il s'agit d'une des deux phases possibles pour l'exécution d'une commande. L'autre est `onConfiguredExecute` :
::uml:: format="svg" alt="Diagramme Moment d'execution d'un module"
::uml:: format="svg" alt="Diagramme Moment d'exécution d'un module"
@startuml
......
......@@ -78,9 +78,9 @@ def pelican_init(pelicanobj):
try:
if 'MD_EXTENSIONS' in pelicanobj.settings.keys(): # pre pelican 3.7.0
pelicanobj.settings['MD_EXTENSIONS'].append(PlantUMLMarkdownExtension(config))
elif 'MARKDOWN' in pelicanobj.settings.keys() and \
not ('extension_configs' in pelicanobj.settings['MARKDOWN']['extension_configs']): # from pelican 3.7.0
pelicanobj.settings['MARKDOWN']['extension_configs']['plantuml.plantuml_md'] = {}
#elif 'MARKDOWN' in pelicanobj.settings.keys() and \
# not ('extension_configs' in pelicanobj.settings['MARKDOWN']['extension_configs']): # from pelican 3.7.0
# pelicanobj.settings['MARKDOWN']['extension_configs']['plantuml.plantuml_md'] = {}
except:
logger.error("[plantuml] Unable to configure plantuml markdown extension")
......
......@@ -246,7 +246,7 @@ PLUGINS = [
ASSET_SOURCE_PATHS = [
"../" + CHILD_THEME_NAME + '/static' + '/less'
]
]
MARKDOWN = {
'extension_configs': {
......@@ -261,8 +261,11 @@ MARKDOWN = {
'title' : 'Table des matières',
'permalink': True
},
#'plantuml.plantuml_md': {'siteurl': '/fr'} DOES NOT WORK, NEED A PATCH ON THE PLUGIN PLANTUML, USE SITEURL BY DEFAULT
'plantuml.plantuml_md': {
'siteurl': SITEURL,
'classes': 'diagram uml plantuml',
}
}
}
......
......@@ -233,8 +233,14 @@ DEFAULT_LANG = u'fr'
PLUGIN_PATHS = ['pelican-plugins/', 'custom-plugins/']
PLUGINS = [
'i18n_subsites', 'tipue_search', 'plantuml', 'assets', 'tag_cloud',
'pelican-page-hierarchy-duniter', 'pelican-linkclass']
'i18n_subsites',
'tipue_search',
'plantuml',
'assets',
'tag_cloud',
'pelican-page-hierarchy-duniter',
#'pelican-linkclass'
]
ASSET_SOURCE_PATHS = [
"../" + CHILD_THEME_NAME + '/static' + '/less'
......@@ -254,7 +260,11 @@ MARKDOWN = {
'permalink': True
},
#'plantuml.plantuml_md': {'siteurl': '/fr'} DOES NOT WORK, NEED A PATCH ON THE PLUGIN PLANTUML, USE SITEURL BY DEFAULT
'plantuml.plantuml_md': {
'siteurl': SITEURL,
'classes': 'diagram uml plantuml',
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment