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

[Feature Request] Option to hide version dropdown menu and link directly to specific tag site #123

Closed
dgkf opened this issue Oct 12, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@dgkf
Copy link

dgkf commented Oct 12, 2021

Sometimes it's nice to link users to documentation without the option to bounce between versions. Especially if the production version of a product isn't on the latest release, users might see the version option and want to jump to the latest release assuming it is the deployed version but see docs that are out-of-sync with their use.

In this scenario, it would be helpful to be able to link to a specific version without the option to switch.

For example, perhaps mydocat.com/project/tag links to the docs with the version switching ui, but mydocat.com/project/tag?hideui=1 just displays the raw documentation page, or the page with docat header, but no version toggle.

@fliiiix fliiiix added the enhancement New feature or request label Oct 13, 2021
reglim added a commit that referenced this issue Oct 4, 2022
The default value is false, and not shown in the url.

fixes: #123
@reglim
Copy link
Contributor

reglim commented Oct 4, 2022

@dgkf
Ok, I made a parameter hideui that just hides the home and version controls. What I thought was maybe you'd like to have a button in said controls to switch to the hidden version of the page, so you don't have to change that in the URL.

@fliiiix , @randombenj and @dgkf

Could you tell me what you think of that idea?

@reglim
Copy link
Contributor

reglim commented Oct 4, 2022

Something like this:
image

reglim added a commit that referenced this issue Oct 5, 2022
Now you don't have to set the query parameter manually, and just copy
the link after clicking

fixes: #123
@fliiiix fliiiix closed this as completed in 72390d6 Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants