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

Use clean URLs for the generated Maven site #26

Merged
merged 4 commits into from
Feb 13, 2024
Merged

Conversation

chabala
Copy link
Owner

@chabala chabala commented Feb 12, 2024

This PR automates for future builds various changes to the published Maven site that were made manually, in 9c9bd0a & b001cc3 , to improve SEO based on the recommendations of Google Search Console, namely:

  • using clean URLs in the sitemap (in this case, preferring index page URLs to end with /, rather than /index.html)
  • canonical URL link tags on every page (again respecting the clean URL style)
  • redirect pages for pages that relocated due to MPIR-323

It also makes for an interesting example of using BeanShell in the beanshell-maven-plugin to perform custom, free form tasks, and how not fun it is to be stuck in pre-Java-5 language syntax, without generics, varargs, or try-with-resources.

@chabala chabala self-assigned this Feb 12, 2024
@coveralls
Copy link

coveralls commented Feb 12, 2024

Coverage Status

coverage: 67.223%. remained the same
when pulling b7dac88 on clean-site-urls
into 7f88d3a on master.

Copy link

sonarcloud bot commented Feb 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@chabala chabala merged commit 3e74c25 into master Feb 13, 2024
9 checks passed
@chabala chabala deleted the clean-site-urls branch February 13, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants