Skip to content

Add version selector #1374

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add version selector #1374

wants to merge 1 commit into from

Conversation

p8
Copy link
Contributor

@p8 p8 commented May 31, 2025

To make it easier to switch to documentation of other versions, add a select box to select other versions.

For example, the versions can be defined in .rdoc_options:

versions:
  latest: https://docs.ruby-lang.org/en/
  master: https://docs.ruby-lang.org/en/master/
  3.4: https://docs.ruby-lang.org/en/3.4/
image

This would allow https://docs.ruby-lang.org/en/ to just show RDoc documentation for the last released version instead of a list of documentation version.

Copy link

github-actions bot commented May 31, 2025

Cloudflare Preview Deployment

⚠️ This PR is from a fork, so the preview deployment workflow doesn't run automatically for security reasons.

For Maintainers:

🚀 Click here to run the preview deployment workflow

This will trigger a Cloudflare Pages preview deployment for this PR.

To make it easier to switch to documentation of other versions, add a
select box to select other versions.

For example, the versions can be defined in `.rdoc_options`:

```yaml
version_roots:
  latest: https://docs.ruby-lang.org/en/
  master: https://docs.ruby-lang.org/en/master/
  3.4: https://docs.ruby-lang.org/en/3.4/
```
@p8 p8 force-pushed the features/version-select branch from fe4ed57 to fee9e2c Compare June 1, 2025 07:38
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