Skip to content

Commit 68f65c0

Browse files
[TechDocs] Enhance PlantUML support in the techdocs container to include external puml or pu files
Issue #20184 Signed-off-by: Lavanya Sainik <[email protected]>
1 parent a782f9a commit 68f65c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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>', need to include 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)