From ba705f8a65df3fddfbf2d7e08acca11283818d1d Mon Sep 17 00:00:00 2001 From: Michael Clemens Date: Thu, 22 Mar 2018 20:11:43 +0100 Subject: [PATCH] updated README --- README.md | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 650c2e3..d33ec84 100644 --- a/README.md +++ b/README.md @@ -6,25 +6,37 @@ This python script is intended to be used to automatically generate use case / c This tool requires the following: * Python 3 -* lxml -* networkx -* pydot +* lxml (XML parser that understands CDATA) +* networkx (needed for creating graphs) +* pydot (needed for creating graphs) +* pandoc (for converting to other formats than Markdown) On Debian you can install the dependencies with "sudo apt-get install python3-lxml python3-networkxi python3-pydot" ## Usage +Please configure esm2markdown.ini to your liking and execute esm2markdown.py like this: + ``` -python esm2markdown +# python esm2markdown.py ``` ## Example +### Convert xml to Markdown + ``` -python esm2markdown demo.xml demo.mk +# python esm2markdown demo.xml demo.mk ``` -After a conversion with pandoc, the following documentation will be the result: +### Convert to Markdown to DOCX + +``` +# pandoc -s demo.mk -o demo.docx +``` + +In the end, the result should look like this shortened output: + ![screenshot](demo/demo.png "")