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
{{ message }}
Repository navigation
prebuilt: docs site tools run as dx subcommands and dx docs calls them in-process (part of #13154) #13769
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.
Activity
docs: extractors and site tools run as dx subcommands; dx docs render…
docs: extractors and site tools run as dx subcommands; dx docs render…