Skip to content

Bump core to latest main and migrate linter rule docs to docs field#4968

Merged
timotheeguerin merged 3 commits into
mainfrom
dependabot/submodules/core-bc95fa3
Jul 21, 2026
Merged

Bump core to latest main and migrate linter rule docs to docs field#4968
timotheeguerin merged 3 commits into
mainfrom
dependabot/submodules/core-bc95fa3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 20, 2026

Copy link
Copy Markdown
Contributor

Bumps the core submodule to latest main, which pulls in tspd's per-rule reference page generation (microsoft/typespec#11221). Left as-is, that would orphan Azure's rich hand-written rule pages by emitting barebones pages at a new location.

Instead, this migrates each rule to the tspd docs field and keeps the generated pages at their existing URLs (net-zero URL change).

Changes

Validation

  • typespec-azure-core, typespec-azure-resource-manager, typespec-client-generator-core tests pass
  • oxlint clean
  • pnpm install --frozen-lockfile passes
  • pnpm regen-docs clean (no drift)
  • init-templates e2e: scaffolding tests pass via the new TemplateSource path (the 2 validate tests that npm install an unpublished @azure-tools/typespec-autorest version fail only on registry resolution, unrelated to this change)

Bumps [core](https://github.com/microsoft/typespec) from `c6c1393` to `bc95fa3`.
- [Release notes](https://github.com/microsoft/typespec/releases)
- [Commits](microsoft/typespec@c6c1393...bc95fa3)

---
updated-dependencies:
- dependency-name: core
  dependency-version: bc95fa340fdeb713faf001a20935ae3465f0f6b1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

The core bump pulls in tspd's per-rule reference page generation. Rather
than let it orphan Azure's rich hand-written rule pages at a new location,
this migrates each rule to the tspd `docs` field (rich content now lives in
`packages/*/src/rules/*.md`) and passes `--rules-dir ../rules` so generated
pages stay at the existing `libraries/<lib>/rules/<name>` URLs (net-zero URL
change).

- core: bump submodule to latest main (includes merged tspd `--rules-dir`
  change, microsoft/typespec#11316)
- 86 rules: add `docs: fileRef.fromPackageRoot("src/rules/<name>.md")`
- 3 package.json regen-docs scripts: pass `--rules-dir ../rules`
- astro.config: 5 redirects for rules whose historical slug != rule name
- gitignore the generated `libraries/*/rules/` pages (regenerated by build:web)
- pnpm-lock: add @typespec/events / @typespec/sse workspace links (http-specs)
@microsoft-github-policy-service microsoft-github-policy-service Bot added int:azure-specs Run integration tests against azure-rest-api-specs eng lib:azure-core Issues for @azure-tools/typespec-azure-core library lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library lib:tcgc Issues for @azure-tools/typespec-client-generator-core library meta:website TypeSpec.io updates linter Issues related to linter rules labels Jul 21, 2026
@timotheeguerin timotheeguerin changed the title build(deps): bump core from c6c1393 to bc95fa3 Bump core to latest main and migrate linter rule docs to docs field Jul 21, 2026
The core bump replaces ScaffoldingConfig.baseUri with source?: TemplateSource
(microsoft/typespec#11303). Build a UriTemplateSource from the azure
scaffolding index and pass it as source (mirrors #4965).
@timotheeguerin
timotheeguerin enabled auto-merge July 21, 2026 01:24
@pkg-pr-new

pkg-pr-new Bot commented Jul 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-azure-core@4968
npm i https://pkg.pr.new/@azure-tools/typespec-azure-resource-manager@4968
npm i https://pkg.pr.new/@azure-tools/typespec-client-generator-core@4968

commit: 06a62b6

@timotheeguerin
timotheeguerin added this pull request to the merge queue Jul 21, 2026
Merged via the queue into main with commit af1d998 Jul 21, 2026
24 of 25 checks passed
@timotheeguerin
timotheeguerin deleted the dependabot/submodules/core-bc95fa3 branch July 21, 2026 02:02
chidozieononiwu pushed a commit to chidozieononiwu/typespec that referenced this pull request Jul 21, 2026
…icrosoft#11326)

## Problem

Since tspd generates one reference page per linter rule and diagnostic
from each definition's `docs` field, the generated pages checked into
the website content duplicate their source markdown:

- `website/.../libraries/http/rules/op-reference-container-route.md` ↔
`packages/http/src/rules/op-reference-container-route.md`
- `website/.../emitters/openapi3/reference/diagnostics/*.md` (6 files) ↔
`packages/openapi3/src/diagnostics/*.md`

Keeping both copies in git means every content edit has to be made (or
regenerated) in two places.

## Fix

Follow the same approach as
[Azure/typespec-azure#4968](Azure/typespec-azure#4968)
and the repo's existing `js-api` precedent (`**/docs/**/js-api/` is
already gitignored): stop tracking the generated pages and regenerate
them during the website build.

- `.gitignore` — ignore the generated pages:
  - `website/src/content/docs/docs/**/rules/`
  - `website/src/content/docs/docs/**/reference/diagnostics/`
- Untrack the 7 generated pages (their source markdown under
`packages/*/src/**` remains the single tracked copy).

The website build regenerates them: `website` build runs `build:web`,
which runs `regen-all-packages-docs` before `astro check`/`astro build`.

## Validation

- Deleted the generated pages from disk, ran `regen-docs` for http +
openapi3, and confirmed all 7 pages are reproduced at the same paths —
and git now treats them as ignored (no longer tracked, not shown as
untracked).
- `@typespec/http` (rules) and `@typespec/openapi3` (diagnostics) are
the only libraries in this repo that use the `docs` field, so the globs
only match generated content.
- `chronus verify` passes (no shipped package changes).

Co-authored-by: tadelesh <chenjieshi@microsoft.com>
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

eng int:azure-specs Run integration tests against azure-rest-api-specs lib:azure-core Issues for @azure-tools/typespec-azure-core library lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library lib:tcgc Issues for @azure-tools/typespec-client-generator-core library linter Issues related to linter rules meta:website TypeSpec.io updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant