Skip to content

Commit 754d52d

Browse files
committed
Rename "contentsTree" element to "contents"
For consistency; this was the only element using camelCase. Signed-off-by: Ulrich Müller <[email protected]>
1 parent 906455c commit 754d52d

File tree

24 files changed

+34
-34
lines changed

24 files changed

+34
-34
lines changed

appendices/devbook-guide/text.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ tag. Note that the trailing slash in the <c>href</c> value is mandatory.
125125
</p>
126126

127127
<p>
128-
A table of contents can be generated with <c>&lt;contentsTree&gt;</c>.
128+
A table of contents can be generated with <c>&lt;contents/&gt;</c>.
129129
Typically, this would be the only element in its own section body, as in
130130
the following example:
131131
</p>
@@ -134,7 +134,7 @@ the following example:
134134
&lt;section&gt;
135135
&lt;title&gt;Contents&lt;/title&gt;
136136
&lt;body&gt;
137-
&lt;contentsTree/&gt;
137+
&lt;contents/&gt;
138138
&lt;/body&gt;
139139
&lt;/section&gt;
140140
</codesample>

appendices/editor-configuration/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ with ebuilds.
1414
<section>
1515
<title>Contents</title>
1616
<body>
17-
<contentsTree/>
17+
<contents/>
1818
</body>
1919
</section>
2020
</chapter>

appendices/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This section incorporates various auxiliary documents which may be useful as a r
1212
<section>
1313
<title>Contents</title>
1414
<body>
15-
<contentsTree/>
15+
<contents/>
1616
</body>
1717
</section>
1818
</chapter>

appendices/todo-list/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This TODO list is automatically generated from the <c>&lt;todo&gt;</c> directives in other documents.
88
</p>
99

10-
<contentsTree root="" extraction="todo"/>
10+
<contents root="" extraction="todo"/>
1111
</body>
1212
</chapter>
1313
</devbook>

archs/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ happens to work best in any situation.
2222
<section>
2323
<title>Contents</title>
2424
<body>
25-
<contentsTree/>
25+
<contents/>
2626
</body>
2727
</section>
2828
</chapter>

depend.xsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<xsl:template match="/">
1313
<xsl:variable name="refs">
1414
<!-- all descendants -->
15-
<xsl:call-template name="contentsTree"/>
15+
<xsl:call-template name="contents"/>
1616
<!-- all ancestors -->
1717
<xsl:call-template name="printParentDocs"/>
1818
<!-- previous and next documents -->

devbook.rnc

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ subsubsection = element subsubsection { title, body }
3333
# Title texts are used as anchors, so allow only text attributes
3434
title = element title { attrib }
3535

36-
body = element body { (authors | contentsTree | block.class)+ }
36+
body = element body { (authors | contents | block.class)+ }
3737

3838
authors = element authors { author+ | authorlist+ }
3939

@@ -48,7 +48,7 @@ authorlist = element authorlist {
4848
attribute href { text }
4949
}
5050

