Skip to content
Draft
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
1 change: 1 addition & 0 deletions playbook-local-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ asciidoc:
idprefix: ''
urls:
redirect_facility: netlify
latest_version_segment: current
7 changes: 6 additions & 1 deletion playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -132,3 +136,4 @@ antora:
urls:
html_extension_style: drop
redirect_facility: netlify
latest_version_segment: current
4 changes: 3 additions & 1 deletion ui/theme/partials/navigation.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<span class="">{{{./title}}}</span>
<div class="component-version">
{{#if (and versions (eq this @root.page.component))}}
{{#unless (eq versions.length 1)}}
{{#unless (eq @root.page.componentVersion.displayVersion "default")}}
<button class="flex align-center shrink btn btn-version" id="version-selector">
{{@root.page.componentVersion.displayVersion}}
</button>
Expand All @@ -47,6 +47,7 @@
{{/with}}
</li>
</ul>
{{#unless (eq versions.length 1)}}
<p>Other versions</p>
<ul>
{{#each versions}}
Expand All @@ -57,6 +58,7 @@
{{/unless}}
{{/each}}
</ul>
{{/unless}}
</div>
</div>
{{/unless}}
Expand Down