Skip to content

docs: Improve readability of generated reference pages - #235

Open
Anthony Martin (anthony-c-martin) wants to merge 2 commits into
mainfrom
agents/improve-docs-readability-suggestions
Open

Anthony Martin (anthony-c-martin) wants to merge 2 commits into
mainfrom
agents/improve-docs-readability-suggestions

Conversation

@anthony-c-martin

@anthony-c-martin Anthony Martin (anthony-c-martin) commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Improves readability and usefulness of the generated pages at https://learn.microsoft.com/azure/templates/, based on a review of live pages (storageAccounts, vaults/secrets, web/sites, roleAssignments).

Changes

Sample API version note
Curated Bicep/ARM/Terraform samples often target an older API version than the page they appear on (e.g. the latest storageAccounts page documents 2026-09-01 but its samples use 2021-09-01). A note is now emitted above the sample when versions differ:

Note

This sample uses API version 2021-09-01, but this page documents API version 2026-09-01. Some properties might differ between versions.

The version is detected from 'Type@ver' (Bicep), "Type@ver" (Terraform), or adjacent "type"/"apiVersion" keys (ARM). No note is shown if versions match or the type can't be found. The three duplicated sample-section methods were consolidated into one.

Required column in property tables
Previously (required) was appended to the Value cell, which for enums landed on the last value (e.g. 'StorageV2' (required)) and for strings after the constraints block. Tables are now | Name | Required | Description | Value |, with required properties listed first.

Compact enums & constraints

  • Enums: 'A'<br />'B'<br />'C' → 'A', 'B', 'C'
  • Constraints: string <br /><br />Constraints:<br />Min length = 3<br />Max length = 24<br />Pattern = ... → string<br />Constraints: length 3 to 24; pattern ...

Sample description fixes
Fixed 22 garbled descriptions in settings/remarks/*/remarks.json, e.g. "A basic example of deploying Assigns a given Principal…" → "A basic example of assigning a given Principal…".

Code-formatted types
Types, enum values and literal values in the Value column are wrapped in backticks (e.g. `string`, `'Hot'`, [`Encryption`](#encryption)). Array types now render as `string[]` followed by constraints, fixing a previous quirk where [] was appended after the constraints text.

Notes for reviewers

  • Baseline diffs are large mainly due to required-first property ordering.
  • The description fixes are in checked-in sample data; if the upstream sample generator is re-run with the same phrasing, they may regress.

- Add a note when a code sample uses a different API version than the page
- Add a Required column to property tables and list required properties first
- Render enum values inline and constraints compactly
- Fix garbled "A basic example of deploying <Verb>..." sample descriptions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Wrap types, enum values and literal values in backticks in property
tables. Object type links use code-formatted link text, and array
suffixes now come before constraints rather than after them.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant