@stainless-api/docs 0.1.0-beta.74 → 0.1.0-beta.75
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 +6 -0
- package/package.json +1 -1
- package/plugin/index.ts +8 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/plugin/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ import path from 'path';
|
|
|
27
27
|
import fs from 'fs';
|
|
28
28
|
import { getSharedLogger } from '../shared/getSharedLogger';
|
|
29
29
|
import { resolveSrcFile } from '../resolveSrcFile';
|
|
30
|
-
import { mkdir } from 'fs/promises';
|
|
30
|
+
import { mkdir, writeFile } from 'fs/promises';
|
|
31
31
|
import { fileURLToPath } from 'url';
|
|
32
32
|
import prebundleWorkers from 'vite-plugin-prebundle-workers';
|
|
33
33
|
|
|
@@ -124,6 +124,7 @@ async function stlStarlightAstroIntegration(
|
|
|
124
124
|
const resolvedId = `\0${virtualId}`;
|
|
125
125
|
let playgroundsBase: string | undefined;
|
|
126
126
|
let buildPlaygrounds;
|
|
127
|
+
let astroBase = '/';
|
|
127
128
|
|
|
128
129
|
const CMS_PORT = await getPort();
|
|
129
130
|
|
|
@@ -188,6 +189,7 @@ async function stlStarlightAstroIntegration(
|
|
|
188
189
|
}) => {
|
|
189
190
|
const logger = getSharedLogger({ fallback: localLogger });
|
|
190
191
|
const projectDir = astroConfig.root.pathname;
|
|
192
|
+
astroBase = astroConfig.base;
|
|
191
193
|
|
|
192
194
|
reportError = (message: string) => logger.error(message);
|
|
193
195
|
|
|
@@ -357,6 +359,11 @@ async function stlStarlightAstroIntegration(
|
|
|
357
359
|
}
|
|
358
360
|
collectedErrors = null;
|
|
359
361
|
}
|
|
362
|
+
|
|
363
|
+
const manifest = {
|
|
364
|
+
astroBase,
|
|
365
|
+
};
|
|
366
|
+
await writeFile(path.join(stainlessDir, 'stl-manifest.json'), JSON.stringify(manifest, null, 2));
|
|
360
367
|
},
|
|
361
368
|
},
|
|
362
369
|
};
|