Docs preview local: path-prefix build#3201
Conversation
docs-builder emits root-relative URLs by default; set --path-prefix to match preview S3 layout so `/ _static/` and links resolve under `/elastic/docs-builder/tree/...` on docs-v3-preview. Made-with: Cursor
Adds a handbook index entry so merges include a docs-path change alongside the preview workflow update, triggering Docs preview local on main. Made-with: Cursor
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe GitHub Actions workflow for local documentation builds has been updated to pass a computed 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Passes
PATH_PREFIXfrom Generate env.PATH_PREFIX intodotnet run … docs-builder … --strictvia--path-prefix "${PATH_PREFIX}", so emitted HTML/static URLs match where we sync in S3 (same prefix).Problem
Without this, previews under
https://docs-v3-preview.elastic.dev/elastic/docs-builder/tree/...request/_static/...at the bucket root (404), so the page renders unstyled.Test plan
main./_static/...requests are under/elastic/docs-builder/tree/main/_static/...(200).Made with Cursor