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

XDoc conversion from Javadoc do not relativize links and break previous document version #14875

Open
rnveach opened this issue May 14, 2024 · 5 comments

Comments

@rnveach
Copy link
Member

rnveach commented May 14, 2024

As seen in https://checkstyle.sourceforge.io/version/10.15.0/checks/coding/declarationorder.html#DeclarationOrder

Code Conventions for the Java Programming Language

Link generated is https://checkstyle.org/styleguides/sun-code-conventions-19990420/CodeConventions.doc2.html#a1852 and breaks out of the version documentation. Link's generated source from the macro is at

<a href="https://checkstyle.org/styleguides/sun-code-conventions-19990420/CodeConventions.doc2.html#a1852">
.

We should be kept in the specific version as much as possible.

This link comes from

* <a href="https://checkstyle.org/styleguides/sun-code-conventions-19990420/CodeConventions.doc2.html#a1852">
.

Javadoc should stay absolute, but conversion to xdoc should make it relative. It looks like ~12 pages do this in total.

@romani
Copy link
Member

romani commented May 16, 2024

Please share image or some more details , I don't understand issue.

@rnveach
Copy link
Member Author

rnveach commented May 16, 2024

There is no image.

Our xdoc's links need to be relative so we don't break out of version documentation. I pasted the link to one example in the first post and showed the text of the link. It is not relative, and will take user out of version documentation.

It is the same as #14876 except these links are connected to our templates.

Edit: Our doxia macros have no connection here. I thought there was. We should still look into our javadoc and xdoc synchronizer test and maybe somehow ensure xdoc's links are always relative.

@romani
Copy link
Member

romani commented May 16, 2024

will take user out of version documentation.

Do you mean that link should point to the same domain checkstyle.sourceforge.io ?

@rnveach
Copy link
Member Author

rnveach commented May 16, 2024

No, it shouldn't point to any domain. A specific domain would be an absolute link, not a relative one.

https://kb.blackbaud.com/knowledgebase/Article/67574

@romani
Copy link
Member

romani commented May 16, 2024

Absolute link is defined in template

<a href="https://checkstyle.org/styleguides/sun-code-conventions-19990420/CodeConventions.doc2.html#a1852">

If we fix it to be relative, problem might be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants