kwin commented on code in PR #228:
URL: https://github.com/apache/maven-doxia/pull/228#discussion_r1763757207
##########
doxia-core/src/main/java/org/apache/maven/doxia/macro/toc/TocMacro.java:
##########
@@ -112,9 +113,13 @@ public void execute(Sink sink, MacroRequest request)
throws MacroExecutionExcept
tocSink.close();
}
- IndexEntry index = tocSink.getRootEntry();
+ writeTocForIndexEntry(sink,
getAttributesFromMap(request.getParameters()), tocSink.getRootEntry());
+ }
+
+ void writeTocForIndexEntry(Sink sink, SinkEventAttributes listAttributes,
IndexEntry rootEntry) {
Review Comment:
This still needs some work to
a) only consider entries for type section
b) skip empty entries (not having an id)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]