@stainless-api/docs 0.1.0-beta.95 → 0.1.0-beta.96

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @stainless-api/docs
2
2
 
3
+ ## 0.1.0-beta.96
4
+
5
+ ### Patch Changes
6
+
7
+ - 5c36876: type updates
8
+ - Updated dependencies [5c36876]
9
+ - @stainless-api/docs-ui@0.1.0-beta.73
10
+ - @stainless-api/docs-search@0.1.0-beta.26
11
+
3
12
  ## 0.1.0-beta.95
4
13
 
5
14
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/docs",
3
- "version": "0.1.0-beta.95",
3
+ "version": "0.1.0-beta.96",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -56,8 +56,8 @@
56
56
  "vite-plugin-prebundle-workers": "^0.2.0",
57
57
  "web-worker": "^1.5.0",
58
58
  "yaml": "^2.8.2",
59
- "@stainless-api/docs-search": "0.1.0-beta.25",
60
- "@stainless-api/docs-ui": "0.1.0-beta.72",
59
+ "@stainless-api/docs-search": "0.1.0-beta.26",
60
+ "@stainless-api/docs-ui": "0.1.0-beta.73",
61
61
  "@stainless-api/ui-primitives": "0.1.0-beta.47"
62
62
  },
63
63
  "devDependencies": {
@@ -73,7 +73,7 @@
73
73
  "vite": "^6.4.1",
74
74
  "zod": "^4.3.5",
75
75
  "@stainless/eslint-config": "0.1.0-beta.1",
76
- "@stainless/sdk-json": "^0.1.0-beta.5"
76
+ "@stainless/sdk-json": "^0.1.0-beta.6"
77
77
  },
78
78
  "scripts": {
79
79
  "vendor-deps": "tsx scripts/vendor_deps.ts",
@@ -57,11 +57,16 @@ export async function buildAlgoliaIndex({
57
57
  return;
58
58
  }
59
59
 
60
- const indexEntries = specComposite
61
- .listUniqueSpecs()
62
- .flatMap((spec) =>
63
- Array.from(generateIndex(spec.data.sdkJson, renderMarkdown, true, spec.data.languages)),
64
- );
60
+ const indexEntries = specComposite.listUniqueSpecs().flatMap((spec) =>
61
+ Array.from(
62
+ generateIndex(
63
+ spec.data.sdkJson,
64
+ renderMarkdown,
65
+ true,
66
+ spec.data.languages.filter((l) => l !== 'sql' && l !== 'openapi'),
67
+ ),
68
+ ),
69
+ );
65
70
 
66
71
  await buildIndex(appId, indexName, algoliaWriteKey, indexEntries, renderMarkdown);
67
72
  infoLog('Indexing complete.');
package/plugin/index.ts CHANGED
@@ -154,8 +154,6 @@ async function stlStarlightAstroIntegration(
154
154
  const projectDir = astroConfig.root.pathname;
155
155
  astroBase = astroConfig.base;
156
156
 
157
- logger.warn('Starting spec loader!!!');
158
-
159
157
  specLoader = await startSpecLoader(pluginConfig, logger, createCodegenDir());
160
158
 
161
159
  reportError = (message: string) => logger.error(message);
@@ -10,7 +10,7 @@ const spec = await getSDKJSONInSSR('http');
10
10
  const langTargets = api.languages
11
11
  .map((l) => l.language)
12
12
  .filter((l) => !EXCLUDE_LANGUAGES.includes(l))
13
- .filter((l) => l !== 'http' && l !== 'terraform');
13
+ .filter((l) => l !== 'http');
14
14
 
15
15
  const langsWithSpecs = await Promise.all(
16
16
  langTargets.map(async (language) => {
@@ -67,6 +67,7 @@ export class SpecComposite {
67
67
  if (this.languages.has(lang)) {
68
68
  throw new Error(`Language appears multiple times in the same API: ${lang}`);
69
69
  }
70
+ if (lang === 'openapi' || lang === 'sql') continue;
70
71
  this.languages.add(lang);
71
72
  this.specs[lang] = spec;
72
73
  }