Skip to content

Commit c36ee18

Browse files
committed
Improve plugin reference ToC
1 parent 6fb168f commit c36ee18

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/docgen/index.adoc.ftl

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515
See the License for the specific language governing permissions and
1616
limitations under the License.
1717
-->
18+
19+
// ToC does not look nice with a deep sectioning, override it:
20+
:page-toclevels: 3
21+
1822
<#-- @ftlvariable name="lookup" type="org.apache.logging.log4j.docgen.generator.TypeLookup" -->
1923

2024
= Plugin reference
@@ -52,7 +56,7 @@ Below is a list of all types reachable by plugins grouped by the Maven coordinat
5256
<#assign lastArtifactId = sourcedType.artifactId/>
5357

5458
[#${sourcedType.groupId?replace('.', '-')}_${sourcedType.artifactId?replace('.', '-')}]
55-
=== `${sourcedType.groupId}:${sourcedType.artifactId}`
59+
=== `${sourcedType.artifactId}`
5660
</#if>
5761

5862
include::_plugin-reference/${sourcedType.groupId}-${sourcedType.artifactId}-${sourcedType.type.className}.adoc[leveloffset=+3]

src/docgen/type.adoc.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<#-- @ftlvariable name="lookup" type="org.apache.logging.log4j.docgen.generator.TypeLookup" -->
2222

2323
[#${sourcedType.groupId?replace('.', '-')}_${sourcedType.artifactId?replace('.', '-')}_${type.className?replace('.', '-')}]
24-
= ${type.name!('`' + type.className + '`')}
24+
= ${type.name!('`' + type.className?keep_after_last('.') + '`')}
2525

2626
Class:: `${type.className}`
2727
Provider:: `${sourcedType.groupId}:${sourcedType.artifactId}`

0 commit comments

Comments
 (0)