51-
contentsTree = element contentsTree {
51+
contents = element contents {
5252
attribute maxdepth { xsd:unsignedInt }?,
5353
attribute root { text }?,
5454
attribute extraction { text }?

devbook.rng

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
<oneOrMore>
137137
<choice>
138138
<ref name="authors"/>
139-
<ref name="contentsTree"/>
139+
<ref name="contents"/>
140140
<ref name="block.class"/>
141141
</choice>
142142
</oneOrMore>
@@ -169,8 +169,8 @@
169169
<attribute name="href"/>
170170
</element>
171171
</define>
172-
<define name="contentsTree">
173-
<element name="contentsTree">
172+
<define name="contents">
173+
<element name="contents">
174174
<optional>
175175
<attribute name="maxdepth">
176176
<data type="unsignedInt"/>

devbook.xsl

+6-6
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
</xsl:template>
430430

431431
<!-- TOC Tree -->
432-
<xsl:template match="contentsTree" name="contentsTree">
432+
<xsl:template match="contents" name="contents">
433433
<xsl:param name="depth" select="0"/>
434434
<xsl:param name="maxdepth">
435435
<xsl:choose>
@@ -463,7 +463,7 @@
463463
<xsl:for-each select="document($doc_self)/devbook/include">
464464
<count value="{count(document(concat($path, @href, 'text.xml'))//*[name()=$extraction])}"
465465
path="{concat($path, @href)}">
466-
<xsl:call-template name="contentsTree">
466+
<xsl:call-template name="contents">
467467
<xsl:with-param name="depth" select="$depth + 1"/>
468468
<xsl:with-param name="maxdepth" select="$maxdepth"/>
469469
<xsl:with-param name="path" select="concat($path, @href)"/>
@@ -479,7 +479,7 @@
479479
<ul>
480480
<xsl:for-each select="document($doc_self)/devbook/include">
481481
<xsl:variable name="extraction_counter_node">
482-
<xsl:call-template name="contentsTree">
482+
<xsl:call-template name="contents">
483483
<xsl:with-param name="depth" select="$depth + 1"/>
484484
<xsl:with-param name="maxdepth" select="$maxdepth"/>
485485
<xsl:with-param name="path" select="concat($path, @href)"/>
@@ -513,7 +513,7 @@
513513
</xsl:for-each>
514514
</ul>
515515
</xsl:if>
516-
<xsl:call-template name="contentsTree">
516+
<xsl:call-template name="contents">
517517
<xsl:with-param name="depth" select="$depth + 1"/>
518518
<xsl:with-param name="maxdepth" select="$maxdepth"/>
519519
<xsl:with-param name="path" select="concat($path, @href)"/>
@@ -637,11 +637,11 @@
637637
<xsl:if test="/devbook/include">
638638
<li class="divider"><xsl:comment/></li>
639639
<!-- List any sub-documents included at first level.
640-
We cannot call "contentsTree" directly, because it would
640+
We cannot call "contents" directly, because it would
641641
insert another "ul" element. So, assign it to a variable,
642642
then copy only the "li" nodes. -->
643643
<xsl:variable name="contents">
644-
<xsl:call-template name="contentsTree">
644+
<xsl:call-template name="contents">
645645
<xsl:with-param name="maxdepth" select="1"/>
646646
</xsl:call-template>
647647
</xsl:variable>

ebuild-maintenance/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ familiar with.
1515
<section>
1616
<title>Contents</title>
1717
<body>
18-
<contentsTree/>
18+
<contents/>
1919
</body>
2020
</section>
2121
</chapter>

ebuild-writing/functions/src_compile/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The following subsections cover different topics which often occur when writing
7979
<c>src_compile</c> functions.
8080
</p>
8181

82-
<contentsTree/>
82+
<contents/>
8383
</body>
8484
</section>
8585

ebuild-writing/functions/src_configure/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The following subsections cover different topics which often occur when writing
7878
<c>src_configure</c> functions.
7979
</p>
8080

81-
<contentsTree/>
81+
<contents/>
8282
</body>
8383
</section>
8484

ebuild-writing/functions/src_install/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ The following subsections cover different topics which often occur when writing
229229
<c>src_install</c> functions.
230230
</p>
231231

232-
<contentsTree/>
232+
<contents/>
233233

234234
</body>
235235
</section>

ebuild-writing/functions/src_prepare/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The following subsections cover different topics which often occur
9090
when writing <c>src_prepare</c> functions.
9191
</p>
9292

93-
<contentsTree/>
93+
<contents/>
9494
</body>
9595
</section>
9696

ebuild-writing/functions/src_unpack/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The following subsections cover different topics which often occur when writing
116116
<c>src_unpack</c> functions.
117117
</p>
118118

119-
<contentsTree/>
119+
<contents/>
120120
</body>
121121
</section>
122122

ebuild-writing/functions/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ during the <c>src_compile</c> phase is equivalent to a call to the
109109
<section>
110110
<title>Contents</title>
111111
<body>
112-
<contentsTree/>
112+
<contents/>
113113
</body>
114114
</section>
115115
</chapter>

ebuild-writing/misc-files/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This section contains some notes on various miscellaneous files.
1212
<section>
1313
<title>Contents</title>
1414
<body>
15-
<contentsTree/>
15+
<contents/>
1616
</body>
1717
</section>
1818
</chapter>

ebuild-writing/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ with some general notes and extended examples.
1414
<section>
1515
<title>Contents</title>
1616
<body>
17-
<contentsTree/>
17+
<contents/>
1818
</body>
1919
</section>
2020
</chapter>

function-reference/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The following functions are available for use in ebuilds:
1212
<section>
1313
<title>Contents</title>
1414
<body>
15-
<contentsTree/>
15+
<contents/>
1616
</body>
1717
</section>
1818
</chapter>

general-concepts/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ writing ebuilds or working with the Gentoo repository.
1313
<section>
1414
<title>Contents</title>
1515
<body>
16-
<contentsTree/>
16+
<contents/>
1717
</body>
1818
</section>
1919

profiles/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Portage-specific behaviour must not be relied upon in the repository.
1919
<section>
2020
<title>Contents</title>
2121
<body>
22-
<contentsTree/>
22+
<contents/>
2323
</body>
2424
</section>
2525
</chapter>

tasks-reference/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ebuilds.
1313
<section>
1414
<title>Contents</title>
1515
<body>
16-
<contentsTree/>
16+
<contents/>
1717
</body>
1818
</section>
1919
</chapter>

text.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ section lists specific contributions to this manual.
2525
<section>
2626
<title>Contents</title>
2727
<body>
28-
<contentsTree maxdepth="1"/>
28+
<contents maxdepth="1"/>
2929
</body>
3030
</section>
3131

3232
<section>
3333
<title>Full contents</title>
3434
<body>
35-
<contentsTree/>
35+
<contents/>
3636
</body>
3737
</section>
3838
</chapter>

tools-reference/text.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ when using these tools in ebuilds.
2020
<section>
2121
<title>Contents</title>
2222
<body>
23-
<contentsTree/>
23+
<contents/>
2424
</body>
2525
</section>
2626
</chapter>

0 commit comments

Comments
 (0)