Skip to content
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

Select custom label or hide label in selectors #256

Merged
merged 1 commit into from
Aug 28, 2024

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

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
5 checks passed
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.

1 participant