Skip to content

Commit

Permalink
nav tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj committed Dec 16, 2024
1 parent 98022e5 commit ddafc9e
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 6 deletions.
18 changes: 17 additions & 1 deletion js/genkit/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/**
* @license
*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,6 +16,15 @@
* limitations under the License.
*/

/**
* Main genkit import.
*
* ```ts
* import { genkit } from 'genkit';
* ```
*
* @module /
*/
export {
BaseDataPointSchema,
Document,
Expand Down Expand Up @@ -134,4 +145,9 @@ export {
type __RequestWithAuth,
} from '@genkit-ai/core';
export { loadPromptFile } from '@genkit-ai/dotprompt';
export { Genkit, GenkitOptions, PromptMetadata, genkit } from './genkit.js';
export {
Genkit,
genkit,
type GenkitOptions,
type PromptMetadata,
} from './genkit.js';
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:all": "pnpm -r --workspace-concurrency 0 -F \"./(ai|core|plugins|genkit)/**\" test && pnpm test:esm",
"test:esm": "cd testapps/esm && pnpm test",
"gendocs": "pnpm build && pnpm typedoc",
"typedoc-html": "typedoc --options typedoc.json"
"typedoc-html": "typedoc --sortEntryPoints false --options typedoc.json"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
Expand Down
6 changes: 6 additions & 0 deletions js/plugins/firebase/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/**
* @license
*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,6 +16,10 @@
* limitations under the License.
*/

/**
* @module /
*/

import {
enableGoogleCloudTelemetry,
GcpTelemetryConfigOptions,
Expand Down
6 changes: 6 additions & 0 deletions js/plugins/vertexai/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/**
* @license
*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,6 +16,10 @@
* limitations under the License.
*/

/**
* @module /
*/

import { Genkit } from 'genkit';
import { GenkitPlugin, genkitPlugin } from 'genkit/plugin';
import { getDerivedParams } from './common/index.js';
Expand Down
16 changes: 12 additions & 4 deletions js/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"entryPoints": [
"genkit",
"plugins/vertexai",
"plugins/googleai",
"plugins/vertexai",
"plugins/firebase",
"plugins/google-cloud",
"plugins/checks",
"plugins/chroma",
"plugins/dev-local-vectorstore",
"plugins/evaluators",
"plugins/express",
"plugins/mcp",
"plugins/ollama",
"plugins/chroma",
"plugins/mcp",
"plugins/pinecone"
],
"name": "Genkit JS API reference",
Expand All @@ -21,5 +21,13 @@
"sort": ["kind", "instance-first", "alphabetical"],
"sortEntryPoints": true,
"readme": "index.typedoc.md",
"plugin": ["typedoc-plugin-zod"]
"plugin": ["typedoc-plugin-zod"],
"navigation": {
"includeCategories": false,
"includeGroups": false,
"includeFolders": false,
"compactFolders": false,
"excludeReferences": true
},
"categorizeByGroup": false
}

0 comments on commit ddafc9e

Please sign in to comment.