Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion antora-playbook-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ asciidoc:
- asciidoctor-kroki
- asciidoctor-external-callout
- '@asciidoctor/tabs'
- asciidoctor-anywhere-footnote
ui:
bundle:
url: https://github.com/couchbase/docs-ui/releases/download/prod-198/ui-bundle.zip
url: https://github.com/couchbase/docs-ui/releases/download/prod-213/ui-bundle.zip
output:
dir: ./public
runtime:
Expand Down
3 changes: 2 additions & 1 deletion antora-playbook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ asciidoc:
- ./lib/template-block.js
- asciidoctor-kroki
- asciidoctor-external-callout
- asciidoctor-anywhere-footnote
- '@asciidoctor/tabs'
ui:
bundle:
url: https://github.com/couchbase/docs-ui/releases/download/prod-210/ui-bundle.zip
url: https://github.com/couchbase/docs-ui/releases/download/prod-213/ui-bundle.zip
output:
dir: ./public
runtime:
Expand Down
1 change: 1 addition & 0 deletions antora-playbook.preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ asciidoc:
- asciidoctor-kroki
- asciidoctor-external-callout
- "@asciidoctor/tabs"
- asciidoctor-anywhere-footnote
attributes:
site-navigation-data-path: _/js/site-navigation-data.js
enable-cmos: ""
Expand Down
3 changes: 2 additions & 1 deletion antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,11 @@ asciidoc:
- asciidoctor-kroki
- asciidoctor-external-callout
- '@asciidoctor/tabs'
- asciidoctor-anywhere-footnote

ui:
bundle:
url: https://github.com/couchbase/docs-ui/releases/download/prod-216/ui-bundle.zip
url: https://github.com/couchbase/docs-ui/releases/tag/adding-anywhere-footnote-15/ui-bundle.zip
output:
dir: ./public
runtime:
Expand Down
3 changes: 2 additions & 1 deletion home/modules/contribute/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@
** xref:extensions.adoc[]


//* Additional Resources (Pending)
* Additional Resources
** xref:anywhere-footnotes.adoc[]
110 changes: 110 additions & 0 deletions home/modules/contribute/pages/extensions-anywhere-footnotes.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
= Anywhere Footnotes

One of the AsciiDoc extension extras we run on the site is Anywhere footnotes.
This extension allows you to add footnotes to the page,
with the block of references appearing anywhere on the page.
(Regular AsciiDoc footnotes always appear right at the bottom).

This is very handy for pages where you have multiple tables appearing on the page, like this:

.Sample Table Title
[cols="1,2,2", options="header"]
|===
|ID |Name |Description

|1
|Product Aafnote:first-block[This is the first footnote]
|High-quality widget with advanced features{empty}afnote:first-block[This is the second]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the {empty} to disambiguate, we should have that throughout to recommend that as best practice.


|2
|Product B
|Budget-friendly solution for everyday use

|3
|Product C
|Premium option with extended warranty
|===

.Quarterly Sales Report 2025
[cols="1,2,1,1,1", options="header"]
|===
|Quarter |Product |Units Sold |Revenue ($) |Profit Margin (%)

|Q1
|Smartphone Xafnote:second-block[This is for the second block.]
|5,420
|$1,084,000
|32.5

|Q1
|Laptop Pro
|1,875
|$2,250,000
|28.7

|Q1
|Smart Watch
|3,650
|$729,000
|41.2

|Q2
|Smartphone X
|6,780
|$1,356,000afnote:second-block[Pricey!]
|33.8

|Q2
|Laptop Pro
|2,140
|$2,568,000
|29.4

|Q2
|Smart Watch
|4,290
|$858,000
|42.1

|Q3
|Smartphone X
|7,890
|$1,578,000
|34.2

|Q3
|Laptop Pro
|2,560
|$3,072,000
|30.1

|Q3
|Smart Watch
|5,130
|$1,026,000
|43.5
|===

== First block of footnotes
afnote:first-block[]

== Second block of footnotes
afnote:second-block[]


.Sample Product Comparison
[cols="1,1,1,1"]
|===
|Product |Price ($) |Rating (1-5) |Stock Status

|Premium Headphonesafnote:mid-block[Special offer!] |249.99 |4.7 |In Stock

|Wireless Speaker |129.95 |4.2 |Limited

4+|afnote:mid-block[omit-separator="true"]

|Smart Watch |199.50 |4.5 |In Stock

|Bluetooth Earbuds |89.99 |4.0 |Out of Stock
|===

9 changes: 9 additions & 0 deletions home/preview/adding-anywhere-footnote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
override:
asciidoc:
attributes:
test-hakim: test
extensions:
- asciidoctor-anywhere-footnote
ui:
bundle:
url: https://github.com/couchbase/docs-ui/releases/download/adding-anywhere-footnote-13/ui-bundle.zip
Loading