-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Upstream-downstream process moves title from line 7-ish to line 1, breaking links #42036
Comments
You're right, there's something fishy. Having a closer look. |
The title ended up being added first, which was definitely not what we wanted. Fixes quarkusio#42036
#42039 will fix it. I'll merge when CI is green and backport it too. |
Excellent! Thank you! |
Sorry about that, not sure how I missed this and how it went unnoticed for so long... |
No worries. Thanks for fixing it. |
The insertion of the dynamically-generated ID only becomes obvious when one shadow-publishes the product guides and runs a tool to validate links between guides. |
The title ended up being added first, which was definitely not what we wanted. Fixes quarkusio#42036 (cherry picked from commit 6dc20b6)
The title ended up being added first, which was definitely not what we wanted. Fixes quarkusio#42036 (cherry picked from commit 6dc20b6)
The title ended up being added first, which was definitely not what we wanted. Fixes quarkusio#42036
The title ended up being added first, which was definitely not what we wanted. Fixes quarkusio#42036
The title ended up being added first, which was definitely not what we wanted. Fixes quarkusio#42036
Overview: In the upstream-downstream process, the document title is moved from approximately line 7 to line 1. This causes the downstream AsciiDoc tooling to dynamically generate an ID based on the title, which overrides the predefined
id=
attribute value. Consequently, links using the ID attribute value become broken.Explanation
For example, in the Quarkus repository:
After transformation and pipeline processing in the RHBQ repo:
In the RHBQ repo, because the title is now on the first line and not immediately preceded by the ID attribute, AsciiDoc generates a new ID from the title:
proactive-authentication-3
, replacing the originalsecurity-proactive-authentication
in the URL. For example: https://docs.redhat.com/en/documentation/red_hat_build_of_quarkus/3.8/html/security_architecture/proactive-authentication-3As a result, links that still reference the old ID attribute value (
security-proactive-authentication
) are broken. For instance, line 33 now points to: https://docs.redhat.com/en/documentation/red_hat_build_of_quarkus/3.8/html/security_architecture/security-proactive-authentication[Proactive authentication].Many links in the guides are therefore broken.
For additional background info, see https://gitlab.cee.redhat.com/quarkus-documentation/quarkus/-/merge_requests/1733
Implementation ideas
Can this be fixed by updating AssembleDownstreamDocumentation.java to preserve the title in its current location?
The text was updated successfully, but these errors were encountered: