Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend b/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend
index d442e7762..7540343b1 100644
--- a/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend
@@ -187,8 +187,9 @@ class AsciiDocGen {
«system.docText»
«IF includeImages»
- «includeImage(system.name + "_instanceTree.jpg")»
+ «includeImage(system.name + "_instanceTree.svg", true)»
«ENDIF»
+
«tagEnd(system)»
'''
}
@@ -462,7 +463,12 @@ class AsciiDocGen {
}
def private includeImage(String filename) {
- '''image:«filename»[]'''
+ includeImage(filename, false)
+ }
+
+ def private includeImage(String filename, boolean limitWidth) {
+ val options = limitWidth ? '''width=100%, link={imagesdir}/«filename»''' : ""
+ '''image:«filename»[«options»]'''
}
def private static crossReference(RoomClass rc) {

Back to the top