Skip to content

Commit 258df91

Browse files
authored
chore: keep guides for docs close to snippets (#3354)
1 parent 9ec65cf commit 258df91

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

scripts/ci/codegen/pushToAlgoliaDoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async function pushToAlgoliaDoc(): Promise<void> {
4848
await run(`cp ${toAbsolutePath('specs/bundled/README.md')} ${pathToSpecs}`);
4949
await run(`cp ${toAbsolutePath('specs/bundled/*.doc.yml')} ${pathToSpecs}`);
5050
await run(`cp ${toAbsolutePath('config/release.config.json')} ${pathToSpecs}`);
51-
await run(`cp ${toAbsolutePath('website/src/generated/*.json')} ${pathToSpecs}`);
51+
await run(`cp ${toAbsolutePath('snippets/guides/*.json')} ${pathToSpecs}`);
5252

5353
if ((await getNbGitDiff({ head: null, cwd: tempGitDir })) === 0) {
5454
console.log(`❎ Skipping push docs because there is no change.`);

scripts/specs/format.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ export async function transformBundle({
7575
toAbsolutePath(`website/src/generated/${clientName}-snippets.js`),
7676
`export const snippets = ${snippets}`,
7777
);
78-
await fsp.writeFile(
79-
toAbsolutePath(`website/src/generated/${clientName}-snippets.json`),
80-
snippets,
81-
);
78+
await fsp.writeFile(toAbsolutePath(`snippets/guides/${clientName}-snippets.json`), snippets);
8279
}
8380

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

snippets/guides/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)