Skip to content

prebuilt: docs site tools run as dx subcommands and dx docs calls them in-process (part of #13154) #13769

Closed

Description

@TrapsterDK

Part of #13154.

Where

  • tools/docs/site/{build,aggregate,check}: the site_build, site_aggregate and site_check binaries. Each already has a dx_site_* lib.
  • tools/docs/site/site.bzl:130-146 (_check run through run_shell), :174-183 (_aggregate, _check), :215-236 (docs_scope_tools public aggregate / site_build attrs).
  • tools/docs/site/render.bzl:4,150,197 (mdbook_site public site_build attr).
  • cli/cli/src/exec/docs_index.rs:94-96: dx docs reads aggregate and site_build paths from the dx_docs_tools manifest and runs them. Tests are at cli/cli/src/exec/docs.rs:493-516.

Fix

  • dx docs calls dx_site_aggregate and dx_site_build in-process, so the manifest names only mdbook. Update docs_index.rs and its tests.
  • The rules run dx site_build|site_aggregate|site_check from @dx_prebuilt//:dx, with the subcommand as the first argument. Turn the site_build and aggregate attrs into private _dx attrs. If either attr is part of the documented public API, keep it and add the subcommand only when it is unset.
  • Delete the three rust_binary targets, their main.rs files and the [[bin]] entries, then repin cargo-bazel-lock.json.
  • Add an analysis test that DxMdBookSite and DxDocsCheck run dx with the right subcommand.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

Activity

  1. added
    enhancement
    P2
    model:opus
    on Nov 19, 2026
  2. added 2 commits that reference this issue on Nov 19, 2026
    8b4f944
    ebf294d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementmodel:opus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions