@stainless-api/docs 0.1.0-beta.117 → 0.1.0-beta.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/eslint-suppressions.json +68 -0
- package/package.json +20 -15
- package/plugin/components/SnippetCode.tsx +1 -1
- package/plugin/components/search/SearchIsland.tsx +5 -0
- package/plugin/globalJs/ai-dropdown-options.ts +7 -2
- package/plugin/globalJs/code-snippets.ts +5 -5
- package/plugin/globalJs/copy.ts +29 -19
- package/plugin/globalJs/navigation.ts +4 -2
- package/plugin/index.ts +7 -7
- package/plugin/react/Routing.tsx +2 -2
- package/plugin/replaceSidebarPlaceholderMiddleware.ts +1 -1
- package/plugin/routes/Overview.astro +1 -1
- package/plugin/specs/index.ts +12 -7
- package/plugin/specs/inputResolver.ts +4 -2
- package/plugin/vendor/preview.worker.docs.js +7069 -6869
- package/stl-docs/index.ts +2 -2
- package/stl-docs/tabsMiddleware.ts +1 -1
- /package/stl-docs/components/{content-panel/ContentPanel.astro → ContentPanel.astro} +0 -0
package/stl-docs/index.ts
CHANGED
|
@@ -61,7 +61,7 @@ function stainlessDocsStarlightIntegration(config: NormalizedStainlessDocsConfig
|
|
|
61
61
|
ThemeSelect: resolveSrcFile(COMPONENTS_FOLDER, './ThemeSelect.astro'),
|
|
62
62
|
|
|
63
63
|
Sidebar: resolveSrcFile(COMPONENTS_FOLDER, './sidebars/BaseSidebar.astro'),
|
|
64
|
-
ContentPanel: resolveSrcFile(COMPONENTS_FOLDER, './
|
|
64
|
+
ContentPanel: resolveSrcFile(COMPONENTS_FOLDER, './ContentPanel.astro'),
|
|
65
65
|
PageTitle: resolveSrcFile(COMPONENTS_FOLDER, './PageTitle.astro'),
|
|
66
66
|
PageSidebar: resolveSrcFile(COMPONENTS_FOLDER, './PageSidebar.astro'),
|
|
67
67
|
TableOfContents: resolveSrcFile(COMPONENTS_FOLDER, './TableOfContents.astro'),
|
|
@@ -263,7 +263,7 @@ function sharedLoggerIntegration(): AstroIntegration {
|
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
export function stainlessDocs(config: StainlessDocsUserConfig):
|
|
266
|
+
export function stainlessDocs(config: StainlessDocsUserConfig): AstroIntegration[] {
|
|
267
267
|
const normalizedConfigResult = parseStlDocsConfig(config);
|
|
268
268
|
if (normalizedConfigResult.result === 'error') {
|
|
269
269
|
// TODO: would be good to use the astro logger somehow
|
|
@@ -102,7 +102,7 @@ export interface StarlightRouteWithStlDocs extends StarlightRouteData {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
export const onRequest = defineRouteMiddleware(
|
|
105
|
+
export const onRequest = defineRouteMiddleware((context) => {
|
|
106
106
|
// if using content collection schema, use: context.locals.starlightRoute.entry.data.stainlessStarlight
|
|
107
107
|
// this worked without collections but relied on hijacking starlightRoute: context.props.frontmatter.stainlessStarlight
|
|
108
108
|
|
|
File without changes
|