Skip to content

Commit cfa8832

Browse files
Merge pull request #63 from lavanya-sainik-ericsson/plantuml-support-enhancement
[TechDocs] Enhance PlantUML support in the techdocs container to include external puml or pu files
2 parents a782f9a + 3091ce1 commit cfa8832

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ RUN pip install --upgrade pip && pip install mkdocs-techdocs-core==1.2.2
2626
# error (OSError: [Errno 8] Exec format error: 'plantuml') by using the
2727
# following RUN command instead:
2828
# RUN echo '#!/bin/sh\n\njava -jar '/opt/plantuml.jar' ${@}' >> /usr/local/bin/plantuml
29+
30+
# When adding TechDocs with PlantUML diagrams, to refer external puml or pu files in any markdown file,
31+
# eg. '!include <referencedFileName.puml>', you'll need to include the diagrams directory eg. docs in the classpath.
32+
# Use following RUN command instead:
33+
# RUN echo $'#!/bin/sh\n\njava -Dplantuml.include.path=${diagramDir} -jar '/opt/plantuml.jar ' ${@}' >> /usr/local/bin/plantuml
2934
RUN echo $'#!/bin/sh\n\njava -jar '/opt/plantuml.jar' ${@}' >> /usr/local/bin/plantuml
3035
RUN chmod 755 /usr/local/bin/plantuml
3136

0 commit comments

Comments
 (0)