Skip to content

Commit

Permalink
Issue eclipse-ee4j#23739 toclevel is configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatej committed Dec 20, 2021
1 parent 17fd461 commit 8d36913
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
<jruby.version>9.3.2.0</jruby.version>
<!-- status: DRAFT, BETA, etc., or blank for final -->
<status>DRAFT</status>
<doc.pdf>${project.artifactId}.pdf</doc.pdf>
<pdf.fileName>${project.artifactId}.pdf</pdf.fileName>
<pdf.toclevels>2</pdf.toclevels>
</properties>

<build>
Expand Down Expand Up @@ -128,7 +129,7 @@
<sourceDirectory>${project.build.directory}/book</sourceDirectory>
<sourceDocumentName>book.adoc</sourceDocumentName>
<backend>pdf</backend>
<outputFile>${doc.pdf}</outputFile>
<outputFile>${pdf.fileName}</outputFile>
<attributes>
<!-- XXX - a kludge to allow theme to be shared -->
<pdf-stylesdir>${project.basedir}/../parent/src/theme</pdf-stylesdir>
Expand All @@ -140,11 +141,13 @@
<source-highlighter>coderay</source-highlighter>
<pagenums />
<toc />
<toclevels>${pdf.toclevels}</toclevels>
<sectanchors>true</sectanchors>
<idprefix />
<idseparator>-</idseparator>
<docinfo1>true</docinfo1>
<embedAssets>true</embedAssets>
<!-- Depends on what jbake's execution' -->
<imagesDir>${project.build.directory}/staging/${project.artifactId}</imagesDir>
</attributes>
</configuration>
Expand All @@ -153,7 +156,7 @@
<id>generate-pdf-doc</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
<goal>process-asciidoc</goal>
</goals>
</execution>
</executions>
Expand All @@ -171,7 +174,7 @@
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/generated-docs/${doc.pdf}</file>
<file>${project.build.directory}/generated-docs/${pdf.fileName}</file>
<type>pdf</type>
</artifact>
</artifacts>
Expand Down
4 changes: 4 additions & 0 deletions docs/reference-manual/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@
<artifactId>reference-manual</artifactId>
<packaging>jar</packaging>
<name>Eclipse GlassFish Server Reference Manual, Release 7</name>

<properties>
<pdf.toclevels>1</pdf.toclevels>
</properties>
</project>

0 comments on commit 8d36913

Please sign in to comment.