Skip to content

Conversation

@recrwplay
Copy link
Collaborator

@recrwplay recrwplay commented Aug 27, 2024

In the version selector we currently prepend the version name (usually a number) with the word 'Version'.

This PR extends the version selector to allow a choice of:

  • custom text
  • no text

Two attributes are available to control the text that is displayed:

  • page-selector-label
  • page-selector-hide-label

These attributes should be set in the usual way by defining in a playbook, antora.yml, or in a page header.

To set custom text:

:page-selector-label: Custom version label

To have no text, ie just the version name:

:page-selector-hide-label: true

@netlify
Copy link

netlify bot commented Aug 27, 2024

Deploy Preview for neo4j-docs-ui ready!

Name Link
🔨 Latest commit bd7f29c
🔍 Latest deploy log https://app.netlify.com/sites/neo4j-docs-ui/deploys/66cdeb6a13091000087924ca
😎 Deploy Preview https://deploy-preview-256--neo4j-docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@recrwplay recrwplay merged commit 61bf909 into master Aug 28, 2024
@recrwplay recrwplay deleted the custom-selector-label branch November 27, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants