Skip to content

Draft: Consider using stable URL tag, consider removing unsupported versions #438

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
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