Skip to content

Fix sidebar path resolution for Python SDK and infrahubctl docs#144

Closed
petercrocker wants to merge 1 commit intomainfrom
pmc-20260318-docs
Closed

Fix sidebar path resolution for Python SDK and infrahubctl docs#144
petercrocker wants to merge 1 commit intomainfrom
pmc-20260318-docs

Conversation

@petercrocker
Copy link
Copy Markdown
Contributor

Summary

  • Fix sidebars-infrahubctl.ts path from ../docs/infrahubctl to docs-python-sdk/infrahubctl
  • Fix sidebars-python-sdk.ts path from ../docs/python-sdk to docs-python-sdk/python-sdk

The latest SDK sync commit (a4a1a0a) replaced the static sidebars-infrahubctl.ts with a dynamic version that reads files from the filesystem, but used path conventions from the source repo that don't match this aggregation repo's directory structure. The same incorrect pattern existed in sidebars-python-sdk.ts. Both caused the documentation build to fail with ENOENT: no such file or directory.

Test plan

  • Verify npm run build in docs/ completes without errors
  • Confirm infrahubctl and Python SDK sidebar items render correctly

The dynamic sidebar files introduced in the latest SDK sync used incorrect
paths (../docs/infrahubctl and ../docs/python-sdk) that don't match the
aggregation repo's directory structure (docs-python-sdk/infrahubctl and
docs-python-sdk/python-sdk), causing the documentation build to fail.
@petercrocker petercrocker requested a review from a team as a code owner March 18, 2026 21:02
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying infrahub-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: dd06d6e
Status: ✅  Deploy successful!
Preview URL: https://ca376531.infrahub-docs.pages.dev
Branch Preview URL: https://pmc-20260318-docs.infrahub-docs.pages.dev

View logs

@petercrocker
Copy link
Copy Markdown
Contributor Author

Never mind, will be fixed in opsmill/infrahub-sdk-python#875

@BeArchiTek BeArchiTek deleted the pmc-20260318-docs branch April 2, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant