Skip to content

Commit 96c6a0c

Browse files
committed
chore: move snippets/guides to snippets
1 parent 8a59c83 commit 96c6a0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/ci/codegen/pushToAlgoliaDoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function pushToAlgoliaDoc(): Promise<void> {
5151
await run(`cp ${toAbsolutePath('specs/major-breaking-changes-rename.json')} ${pathToSpecs}`);
5252
await run(`cp ${toAbsolutePath('specs/bundled/*.doc.yml')} ${pathToSpecs}`);
5353
await run(`cp ${toAbsolutePath('config/clients.config.json')} ${pathToSpecs}`);
54-
await run(`cp ${toAbsolutePath('snippets/guides/*.json')} ${pathToSpecs}`);
54+
await run(`cp ${toAbsolutePath('guides/*.json')} ${pathToSpecs}`);
5555
// add block extension ban words like `analytics` so we use a different file name just so the doc dans render it
5656
await run(`mv ${pathToSpecs}/analytics.doc.yml ${pathToSpecs}/searchstats.doc.yml`);
5757

scripts/specs/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function transformBundle({
6464

6565
if (docs) {
6666
const snippets = transformCodeSamplesToGuideMethods(JSON.parse(JSON.stringify(snippetSamples)));
67-
await fsp.writeFile(toAbsolutePath(`snippets/guides/${clientName}-snippets.json`), snippets);
67+
await fsp.writeFile(toAbsolutePath(`guides/${clientName}-snippets.json`), snippets);
6868
}
6969

7070
for (const [pathKey, pathMethods] of Object.entries(bundledSpec.paths)) {

0 commit comments

Comments
 (0)