Skip to content

Simplify Bicep JSONRPC doc generation contract - #20215

Open
Anthony Martin (anthony-c-martin) wants to merge 2 commits into
mainfrom
ant/docs_rpc
Open

Simplify Bicep JSONRPC doc generation contract#20215
Anthony Martin (anthony-c-martin) wants to merge 2 commits into
mainfrom
ant/docs_rpc

Conversation

@anthony-c-martin

@anthony-c-martin Anthony Martin (anthony-c-martin) commented Aug 21, 2026

Copy link
Copy Markdown
Member
Microsoft Reviewers: Open in CodeFlow

Replaces bicep/generateDocs and bicep/outputDocs with bicep/renderDocs and
bicep/getDocsModel, and marks both as experimental.

generateDocs was the only RPC method that wrote to disk. bicep/compile is the
RPC counterpart of bicep build and returns Contents rather than writing
main.json; renderDocs now follows that convention. The CLI merged docs output
into docs generate --stdout, so splitting two methods by output destination no
longer matched any command. getDocsModel returns the typed documentation model,
which previously required rendering Markdown and parsing it back.

getDocsModel resolves options from bicepconfig.json so usage-example discovery
and configured custom values match what renderDocs and the CLI produce.

Also corrects the client version gate from 0.46.0 to 0.47.0. Both 0.46.0 and
0.46.1 shipped before the docs feature merged, so the old gate let clients pass
the check and then fail with method not found.

Fixes BaselineHelper.GetRepoRoot to accept a .git file as a repo-root marker so
baseline tests run from a git worktree, where .git is a file rather than a
directory.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Test this change out locally with the following install scripts (Action run 32444580214)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 32444580214
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 32444580214"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 32444580214
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 32444580214"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants