From afab0df8187acdd545aa1f0a1817c8356beb81f0 Mon Sep 17 00:00:00 2001 From: Eric Lau Date: Thu, 10 Apr 2025 12:04:52 -0400 Subject: [PATCH 1/3] Redirect version to latest --- playbook-local-only.yml | 1 + playbook.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/playbook-local-only.yml b/playbook-local-only.yml index ec8b69bf..2f99cc9a 100644 --- a/playbook-local-only.yml +++ b/playbook-local-only.yml @@ -26,3 +26,4 @@ asciidoc: idprefix: '' urls: redirect_facility: netlify + latest_version_segment: latest diff --git a/playbook.yml b/playbook.yml index 6997eb01..59a3a307 100644 --- a/playbook.yml +++ b/playbook.yml @@ -132,3 +132,4 @@ antora: urls: html_extension_style: drop redirect_facility: netlify + latest_version_segment: latest From 33ebec0866dadfe3707b47c08aff9fd44baa60a1 Mon Sep 17 00:00:00 2001 From: Eric Lau Date: Thu, 10 Apr 2025 14:22:28 -0400 Subject: [PATCH 2/3] Rename latest to current, remove unsupported branches, always show version label --- playbook.yml | 8 ++++++-- ui/theme/partials/navigation.hbs | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/playbook.yml b/playbook.yml index 59a3a307..7f7e2bf8 100644 --- a/playbook.yml +++ b/playbook.yml @@ -20,7 +20,9 @@ content: start_path: components/open-source-tools - url: https://github.com/OpenZeppelin/openzeppelin-contracts - branches: docs-v* + branches: + - docs-v* + - "!docs-v2*" start_path: docs - url: https://github.com/OpenZeppelin/openzeppelin-sdk @@ -78,6 +80,7 @@ content: - url: https://github.com/OpenZeppelin/cairo-contracts branches: - docs-v* + - "!docs-v0.*" start_path: docs - url: https://github.com/OpenZeppelin/nile @@ -87,6 +90,7 @@ content: - url: https://github.com/OpenZeppelin/polkadot-runtime-templates branches: - v* + - "!v({1..2})*" - "!v0.1" # initial version not published start_path: docs @@ -132,4 +136,4 @@ antora: urls: html_extension_style: drop redirect_facility: netlify - latest_version_segment: latest + latest_version_segment: current diff --git a/ui/theme/partials/navigation.hbs b/ui/theme/partials/navigation.hbs index facfc93e..15e5ad2e 100644 --- a/ui/theme/partials/navigation.hbs +++ b/ui/theme/partials/navigation.hbs @@ -33,7 +33,7 @@ {{{./title}}}
{{#if (and versions (eq this @root.page.component))}} - {{#unless (eq versions.length 1)}} + {{#unless (eq @root.page.componentVersion.displayVersion "default")}} @@ -47,6 +47,7 @@ {{/with}} + {{#unless (eq versions.length 1)}}

Other versions

    {{#each versions}} @@ -57,6 +58,7 @@ {{/unless}} {{/each}}
+ {{/unless}}
{{/unless}} From 89dfd5a9caa498200a502a296d11d4f839429816 Mon Sep 17 00:00:00 2001 From: Eric Lau Date: Thu, 10 Apr 2025 14:24:07 -0400 Subject: [PATCH 3/3] Update local --- playbook-local-only.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbook-local-only.yml b/playbook-local-only.yml index 2f99cc9a..26210216 100644 --- a/playbook-local-only.yml +++ b/playbook-local-only.yml @@ -26,4 +26,4 @@ asciidoc: idprefix: '' urls: redirect_facility: netlify - latest_version_segment: latest + latest_version_segment: current