Commit 9ceabc39 authored by Vincent Texier's avatar Vincent Texier Committed by Cédric Moreau

Fix bug in plugin plantuml settings (#21)

* Add plantuml/graphviz diagrams support via the plantuml plugin

Add an architecture page in the wiki with a first draft of a plantuml diagram
Add documentation in readme.md
Require system dependencies : plantuml and graphviz installed

* Fix bug in plantuml plugin settings handle and in diagram block header

* Fix merge from master repo

Conflicts:
	content/pages/wiki/duniter/architecture.md
	pelican-plugins/plantuml/plantuml_rst.py
parent 77800c21
.idea/
__pycache__/
__pycache__/*
bin/
include/
lib/
......
......@@ -8,7 +8,7 @@ Authors: vit
Voici un aperçu de l'architecture de Duniter entre les clients et un serveur.
::uml:: [format="svg"] [alt="architecture clients"]
::uml:: format="svg" alt="architecture clients"
@startuml
......
......@@ -79,7 +79,7 @@ def pelican_init(pelicanobj):
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'] = {}
pelicanobj.settings['MARKDOWN']['extension_configs']['plantuml.plantuml_md'] = config # Fix bug default settings
except:
logger.error("[plantuml] Unable to configure plantuml markdown extension")
......
......@@ -31,7 +31,8 @@ MARKDOWN = {
'markdown.extensions.codehilite': { 'css_class': 'highlight' },
'markdown.extensions.fenced_code': {},
'markdown.extensions.extra': {},
'markdown.extensions.toc': {}
'markdown.extensions.toc': {},
#'plantuml.plantuml_md': {'siteurl': '/fr'} DOES NOT WORK, NEED A PATCH ON THE PLUGIN PLANTUML, USE SITEURL BY DEFAULT
}
}
......
......@@ -32,7 +32,8 @@ MARKDOWN = {
'markdown.extensions.codehilite': { 'css_class': 'highlight' },
'markdown.extensions.fenced_code': {},
'markdown.extensions.extra': {},
'markdown.extensions.toc': {}
'markdown.extensions.toc': {},
#'plantuml.plantuml_md': {'siteurl': '/fr'} DOES NOT WORK, NEED A PATCH ON THE PLUGIN PLANTUML, USE SITEURL BY DEFAULT
}
}
......
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