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: exclude version from navbar #2838

Closed
helgasoft opened this issue Jan 17, 2025 · 2 comments
Closed

Feature: exclude version from navbar #2838

helgasoft opened this issue Jan 17, 2025 · 2 comments

Comments

@helgasoft
Copy link

I would like to remove version from the navbar. For a variety of reasons:

  • difficulties fitting together package, CRAN and pkgdown documentation requirements
  • some Github code patches are unelated to documentation and rebuilding website seems unjustified
  • just visually disturbing/unwanted item

There is already an API precedent - search: exclude
Naively, since Chrome AI gave me the advice (ha-ha), I tried components: exclude: version to be rewarded by a silent crash in pkgdown::build_reference(topics='smtg'). Maybe worth looking into and making it more resilient.
Anyway, components: exclude: version, I think, would be a nice addition.

@jayhesselberth
Copy link
Collaborator

You should be able to hide the version number with custom CSS. We don't have a specific class on the version number, but this might be specific enough:

small.nav-text.text-muted.me-auto {
    display: none;
}

@helgasoft
Copy link
Author

Thanks, it worked using extra.css file.
I'll leave the issue open for the crash to be addressed, but someone may just close it.

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

No branches or pull requests

2 participants