Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEyrak Paen2021-08-10 14:42:04 +0000
committerEyrak Paen2021-08-12 16:29:39 +0000
commit33763117a3740a9a2b511b1222bbd6a25b9e263f (patch)
treed889a520e556d91b03a90c616facadd6ceb2bd8a
parent1b137752fe0cd5e0e7ab68a8485fa33d76d3d7a0 (diff)
downloadorg.eclipse.etrice-33763117a3740a9a2b511b1222bbd6a25b9e263f.tar.gz
org.eclipse.etrice-33763117a3740a9a2b511b1222bbd6a25b9e263f.tar.xz
org.eclipse.etrice-33763117a3740a9a2b511b1222bbd6a25b9e263f.zip
[generator.doc] Add top-level tagged region to generated adocv_3.2.1
- Allows the generated asciidoctor content to be included as a whole, excluding the document header Change-Id: I0f5c769cfab759d2d6126055e0bf4a7340262ee4
-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