Auto-generate experimental warnings and usage docs for typekits from library metadata#9564
Auto-generate experimental warnings and usage docs for typekits from library metadata#9564
Conversation
…mentation Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
|
@copilot please pull the latest from the main branch and fix any issues with website build |
Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
This reverts commit f6c5749.
Done. I've successfully merged the latest main branch (commit aa2b623). The website build completes without errors, and all astro checks pass with 0 errors, 0 warnings, and 0 hints. The HTTP typekits documentation now includes:
The documentation is fully compatible with the latest main branch changes. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot This problem cannot be solved by editing a static documentation web page, because the reference documentation is automatically generated from the source code using |
|
@copilot, also you need to merge in the latest changes from main. You should do this whenever you make an update to the code in your branch. |
…umentation Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Done (commit 7b6e19e). I've modified tspd to automatically detect Changes made:
The documentation is now auto-generated from source code comments, so future updates will automatically reflect changes to the experimental status and don't require manual documentation edits. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot also you need to merge in the latest changes from main. You should do this whenever you make an update to the code in your branch. |
Done (commit 27e2db9). I've merged the latest changes from main branch into the PR branch. The merge completed successfully with 51 commits from main integrated. |
.chronus/changes/copilot-fix-http-typekits-documentation-2026-2-3-22-21-43.md
Show resolved
Hide resolved
| * import { $ } from "@typespec/compiler/typekit"; | ||
| * import "@typespec/http/experimental/typekit"; | ||
| * | ||
| * const [httpOperation] = getHttpOperation(program, operation); |
There was a problem hiding this comment.
shouldn't show the non typekit version no?
.chronus/changes/copilot-fix-http-typekits-documentation-2026-2-3-22-21-43.md
Outdated
Show resolved
Hide resolved
…ample Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Done (commit f454442). I've addressed all review comments:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
.chronus/changes/copilot-fix-http-typekits-documentation-2026-2-3-22-21-43.md
Outdated
Show resolved
Hide resolved
Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot pull the latest from the main branch, then make the following changes:
|
…anism Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Done (commit 5b5706c). I've made all the requested changes:
The HTTP typekits documentation now automatically shows the correct experimental import ( Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Enhances the tspd documentation generator to automatically detect experimental typekits and generate appropriate warnings and usage documentation. Usage information is auto-generated from library metadata without requiring custom tags or manual documentation.
Changes Made
tspd Enhancement
@experimentalJSDoc tags in typekit interfacesimport "@typespec/http/experimental/typekit";import "@typespec/compiler/typekit";Documentation Generation
@typespec/http/experimental/typekit@typespec/compiler/typekitImplementation Details
packages/tspd/src/ref-doc/typekit-docs.tsto detect@experimentaltags and pass package name to documentation generatorpackages/tspd/src/ref-doc/components/typekits-file.tsxto auto-generate usage instructions from package metadataBenefits
The solution addresses the original issue by providing clear import instructions and experimental warnings for HTTP typekits while ensuring the documentation system is maintainable and works automatically for all typekit libraries.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.