Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .chronus/changes/fix-http-linter-rule-doc-url-2026-7-21.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- "@typespec/http"
---

Keep the generated linter rule reference pages at their historical `libraries/http/rules/<name>` location so existing rule documentation URLs stay stable.
2 changes: 1 addition & 1 deletion packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
"lint": "oxlint . --deny-warnings",
"lint:fix": "oxlint . --fix",
"regen-docs": "tspd doc . --enable-experimental --typekits --llmstxt --output-dir ../../website/src/content/docs/docs/libraries/http/reference"
"regen-docs": "tspd doc . --enable-experimental --typekits --llmstxt --output-dir ../../website/src/content/docs/docs/libraries/http/reference --rules-dir ../rules"
},
"files": [
"lib/**/*.tsp",
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/current-sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const sidebar: SidebarItem[] = [
{
label: "📚 Libraries",
items: [
createLibraryReferenceStructure("libraries/http", "Http", false, [
createLibraryReferenceStructure("libraries/http", "Http", true, [
"libraries/http/cheat-sheet",
"libraries/http/authentication",
"libraries/http/operations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Available ruleSets:

## Rules

| Name | Description |
| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [`@typespec/http/op-reference-container-route`](./rules/op-reference-container-route.md) | Check for referenced (`op is`) operations which have a @route on one of their containers. |
| Name | Description |
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [`@typespec/http/op-reference-container-route`](../rules/op-reference-container-route.md) | Check for referenced (`op is`) operations which have a @route on one of their containers. |
Loading