Skip to content

Commit dffdcc7

Browse files
committed
fix: display icons on local builds
1 parent 2984c72 commit dffdcc7

12 files changed

Lines changed: 18 additions & 15 deletions

File tree

antora-playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ asciidoc:
327327
attributes:
328328
base-repo: https://github.com/stackabletech
329329
# an external icon. Create a link opening in a new tab like this: http://my-url.com[Text {external-link-icon}^]
330-
external-link-icon: "<svg class=\"svg-icon\" style=\"width: 0.75em; height: 0.75em; margin-left: 3px;\" aria-hidden=\"true\"><use href=\"/_/img/icons.svg#icon-external-link\"/></svg>"
330+
external-link-icon: "<svg class=\"svg-icon\" style=\"width: 0.75em; height: 0.75em; margin-left: 3px;\" aria-hidden=\"true\"><use href=\"#icon-external-link\"/></svg>"
331331
# the default caching directory is ./.cache/antora
332332
# Antora caches the git repos, this can sometimes lead to stale content
333333
# use 'make clean' to remove the build and cache directory

local-antora-playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ asciidoc:
312312
attributes:
313313
base-repo: https://github.com/stackabletech
314314
# an external icon. Create a link opening in a new tab like this: http://my-url.com[Text {external-link-icon}^]
315-
external-link-icon: "<svg class=\"svg-icon\" style=\"width: 0.75em; height: 0.75em; margin-left: 3px;\" aria-hidden=\"true\"><use href=\"/_/img/icons.svg#icon-external-link\"/></svg>"
315+
external-link-icon: "<svg class=\"svg-icon\" style=\"width: 0.75em; height: 0.75em; margin-left: 3px;\" aria-hidden=\"true\"><use href=\"#icon-external-link\"/></svg>"
316316
# the default caching directory is ./.cache/antora
317317
# Antora caches the git repos, this can sometimes lead to stale content
318318
# use 'make clean' to remove the build and cache directory

modules/reference/pages/glossary.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Glossary
2-
:li: pass:[<svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="/_/img/icons.svg#icon-link"/></svg>]
2+
:li: pass:[<svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="#icon-link"/></svg>]
33
:description: Glossary of Stackable terms, including Role, Role Group, and Stacklet, with definitions and links to detailed explanations.
44

55
// refined styling for the glossary

only-dev-antora-playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ asciidoc:
105105
attributes:
106106
base-repo: https://github.com/stackabletech
107107
# an external icon. Create a link opening in a new tab like this: http://my-url.com[Text {external-link-icon}^]
108-
external-link-icon: "<svg class=\"svg-icon\" style=\"width: 0.75em; height: 0.75em; margin-left: 3px;\" aria-hidden=\"true\"><use href=\"/_/img/icons.svg#icon-external-link\"/></svg>"
108+
external-link-icon: "<svg class=\"svg-icon\" style=\"width: 0.75em; height: 0.75em; margin-left: 3px;\" aria-hidden=\"true\"><use href=\"#icon-external-link\"/></svg>"
109109
# the default caching directory is ./.cache/antora
110110
# Antora caches the git repos, this can sometimes lead to stale content
111111
# use 'make clean' to remove the build and cache directory

supplemental-ui/partials/navbar.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<a class="navbar-item" href="{{{ relativize (versioned "home" page "reference/index.html") }}}">CRD Reference</a>
1919
{{else}}
2020
<a class="navbar-item" href="{{{ page.attributes.crd-docs }}}" target="_blank">
21-
CRD Reference <svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="{{{uiRootPath}}}/img/icons.svg#icon-external-link"/></svg>
21+
CRD Reference <svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="#icon-external-link"/></svg>
2222
</a>
2323
{{/if}}
2424
<hr class="navbar-divider">
@@ -95,13 +95,13 @@
9595
<a class="navbar-link" href="#">Community</a>
9696
<div class="navbar-dropdown">
9797
<a class="navbar-item" href="https://stackable.tech/en/" target="_blank">
98-
Homepage <svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="{{{uiRootPath}}}/img/icons.svg#icon-external-link"/></svg>
98+
Homepage <svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="#icon-external-link"/></svg>
9999
</a>
100100
<a class="navbar-item" href="https://github.com/stackabletech/" target="_blank">
101-
GitHub <svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="{{{uiRootPath}}}/img/icons.svg#icon-external-link"/></svg>
101+
GitHub <svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="#icon-external-link"/></svg>
102102
</a>
103103
<a class="navbar-item" href="https://discord.com/invite/7kZ3BNnCAF" target="_blank">
104-
Discord <svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="{{{uiRootPath}}}/img/icons.svg#icon-external-link"/></svg>
104+
Discord <svg class="svg-icon" style="width: 0.875em; height: 0.875em; margin-left: 5px;" aria-hidden="true"><use href="#icon-external-link"/></svg>
105105
</a>
106106
<hr class="navbar-divider">
107107
<a class="navbar-item" href="{{{ relativize (versioned "home" page "contributor/index.html") }}}">Contributing</a>

truly-local-playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ asciidoc:
7070
attributes:
7171
base-repo: https://github.com/stackabletech
7272
# an external icon. Create a link opening in a new tab like this: http://my-url.com[Text {external-link-icon}^]
73-
external-link-icon: "<svg class=\"svg-icon\" style=\"width: 0.75em; height: 0.75em; margin-left: 3px;\" aria-hidden=\"true\"><use href=\"/_/img/icons.svg#icon-external-link\"/></svg>"
73+
external-link-icon: "<svg class=\"svg-icon\" style=\"width: 0.75em; height: 0.75em; margin-left: 3px;\" aria-hidden=\"true\"><use href=\"#icon-external-link\"/></svg>"
7474
# the default caching directory is ./.cache/antora
7575
# Antora caches the git repos, this can sometimes lead to stale content
7676
# use 'make clean' to remove the build and cache directory

ui/src/layouts/404.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{{> head defaultPageTitle='Page Not Found'}}
55
</head>
66
<body class="status-404">
7+
{{> icons}}
78
{{> universal-nav}}
89
{{> header}}
910
{{> body}}

ui/src/layouts/default.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{{> head defaultPageTitle='Untitled'}}
55
</head>
66
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}}">
7+
{{> icons}}
78
{{> universal-nav}}
89
{{> header}}
910
{{> body}}

ui/src/layouts/landing.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{{> head defaultPageTitle='Untitled'}}
55
</head>
66
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}}">
7+
{{> icons}}
78
{{> universal-nav}}
89
{{> header}}
910
<div class="body">

ui/src/partials/footer-content.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@
5555
<div>© 2025 Stackable.</div>
5656
<div class="social-icons-container">
5757
<a class="social-icon" href="https://www.xing.com/pages/stackable" target="_blank">
58-
<svg class="svg-icon" aria-hidden="true"><use href="{{{uiRootPath}}}/img/icons.svg#icon-xing"/></svg>
58+
<svg class="svg-icon" aria-hidden="true"><use href="#icon-xing"/></svg>
5959
</a>
6060
<a class="social-icon" href="https://www.linkedin.com/company/stackabletech/" target="_blank">
61-
<svg class="svg-icon" aria-hidden="true"><use href="{{{uiRootPath}}}/img/icons.svg#icon-linkedin"/></svg>
61+
<svg class="svg-icon" aria-hidden="true"><use href="#icon-linkedin"/></svg>
6262
</a>
6363
<a class="social-icon" href="https://github.com/stackabletech" target="_blank">
64-
<svg class="svg-icon" aria-hidden="true"><use href="{{{uiRootPath}}}/img/icons.svg#icon-github"/></svg>
64+
<svg class="svg-icon" aria-hidden="true"><use href="#icon-github"/></svg>
6565
</a>
6666
<a class="social-icon" href="https://twitter.com/stackabletech" target="_blank">
67-
<svg class="svg-icon" aria-hidden="true"><use href="{{{uiRootPath}}}/img/icons.svg#icon-twitter"/></svg>
67+
<svg class="svg-icon" aria-hidden="true"><use href="#icon-twitter"/></svg>
6868
</a>
6969
</div>
7070
</div>

0 commit comments

Comments
 (0)