-
Notifications
You must be signed in to change notification settings - Fork 95
adding-anywhere-footnote #827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
RayOffiah
wants to merge
9
commits into
master
Choose a base branch
from
adding-anywhere-footnote
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f008a27
Update Antora preview playbook to use `adding-anywhere-footnote` branch
RayOffiah c0915f6
WIP add preview config, add test for extension
osfameron 5a2b0e4
add extension to preview config
osfameron 36d9b65
Upgrade `asciidoctor-anywhere-footnote` to ~1.3.5 in `package.json`.
RayOffiah 03df942
test attribute for diagnostics
osfameron 50ca707
Repaired unit test
RayOffiah 95479a4
Bumped `anywhere-footnote` to 1.3.6
RayOffiah a4bfb35
Remove unused `afnote-block` spans from `anywhere-footnotes` example …
RayOffiah 57a63b6
Testing the layout
RayOffiah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
home/modules/contribute/pages/extensions-anywhere-footnotes.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] | ||
|
|
||
| |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 | ||
| |=== | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.