Skip to content

Commit 539a7a5

Browse files
committed
Set up helper to fetch SDK artifacts from Github
1 parent 8b5454d commit 539a7a5

File tree

6 files changed

+448
-62
lines changed

6 files changed

+448
-62
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { withGithubSdks } from "@speakeasy-api/docs-md";
2+
3+
const sdkConfigs = await withGithubSdks(
4+
[
5+
{
6+
language: "typescript",
7+
owner: "gleanwork",
8+
repo: "api-client-typescript",
9+
version: "v0.11.2",
10+
tryItNow: {
11+
outDir: "./public/glean-try-it-now",
12+
urlPrefix: "/glean-try-it-now",
13+
},
14+
},
15+
{
16+
language: "curl",
17+
},
18+
],
19+
process.env.GITHUB_TOKEN
20+
);
21+
22+
export default {
23+
spec: "../specs/glean.yaml",
24+
output: {
25+
pageOutDir: "./docs/glean/api",
26+
embedOutDir: "./src/components/glean-embeds",
27+
framework: "docusaurus",
28+
},
29+
display: {
30+
maxNestingLevel: 2,
31+
},
32+
...sdkConfigs,
33+
};

0 commit comments

Comments
 (0)