docs schema
This commit is contained in:
parent
7b866787d9
commit
3c61b6e495
2 changed files with 10 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@continuedev/config-types",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
|||
|
|
@ -195,6 +195,14 @@ export const devDataSchema = z.object({
|
|||
});
|
||||
export type DevData = z.infer<typeof devDataSchema>;
|
||||
|
||||
export const siteIndexingConfigSchema = z.object({
|
||||
startUrl: z.string(),
|
||||
rootUrl: z.string(),
|
||||
title: z.string(),
|
||||
maxDepth: z.string().optional(),
|
||||
faviconUrl: z.string().optional(),
|
||||
});
|
||||
|
||||
export const configJsonSchema = z.object({
|
||||
models: z.array(modelDescriptionSchema),
|
||||
tabAutocompleteModel: modelDescriptionSchema.optional(),
|
||||
|
|
@ -212,5 +220,6 @@ export const configJsonSchema = z.object({
|
|||
disableIndexing: z.boolean().optional(),
|
||||
tabAutocompleteOptions: tabAutocompleteOptionsSchema.optional(),
|
||||
ui: uiOptionsSchema.optional(),
|
||||
docs: z.array(siteIndexingConfigSchema).optional(),
|
||||
});
|
||||
export type ConfigJson = z.infer<typeof configJsonSchema>;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue