Use shared resource for attributes

This commit is contained in:
Billy Tat 2025-09-10 14:29:19 -07:00
parent b783ab5ba4
commit eb24f52cc3
No known key found for this signature in database
6 changed files with 11 additions and 2 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "dsc-style-bundle"] [submodule "dsc-style-bundle"]
path = dsc-style-bundle path = dsc-style-bundle
url = https://github.com/SUSEdoc/dsc-style-bundle url = https://github.com/SUSEdoc/dsc-style-bundle
[submodule "product-docs-common"]
path = product-docs-common
url = https://github.com/rancher/product-docs-common

View File

@ -28,3 +28,6 @@ antora:
script_stem: header-scripts # <3> script_stem: header-scripts # <3>
mermaid_initialize_options: # <4> mermaid_initialize_options: # <4>
- require: '@springio/antora-xref-extension' - require: '@springio/antora-xref-extension'
- require: ./product-docs-common/extensions/dynamic-loading-attributes/load-global-site-attributes.js
attributefile: ./product-docs-common/global-attributes.yml
enabled: true

View File

@ -30,3 +30,6 @@ antora:
script_stem: header-scripts # <3> script_stem: header-scripts # <3>
mermaid_initialize_options: # <4> mermaid_initialize_options: # <4>
- require: '@springio/antora-xref-extension' - require: '@springio/antora-xref-extension'
- require: ./product-docs-common/extensions/dynamic-loading-attributes/load-global-site-attributes.js
attributefile: ./product-docs-common/global-attributes.yml
enabled: true

1
product-docs-common Submodule

@ -0,0 +1 @@
Subproject commit c9d2015c33fcb4bd893ac62284581847204de65e

View File

@ -5,7 +5,6 @@ display_version: 'Latest'
start_page: en:introduction.adoc start_page: en:introduction.adoc
asciidoc: asciidoc:
attributes: attributes:
product-name: "SUSE® Rancher Prime: K3s"
longhorn_docs_version: 1.8 longhorn_docs_version: 1.8
nav: nav:
- modules/en/nav.adoc - modules/en/nav.adoc

View File

@ -1,4 +1,4 @@
= {product-name} = {k3s-product-name}
:revdate: 2024-10-23 :revdate: 2024-10-23
:page-revdate: {revdate} :page-revdate: {revdate}
:page-role: -toc :page-role: -toc