Skip to content

Commit 88c2677

Browse files
committed
Update Antora preview playbook to use adding-anywhere-footnote branch
Add `asciidoctor-anywhere-footnote` to Antora playbook and update UI bundle to prod-213 Add `asciidoctor-anywhere-footnote` to Antora playbook and update UI bundle path for local build Add `anywhere-footnotes` example and link to navigation Upgrade `asciidoctor-anywhere-footnote` to ~1.2.7 and update dependencies in `package-lock.json`. Upgrade `asciidoctor-anywhere-footnote` to ~1.2.2 and update dependencies in `package-lock.json`. Upgrade `asciidoctor-anywhere-footnote` to ~1.2.1 and update dependencies in `package-lock.json`. Upgrade `asciidoctor-anywhere-footnote` to ~1.2.0 and update dependencies in `package-lock.json`. Add `asciidoctor-anywhere-footnote` to Antora preview playbook Upgrade `asciidoctor-anywhere-footnote` to ~1.1.9 and update dependencies in `package-lock.json`. Updated to include the correct URL for the UI bundle. The PR for the new UI bundle (couchbase/docs-ui#193) should be reviewed first so we know the number of the bundle. Upgrade `asciidoctor-anywhere-footnote` to ~1.1.8 and update dependencies in `package-lock.json`. Updating package.json Adding the anywhere-footnote extension
1 parent 1decf72 commit 88c2677

File tree

8 files changed

+1676
-33
lines changed

8 files changed

+1676
-33
lines changed

antora-playbook-prerelease.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@ asciidoc:
166166
- asciidoctor-kroki
167167
- asciidoctor-external-callout
168168
- '@asciidoctor/tabs'
169+
- asciidoctor-anywhere-footnote
169170
ui:
170171
bundle:
171-
url: https://github.com/couchbase/docs-ui/releases/download/prod-198/ui-bundle.zip
172+
url: https://github.com/couchbase/docs-ui/releases/download/prod-213/ui-bundle.zip
172173
output:
173174
dir: ./public
174175
runtime:

antora-playbook-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ asciidoc:
5858
- ./lib/template-block.js
5959
- asciidoctor-kroki
6060
- asciidoctor-external-callout
61+
- asciidoctor-anywhere-footnote
6162
- '@asciidoctor/tabs'
6263
ui:
6364
bundle:
64-
url: https://github.com/couchbase/docs-ui/releases/download/prod-210/ui-bundle.zip
65+
url: https://github.com/couchbase/docs-ui/releases/download/prod-213/ui-bundle.zip
6566
output:
6667
dir: ./public
6768
runtime:

antora-playbook.preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ asciidoc:
292292
- ./lib/template-block.js
293293
- asciidoctor-kroki
294294
- asciidoctor-external-callout
295+
- asciidoctor-anywhere-footnote
295296
- '@asciidoctor/tabs'
296297
ui:
297298
bundle:

home/modules/contribute/nav.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@
3838
** xref:extensions.adoc[]
3939
4040
41-
//* Additional Resources (Pending)
41+
* Additional Resources
42+
** xref:anywhere-footnotes.adoc[]
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
= Anywhere Footnotes
2+
3+
One of the AsciiDoc extension extras we run on the site is Anywhere footnotes.
4+
This extension allows you to add footnotes to the page,
5+
with the block of references appearing anywhere on the page.
6+
(Regular AsciiDoc footnotes always appear right at the bottom).
7+
8+
This is very handy for pages where you have multiple tables appearing on the page, like this:
9+
10+
.Sample Table Title
11+
[cols="1,2,2", options="header"]
12+
|===
13+
|ID |Name |Description
14+
15+
|1
16+
|Product Aafnote:first-block[This is the first footnote]
17+
|High-quality widget with advanced features{empty}afnote:first-block[This is the second]
18+
19+
|2
20+
|Product B
21+
|Budget-friendly solution for everyday use
22+
23+
|3
24+
|Product C
25+
|Premium option with extended warranty
26+
|===
27+
28+
.Quarterly Sales Report 2025
29+
[cols="1,2,1,1,1", options="header"]
30+
|===
31+
|Quarter |Product |Units Sold |Revenue ($) |Profit Margin (%)
32+
33+
|Q1
34+
|Smartphone Xafnote:second-block[This is for the second block.]
35+
|5,420
36+
|$1,084,000
37+
|32.5
38+
39+
|Q1
40+
|Laptop Pro
41+
|1,875
42+
|$2,250,000
43+
|28.7
44+
45+
|Q1
46+
|Smart Watch
47+
|3,650
48+
|$729,000
49+
|41.2
50+
51+
|Q2
52+
|Smartphone X
53+
|6,780
54+
|$1,356,000afnote:second-block[Pricey!]
55+
|33.8
56+
57+
|Q2
58+
|Laptop Pro
59+
|2,140
60+
|$2,568,000
61+
|29.4
62+
63+
|Q2
64+
|Smart Watch
65+
|4,290
66+
|$858,000
67+
|42.1
68+
69+
|Q3
70+
|Smartphone X
71+
|7,890
72+
|$1,578,000
73+
|34.2
74+
75+
|Q3
76+
|Laptop Pro
77+
|2,560
78+
|$3,072,000
79+
|30.1
80+
81+
|Q3
82+
|Smart Watch
83+
|5,130
84+
|$1,026,000
85+
|43.5
86+
|===
87+
88+
== First block of footnotes
89+
afnote:first-block[]
90+
91+
== Second block of footnotes
92+
afnote:second-block[]
93+
94+
95+
.Sample Product Comparison
96+
[cols="1,1,1,1"]
97+
|===
98+
|Product |Price ($) |Rating (1-5) |Stock Status
99+
100+
|Premium Headphonesafnote:mid-block[Special offer!] |249.99 |4.7 |In Stock
101+
102+
|Wireless Speaker |129.95 |4.2 |Limited
103+
104+
4+|afnote:mid-block[omit-separator="true"]
105+
106+
|Smart Watch |199.50 |4.5 |In Stock
107+
108+
|Bluetooth Earbuds |89.99 |4.0 |Out of Stock
109+
|===
110+

0 commit comments

Comments
 (0)