docs: fix generated rustdoc links#575
Conversation
Byron
left a comment
There was a problem hiding this comment.
Thanks a lot.
I validated some of these newly generated links and they work, whereas the old ones don't.
Why it works a little bit puzzling to me still, and I'd like to see lib.rs regenerated as well as ${lib.docs(...) is called from there as well.
|
Addressed the requested What changed:
Validation:
|
Byron
left a comment
There was a problem hiding this comment.
Thanks a lot!
I still don't really understand how this works. To my mind that change should duplicate a line but apparently it doesn't. I also don't want to spend more time on it (and validate it locally), so let's just merge - in the worst case links in markdown files are more broken or docs don't build, something that CI might actually be doing as well.
Closes #297.
Summary
api::Typeto current docs.rs paths likeapi/struct.Type.htmlgoogle-apis-common/latestdocumentationgen/sheets4/README.mdso the reported Sheets API links resolve nowVerification
git diff --checkPYTHONPATH=src uv run --with mako --with inflect python - <<'PY' ... Template(filename='src/generator/templates/api/lib/lib.mako') ... PYgen/sheets4/README.md; all updated google-sheets4/google-apis-common links returned HTTP 200Note: an existing
yup-oauth2/*/trait.AuthenticatorDelegate.htmllink still 404s because current yup-oauth2 no longer exposes that trait; this PR stays focused on the generated Rustdoc links reported for the Sheets API README.