Repository navigation
fix(engine-rest): fix broken docs links in generated REST API reference - #3971
Merged
Merged
Conversation
The OpenAPI spec generation used a base docs URL of https://docs.operaton.org/manual/${docsVersion}, a scheme the current docs site no longer serves. Every generated link built from docsUrl (close to 1,700 links across the whole REST API reference) 404ed. Point docsUrl at the current docs site base (https://docs.operaton.org/docs/documentation), matching the pattern already used correctly in distro/run/assembly/resources/production.yml. Also fixes one hardcoded /manual/develop/... link that bypassed docsUrl entirely. Fixes #3970 Co-Authored-By: Claude Sonnet 5 <[email protected]>
A few templates built links as \${docsUrl}/.../some-page.md#anchor
instead of \${docsUrl}/.../some-page/#anchor, leaking a literal .md
extension into the generated REST API reference that the live docs
site doesn't serve.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
Merged
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
https://docs.operaton.org/manual/{version}/..., a URL scheme the current docs site no longer serves — every link 404ed.docsUrlbase assignment inengine-rest/engine-rest-openapi/src/main/templates/main.ftl, used by ~1,700 generated links across the whole spec.docsUrlto point athttps://docs.operaton.org/docs/documentation, matching the pattern already used correctly indistro/run/assembly/resources/production.yml. Verified the resulting paths resolve on the live docs site (overview, authentication, error-handling anchor, user-guide pages, bpmn20, spin)./manual/develop/...link inpaths/process-instance/{id}/modification/post.ftlthat bypasseddocsUrlentirely, and updated matching examples in the module'sREADME.md.Note: per-tag
externalDocslinks inmain.ftl(e.g.${docsUrl}/reference/rest/authorization/) point to per-resource pages that don't exist on the current docs site regardless of base URL — called out as a known follow-up in the issue, not addressed here since it needs a separate decision on target pages (possibly inoperaton/documentation).Related to #3970
Test plan
engine-rest-openapi-generatorandengine-rest-openapimodulesopenapi.jsoncontains zerodocs.operaton.org/manualoccurrences and ~1,714 correctdocs.operaton.org/docs/documentationlinks