Open jamesdaily opened 2 years ago
That's an interesting idea.
How about prefix matching?
Like if you do https://javadoc.io/doc/org.apache.pdfbox/pdfbox/2 then it will be redirected to https://javadoc.io/doc/org.apache.pdfbox/pdfbox/2.0.26/index.html
But if you do https://javadoc.io/doc/org.apache.pdfbox/pdfbox/1.7/index.html then it will be redirected to https://javadoc.io/doc/org.apache.pdfbox/pdfbox/1.7.1/index.html (not 1.8.16 so that you can decide the latest version of a different prefix)
Currently, javadocs.io supports linking to the latest version or a specific exact version.
I'd like to be able to link to a specific major version, eg 3.x or 2.x and have it forward to the latest revision of that major version.
For example, https://javadoc.io/doc/org.apache.pdfbox/pdfbox/ redirects to https://javadoc.io/doc/org.apache.pdfbox/pdfbox/3.0.0-alpha3/index.html
Perhaps https://javadoc.io/doc/org.apache.pdfbox/pdfbox/2.x could redirect to the latest of the 2.x major version, currently https://javadoc.io/doc/org.apache.pdfbox/pdfbox/2.0.26/index.html
This would be useful for projects (including pdfbox) which maintain several major versions simultaneously.