Commit 33763117 authored by Eyrak Paen-Rochlitz's avatar Eyrak Paen-Rochlitz
Browse files

[generator.doc] Add top-level tagged region to generated adoc

- Allows the generated asciidoctor content to be included as a whole,
excluding the document header

Change-Id: I0f5c769cfab759d2d6126055e0bf4a7340262ee4
parent 1b137752
......@@ -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++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment