Skip to content

Commit 3bb21d8

Browse files
committed
Move bookmark theme details to migration & re-use
Signed-off-by: Roger Sheen <[email protected]>
1 parent f945b9e commit 3bb21d8

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

release-notes/index.dita

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -103,38 +103,6 @@
103103
<xref keyref="using-project-files">project file</xref> that defines multiple deliverables.</p>
104104
</section>
105105

106-
<section id="bookmap-themes">
107-
<title>Bookmap support in PDF themes</title>
108-
<p>The PDF theme plug-in <codeph>com.elovirta.pdf</codeph> has been updated to version <keyword
109-
keyref="tool.theme.version"
110-
/> for better bookmap support.
111-
<xref href="https://github.com/jelovirt/pdf-generator/pull/111" format="html" scope="external">#111</xref>
112-
You can now style the following bookmap elements in a YAML or JSON theme without building a custom PDF
113-
plug-in:
114-
<ul>
115-
<li><xmlelement>part</xmlelement></li>
116-
<li><xmlelement>chapter</xmlelement></li>
117-
<li><xmlelement>appendix</xmlelement></li>
118-
<li><xmlelement>index</xmlelement></li>
119-
</ul>
120-
</p>
121-
<p>Table of contents (ToC) styles have moved to the root <codeph>style</codeph> key. ToC styling has also been
122-
extended for better bookmap support, so you can now specify styles for each level with dedicated keys such as
123-
<codeph>style-toc-part</codeph>, <codeph>style-toc-chapter</codeph>, etc.</p>
124-
<p>Parts and chapters now also support their own local contents listings, which you can enable by setting the
125-
corresponding layout key, for example <codeph>chapter-layout: MINITOC</codeph>. You can then define styling
126-
for each level via keys like <codeph>style-part-toc-chapter</codeph>, or
127-
<codeph>style-chapter-toc-1</codeph>.</p>
128-
<p>A new <codeph>default</codeph> theme provides basic styling such as font settings, indentation, and title
129-
numbering for a range of commonly used elements. This theme is not intended for publishing as is, but can
130-
serve as a foundation for custom themes, and reduce the number of elements you need to style yourself. To use
131-
the default theme as the baseline for your own custom theme, add <codeph>extends: default</codeph> to your
132-
theme file.
133-
<xref href="https://github.com/jelovirt/pdf-generator/pull/112" format="html" scope="external">#112</xref>,
134-
<xref href="https://github.com/jelovirt/pdf-generator/pull/114" format="html" scope="external">#114</xref>
135-
</p>
136-
</section>
137-
138106
<section id="lwdita">
139107
<title>Lightweight DITA and Markdown updates</title>
140108
<p>The <codeph>org.lwdita</codeph> plug-in has been updated to version <keyword keyref="tool.lwdita.version"/>,
@@ -168,6 +136,8 @@
168136
</li>
169137
</ul>
170138
</section>
139+
140+
<section conkeyref="migrating-to-4.3/bookmap-themes" id="bookmap-themes"/>
171141

172142
<section id="dita-2-0-preview">
173143
<title>Updated DITA 2.0 preview</title>

topics/migrating-to-4.3.dita

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,36 @@
2020
<xref keyref="4.3-release-notes"/>.</note>
2121
</section>
2222

23+
<section id="bookmap-themes">
24+
<title>Bookmap support in PDF themes</title>
25+
<p>The PDF theme plug-in <codeph>com.elovirta.pdf</codeph> has been updated to version <keyword
26+
keyref="tool.theme.version"
27+
/> for better bookmap support.
28+
<xref href="https://github.com/jelovirt/pdf-generator/pull/111" format="html" scope="external">#111</xref>
29+
You can now style the following bookmap elements in a YAML or JSON theme without building a custom PDF plug-in:
30+
<ul>
31+
<li><xmlelement>part</xmlelement></li>
32+
<li><xmlelement>chapter</xmlelement></li>
33+
<li><xmlelement>appendix</xmlelement></li>
34+
<li><xmlelement>index</xmlelement></li>
35+
</ul>
36+
</p>
37+
<p>Table of contents (ToC) styles have moved to the root <codeph>style</codeph> key. ToC styling has also been
38+
extended for better bookmap support, so you can now specify styles for each level with dedicated keys such as
39+
<codeph>style-toc-part</codeph>, <codeph>style-toc-chapter</codeph>, etc.</p>
40+
<p>Parts and chapters now also support their own local contents listings, which you can enable by setting the
41+
corresponding layout key, for example <codeph>chapter-layout: MINITOC</codeph>. You can then define styling for
42+
each level via keys like <codeph>style-part-toc-chapter</codeph>, or <codeph>style-chapter-toc-1</codeph>.</p>
43+
<p>A new <codeph>default</codeph> theme provides basic styling such as font settings, indentation, and title
44+
numbering for a range of commonly used elements. This theme is not intended for publishing as is, but can serve
45+
as a foundation for custom themes, and reduce the number of elements you need to style yourself. To use the
46+
default theme as the baseline for your own custom theme, add <codeph>extends: default</codeph> to your theme
47+
file.
48+
<xref href="https://github.com/jelovirt/pdf-generator/pull/112" format="html" scope="external">#112</xref>,
49+
<xref href="https://github.com/jelovirt/pdf-generator/pull/114" format="html" scope="external">#114</xref>
50+
</p>
51+
</section>
52+
2353
<section id="legacy-samples">
2454
<title>Legacy sample files removed</title>
2555
<indexterm><codeph>ant_sample</codeph> class</indexterm>

0 commit comments

Comments
 (0)