Skip to content

Commit

Permalink
Create readmeSnippets.ts for snippets in readme
Browse files Browse the repository at this point in the history
- It has the advantage of ts support => enforcing all and valid config keys are present
  • Loading branch information
Jiri Lojda authored and Jiri Lojda committed Mar 9, 2023
1 parent 815bc37 commit 074f1c0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/shared/constants/readmeSnippets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Config } from "../../ConfigContext";
import { InitRequestBody } from "../types/initRequestBody";

// Remember to update readme when you change this file.

export const exampleCustomElementConfig: Config = {
language: "{Kontent.ai language codename}",
projectId: "{Kontent.ai project ID}",
algoliaAppId: "{Algolia app id}",
algoliaSearchKey: "{Algolia search-only api key}",
algoliaIndexName: "{Algolia index name}",
slugCodename: "{Kontent.ai slug codename}",
};

export const exampleInitRequestBody: InitRequestBody = {
language: "{Kontent.ai language codename}",
projectId: "{Kontent.ai project ID}",
algoliaAppId: "{Algolia app id}",
algoliaIndexName: "{Algolia index name}",
slugCodename: "{Kontent.ai slug codename}",
};

0 comments on commit 074f1c0

Please sign in to comment.