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

Handle redirects with a custom 404 page instead of using jekyll-redirect-from. #7613

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

chaoren
Copy link
Member

@chaoren chaoren commented Jan 10, 2025

This allows us to redirect entire subtrees instead of just the root. All of the short link redirects can be generated in JavaScript when the website is built, so we longer need to create and check in hundreds of markdown files.

Also:

  • Added badges for the latest and snapshot versions of Javadocs.
  • Added a redirect from /releases/latest/ to the latest version.
  • Fixed the whitespaces in the generated HTML files.
  • Fixed the config so that the website works on local development servers.
  • Removed some unused files.

All of these should redirect correctly:

The Javadoc badges are here:

The badge for the latest version will update automatically.

@chaoren chaoren requested a review from cpovirk January 10, 2025 23:49
…ect-from.

This allows us to redirect entire subtrees instead of just the root.
All of the short link redirects can be generated in JavaScript when
the website is built, so we longer need to create and check in
hundreds of markdown files.

Also:
- Added badges for the latest and snapshot versions of Javadocs.
- Added a redirect from /releases/latest/ to the latest version.
- Fixed the whitespaces in the generated HTML files.
- Fixed the config so that the website works on local development servers.
- Removed some unused files.
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