Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend')
-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 7540343b1..9fb911f43 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
@@ -57,11 +57,12 @@ class AsciiDocGen {
def generateSingleDoc(Iterable<RoomPackage> packages, boolean includeImages) '''
= Model Documentation
- generated by eTrice
- {docdatetime}
:toc: left
:toclevels: 2
:table-caption!:
+ «tagStart("all")»
+ generated by eTrice
+ {docdatetime}
«IF !packages.empty»
.Room Packages
@@ -97,6 +98,7 @@ class AsciiDocGen {
«ac.generateActorDoc(includeImages)»
«ENDFOR»
«ENDFOR»
+ «tagEnd("all")»
'''
def private generatePackageDoc(RoomPackage pkg) {
@@ -494,7 +496,11 @@ class AsciiDocGen {
def private static tagStart(RoomClass rc) '''// tag::«rc.FQN»[]'''
def private static tagEnd(RoomClass rc) '''// end::«rc.FQN»[]'''
+
+ def private static tagStart(String name) '''// tag::.«name»[]'''
+ def private static tagEnd(String name) '''// end::.«name»[]'''
+
def private static String fill(char c, int length) {
val builder = new StringBuilder(length)
for(var i = 0; i < length; i++) {

Back to the top