Skip to content

fix: cut docs version nav from Edge so new pages aren't dropped#6349

Open
lucasgomide wants to merge 2 commits into
mainfrom
luzk/docs-freeze-from-edge
Open

fix: cut docs version nav from Edge so new pages aren't dropped#6349
lucasgomide wants to merge 2 commits into
mainfrom
luzk/docs-freeze-from-edge

Conversation

@lucasgomide

@lucasgomide lucasgomide commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

The docs release cut promotes Edge → Latest, but the navigation half of that
promotion read the wrong source. _copy_snapshot correctly copied every
docs/edge/<locale>/ file into docs/v<X.Y.Z>/, while _build_new_entry
registered the new version's docs.json nav by cloning the previous frozen
release
and rewriting path prefixes. Any page added to Edge since the last
release was therefore written to disk but never linked in the version
selector. This is why v1.15.0 shipped without the Datadog guide
(enterprise/guides/datadog) in all four locales, even though the files were
present in the snapshot.


Note

Low Risk
Changes are limited to docs release tooling and Mintlify navigation entries; no runtime product, auth, or data-path impact.

Overview
Fixes a docs release bug where freezing Edge into a versioned snapshot copied files correctly but built docs.json navigation from the previous frozen release instead of Edge. Pages added to Edge after the last release (e.g. the Datadog enterprise guide) landed in docs/v<X.Y.Z>/ but were missing from the version selector.

The freeze tooling now clones each new version’s nav from the Edge entry and rewrites paths from edge/<locale>/... to v<new>/<locale>/..., with pruning unchanged. A regression test covers a page present in Edge but absent from the prior release nav.

Docs config: registers enterprise/guides/datadog under v1.15.0 for en, pt-BR, ko, and ar so that guide is discoverable in those locales.

Reviewed by Cursor Bugbot for commit e15f5fe. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • New Features

    • Added the Datadog enterprise guide to the enterprise guides navigation across multiple locales, improving discoverability.
  • Bug Fixes

    • Improved documentation version generation so the latest navigation is cloned from current Edge content, ensuring newly released versions include the up-to-date guide pages.
  • Tests

    • Added a regression test to verify the latest/version navigation is sourced from Edge and that the referenced Datadog page is present in the new snapshot.

@corridor-security corridor-security Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary: This PR updates documentation version navigation generation to clone from the Edge entry and adds corresponding documentation navigation entries/tests. No exploitable security vulnerabilities were identified.

Risk: Low risk. The changes affect documentation metadata and internal release tooling, with no new public attack surface, authentication changes, authorization logic, or sensitive data handling.

@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2f764a40-2fd1-4632-843a-b2c746bab69f

📥 Commits

Reviewing files that changed from the base of the PR and between 0ff2316 and e15f5fe.

📒 Files selected for processing (3)
  • docs/docs.json
  • lib/devtools/src/crewai_devtools/docs_versioning.py
  • lib/devtools/tests/test_docs_versioning.py
✅ Files skipped from review due to trivial changes (1)
  • docs/docs.json
🚧 Files skipped from review as they are similar to previous changes (2)
  • lib/devtools/src/crewai_devtools/docs_versioning.py
  • lib/devtools/tests/test_docs_versioning.py

📝 Walkthrough

Walkthrough

The docs freeze flow now clones each locale’s Edge navigation for new versions, rewrites Edge-based page paths into the frozen version, and updates fixture data and tests for an Edge-only Datadog page.

Changes

Edge-based docs freeze

Layer / File(s) Summary
Edge entry lookup and path rewrite
lib/devtools/src/crewai_devtools/docs_versioning.py
Adds _edge_entry(versions) and changes _build_new_entry to clone Edge navigation while rewriting edge/<locale>/... paths into the new version and pruning missing pages.
Migration wiring to Edge
lib/devtools/src/crewai_devtools/docs_versioning.py
Updates _migrate_docs_json to source each locale from Edge, skip locale blocks without Edge, and insert the new default entry after Edge.
Datadog fixture and regression
lib/devtools/tests/test_docs_versioning.py, docs/docs.json
Adds edge/en/datadog.mdx, extends the Edge guides list, adds datadog entries to the v1.15.0 guide lists for en, pt-BR, ko, and ar, and adds a regression test for v1.15.0/en/datadog.

Suggested reviewers

  • gabemilani
  • joaomdmoura
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 55.56% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main fix: cloning docs version navigation from Edge to avoid dropping new pages.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch luzk/docs-freeze-from-edge

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mintlify

mintlify Bot commented Jun 26, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
crewai 🟢 Ready View Preview Jun 26, 2026, 9:50 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

The docs cut copied every Edge file into the new `docs/v<X.Y.Z>/`
snapshot but built that version's `docs.json` navigation by cloning the
previous frozen release and only rewriting path prefixes. Pages added to
Edge since the last release were therefore copied to disk yet never
linked in the version selector, which is why the v1.15.0 cut shipped
without the Datadog guide. `_build_new_entry` now clones the Edge nav
entry and rewrites `edge/<locale>/` to `v<new>/<locale>/`, so promoting
Edge to Latest carries every current page and nav restructuring.
The v1.15.0 freeze copied `enterprise/guides/datadog` into the snapshot
for every locale but never linked it in `docs.json`, because the cut
cloned the v1.14.7 nav instead of Edge. This backfills the missing nav
reference in the `en`, `pt-BR`, `ko`, and `ar` v1.15.0 blocks so the
already-shipped page is reachable from the version selector. Pairs with
the `_build_new_entry` fix that prevents future cuts from dropping pages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant