You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(docs): fix docs build for old branches and broken links
Several issues with the V2 docs pipeline building old release branches:
1. Always use griffe_builder.py and method_page_renderer.py from the
current branch instead of checking if they exist on the target branch.
The scripts were always executed from the current branch anyway, and
griffe does static analysis via --search-path (no imports needed).
This removes the json_builder.py fallback that caused
ModuleNotFoundError and the pip install -e workaround.
2. Restore Hugo shortcode templates (parameters-block, parameter) that
were deleted in the griffe pipeline commit. Old release branches have
hand-written method pages using these shortcodes without api_ref
frontmatter, so method_page_renderer skips them and Hugo needs the
templates to render them.
3. Fix python_ref_builder generating only one page for modules/classes
sharing a leaf name (e.g. declarative_model under data_source,
workspace, user, permission). The "if name not in links" guard
prevented page creation for all but the first. Now all modules and
classes always get their pages while the links dict keeps first-wins
for type-annotation resolution.
4. Use relative links (href="child_name/") for module child listings
and class method/property tables instead of the global links dict.
This fixes cross-links where e.g. load_from_disk in
CatalogDeclarativeDataSources pointed to workspace's version.
5. Temporarily disable version caching while stabilizing the pipeline.
JIRA: trivial
risk: nonprod
0 commit comments