Repository navigation
docs: Improve readability of generated reference pages - #235
Open
Anthony Martin (anthony-c-martin) wants to merge 2 commits into
Open
Anthony Martin (anthony-c-martin) wants to merge 2 commits into
Anthony Martin (anthony-c-martin) wants to merge 2 commits into
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
storageAccountspage documents2026-09-01but its samples use2021-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 version2026-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
'A'<br />'B'<br />'C'→'A', 'B', 'C'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