Skip to content

Commit 431b3cc

Browse files
committed
Upgrade asciidoctor-anywhere-footnote to ~1.3.5 in package.json.
Update footnote markers in `anywhere-footnotes` example to remove brackets and improve readability. Update UI bundle URL to `adding-anywhere-footnote-13` in Antora preview playbook Upgrade `asciidoctor-anywhere-footnote` to ~1.3.2 and update dependencies in `package-lock.json`. Upgrade `asciidoctor-anywhere-footnote` to ~1.3.1, update footnote structure in `anywhere-footnotes` example, and remove the unused `randomstring` dependency Add `refid` attributes to footnotes in `anywhere-footnotes` example. This is to ensure that the unit tests don't need to worry about the random strings that are usually applied to the footnote references.
1 parent 8950388 commit 431b3cc

File tree

5 files changed

+24
-37
lines changed

5 files changed

+24
-37
lines changed

home/preview/adding-anywhere-footnote.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ override:
44
- asciidoctor-anywhere-footnote
55
ui:
66
bundle:
7-
url: https://github.com/couchbase/docs-ui/releases/download/adding-anywhere-footnote-11/ui-bundle.zip
7+
url: https://github.com/couchbase/docs-ui/releases/download/adding-anywhere-footnote-13/ui-bundle.zip

package-lock.json

Lines changed: 6 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"antora": "~3.1",
1313
"array.prototype.groupby": "^1.1.0",
1414
"asciidoctor-external-callout": "~1.2.2",
15-
"asciidoctor-anywhere-footnote": "~1.2.7",
15+
"asciidoctor-anywhere-footnote": "~1.3.5",
1616
"asciidoctor-kroki": "0.18.1",
1717
"gulp": "~5.0",
1818
"gulp-connect": "~5.7",

test/fixtures/antora-output/anywhere-footnote.html

Whitespace-only changes.

test/fixtures/antora-output/extensions-anywhere-footnotes.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ <h1 class="page">Anywhere Footnotes</h1>
4040
<tbody>
4141
<tr>
4242
<td class="tableblock halign-left valign-top"><p class="tableblock">1</p></td>
43-
<td class="tableblock halign-left valign-top"><p class="tableblock">Product A<span class="anywhere-footnote-marker"><a id="first-block-EyEQeGCN-ref"></a><a href="#first-block-EyEQeGCN-block">[1]</a></span></p></td>
44-
<td class="tableblock halign-left valign-top"><p class="tableblock">High-quality widget with advanced features<span class="anywhere-footnote-marker"><a id="first-block-w81bvhl1-ref"></a><a href="#first-block-w81bvhl1-block">[2]</a></span></p></td>
43+
<td class="tableblock halign-left valign-top"><p class="tableblock">Product A<span class="afnote-marker"><a id="afnote-first-block-1-ref"></a><a href="#afnote-first-block-1-def">1</a></span></p></td>
44+
<td class="tableblock halign-left valign-top"><p class="tableblock">High-quality widget with advanced features<span class="afnote-marker"><a id="afnote-first-block-2-ref"></a><a href="#afnote-first-block-2-def">2</a></span></p></td>
4545
</tr>
4646
<tr>
4747
<td class="tableblock halign-left valign-top"><p class="tableblock">2</p></td>
@@ -76,7 +76,7 @@ <h1 class="page">Anywhere Footnotes</h1>
7676
<tbody>
7777
<tr>
7878
<td class="tableblock halign-left valign-top"><p class="tableblock">Q1</p></td>
79-
<td class="tableblock halign-left valign-top"><p class="tableblock">Smartphone X<span class="anywhere-footnote-marker"><a id="second-block-8LiTnzaL-ref"></a><a href="#second-block-8LiTnzaL-block">[3]</a></span></p></td>
79+
<td class="tableblock halign-left valign-top"><p class="tableblock">Smartphone X<span class="afnote-marker"><a id="afnote-second-block-3-ref"></a><a href="#afnote-second-block-3-def">3</a></span></p></td>
8080
<td class="tableblock halign-left valign-top"><p class="tableblock">5,420</p></td>
8181
<td class="tableblock halign-left valign-top"><p class="tableblock">$1,084,000</p></td>
8282
<td class="tableblock halign-left valign-top"><p class="tableblock">32.5</p></td>
@@ -99,7 +99,7 @@ <h1 class="page">Anywhere Footnotes</h1>
9999
<td class="tableblock halign-left valign-top"><p class="tableblock">Q2</p></td>
100100
<td class="tableblock halign-left valign-top"><p class="tableblock">Smartphone X</p></td>
101101
<td class="tableblock halign-left valign-top"><p class="tableblock">6,780</p></td>
102-
<td class="tableblock halign-left valign-top"><p class="tableblock">$1,356,000<span class="anywhere-footnote-marker"><a id="second-block-htOZG3NA-ref"></a><a href="#second-block-htOZG3NA-block">[4]</a></span></p></td>
102+
<td class="tableblock halign-left valign-top"><p class="tableblock">$1,356,000<span class="afnote-marker"><a id="afnote-second-block-4-ref"></a><a href="#afnote-second-block-4-def">4</a></span></p></td>
103103
<td class="tableblock halign-left valign-top"><p class="tableblock">33.8</p></td>
104104
</tr>
105105
<tr>
@@ -145,16 +145,16 @@ <h1 class="page">Anywhere Footnotes</h1>
145145
<h2 id="first-block-of-footnotes"><a class="anchor" href="#first-block-of-footnotes"></a>First block of footnotes</h2>
146146
<div class="sectionbody">
147147
<div class="paragraph">
148-
<p><span class="anywhere-footnote-block"></span></p><div class="paragraph anywhere-footnote-hr-divider">
148+
<p><span class="afnote-block"></span></p><div class="paragraph afnote-hr-divider">
149149
<p></p>
150150
</div>
151-
<div class="dlist anywhere-footnote-horizontal">
151+
<div class="dlist afnote-horizontal">
152152
<dl>
153-
<dt class="hdlist1"><a href="#first-block-EyEQeGCN-ref" class="anywhere-footnote-marker">[1]</a><a id="first-block-EyEQeGCN-block"></a></dt>
153+
<dt class="hdlist1"><a href="#afnote-first-block-1-ref" class="afnote-marker">1</a><a id="afnote-first-block-1-def"></a></dt>
154154
<dd>
155155
<p>This is the first footnote</p>
156156
</dd>
157-
<dt class="hdlist1"><a href="#first-block-w81bvhl1-ref" class="anywhere-footnote-marker">[2]</a><a id="first-block-w81bvhl1-block"></a></dt>
157+
<dt class="hdlist1"><a href="#afnote-first-block-2-ref" class="afnote-marker">2</a><a id="afnote-first-block-2-def"></a></dt>
158158
<dd>
159159
<p>This is the second</p>
160160
</dd>
@@ -167,16 +167,16 @@ <h2 id="first-block-of-footnotes"><a class="anchor" href="#first-block-of-footno
167167
<h2 id="second-block-of-footnotes"><a class="anchor" href="#second-block-of-footnotes"></a>Second block of footnotes</h2>
168168
<div class="sectionbody">
169169
<div class="paragraph">
170-
<p><span class="anywhere-footnote-block"></span></p><div class="paragraph anywhere-footnote-hr-divider">
170+
<p><span class="afnote-block"></span></p><div class="paragraph afnote-hr-divider">
171171
<p></p>
172172
</div>
173-
<div class="dlist anywhere-footnote-horizontal">
173+
<div class="dlist afnote-horizontal">
174174
<dl>
175-
<dt class="hdlist1"><a href="#second-block-8LiTnzaL-ref" class="anywhere-footnote-marker">[3]</a><a id="second-block-8LiTnzaL-block"></a></dt>
175+
<dt class="hdlist1"><a href="#afnote-second-block-3-ref" class="afnote-marker">3</a><a id="afnote-second-block-3-def"></a></dt>
176176
<dd>
177177
<p>This is for the second block.</p>
178178
</dd>
179-
<dt class="hdlist1"><a href="#second-block-htOZG3NA-ref" class="anywhere-footnote-marker">[4]</a><a id="second-block-htOZG3NA-block"></a></dt>
179+
<dt class="hdlist1"><a href="#afnote-second-block-4-ref" class="afnote-marker">4</a><a id="afnote-second-block-4-def"></a></dt>
180180
<dd>
181181
<p>Pricey!</p>
182182
</dd>
@@ -201,7 +201,7 @@ <h2 id="second-block-of-footnotes"><a class="anchor" href="#second-block-of-foot
201201
</thead>
202202
<tbody>
203203
<tr>
204-
<td class="tableblock halign-left valign-top"><p class="tableblock">Premium Headphones<span class="anywhere-footnote-marker"><a id="mid-block-YQRi82Xu-ref"></a><a href="#mid-block-YQRi82Xu-block">[5]</a></span></p></td>
204+
<td class="tableblock halign-left valign-top"><p class="tableblock">Premium Headphones<span class="afnote-marker"><a id="afnote-mid-block-5-ref"></a><a href="#afnote-mid-block-5-def">5</a></span></p></td>
205205
<td class="tableblock halign-left valign-top"><p class="tableblock">249.99</p></td>
206206
<td class="tableblock halign-left valign-top"><p class="tableblock">4.7</p></td>
207207
<td class="tableblock halign-left valign-top"><p class="tableblock">In Stock</p></td>
@@ -213,12 +213,12 @@ <h2 id="second-block-of-footnotes"><a class="anchor" href="#second-block-of-foot
213213
<td class="tableblock halign-left valign-top"><p class="tableblock">Limited</p></td>
214214
</tr>
215215
<tr>
216-
<td class="tableblock halign-left valign-top" colspan="4"><p class="tableblock"><span class="anywhere-footnote-block">
216+
<td class="tableblock halign-left valign-top" colspan="4"><p class="tableblock"><span class="afnote-block">
217217

218218

219-
</span></p><div class="dlist anywhere-footnote-horizontal">
219+
</span></p><div class="dlist afnote-horizontal">
220220
<dl>
221-
<dt class="hdlist1"><a href="#mid-block-YQRi82Xu-ref" class="anywhere-footnote-marker">[5]</a><a id="mid-block-YQRi82Xu-block"></a></dt>
221+
<dt class="hdlist1"><a href="#afnote-mid-block-5-ref" class="afnote-marker">5</a><a id="afnote-mid-block-5-def"></a></dt>
222222
<dd>
223223
<p>Special offer!</p>
224224
</dd>

0 commit comments

Comments
 (0)