Skip to content

Commit

Permalink
docs: basic api ref generator (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj authored Nov 20, 2024
1 parent 21c81be commit 4c370e1
Show file tree
Hide file tree
Showing 18 changed files with 582 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ last_recording.mp4

# auto-generated
/js/core/src/__codegen
/js/api-refs-js

!samples/chatbot/server/genkit-ai-vertexai-*.tgz
20 changes: 20 additions & 0 deletions js/genkit/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"entryPoints": [
"src/index.ts",
"src/registry.ts",
"src/tracing.ts",
"src/logging.ts",
"src/schema.ts",
"src/retriever.ts",
"src/reranker.ts",
"src/embedder.ts",
"src/evaluator.ts",
"src/model.ts",
"src/middleware.ts",
"src/extract.ts",
"src/testing.ts",
"src/tool.ts",
"src/plugin.ts",
"src/client/index.ts"
]
}
11 changes: 9 additions & 2 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@
"pack:ai": "cd ai && pnpm pack --pack-destination ../../dist",
"pack:genkit": "cd genkit && pnpm pack --pack-destination ../../dist",
"pack:plugins": "for i in plugins/*/; do cd $i && pnpm pack --pack-destination ../../../dist && cd ../..; done",
"test:all": "pnpm -r --workspace-concurrency 0 -F \"./(ai|core|plugins|genkit)/**\" test"
"test:all": "pnpm -r --workspace-concurrency 0 -F \"./(ai|core|plugins|genkit)/**\" test",
"gendocs": "pnpm build && pnpm typedoc",
"typedoc-html": "typedoc --options typedoc.json"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"only-allow": "^1.2.1",
"typescript": "^4.9.0"
"typescript": "^4.9.0",
"typedoc": "^0.26.11",
"typedoc-plugin-markdown": "^4.2.10",
"typedoc-plugin-zod": "^1.2.1",
"typedoc-material-theme": "^1.1.0",
"tsx": "^4.19.2"
},
"packageManager": "pnpm@9.13.2+sha256.ccce81bf7498c5f0f80e31749c1f8f03baba99d168f64590fc7e13fad3ea1938"
}
3 changes: 3 additions & 0 deletions js/plugins/checks/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
3 changes: 3 additions & 0 deletions js/plugins/chroma/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
3 changes: 3 additions & 0 deletions js/plugins/dev-local-vectorstore/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
3 changes: 3 additions & 0 deletions js/plugins/dotprompt/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
3 changes: 3 additions & 0 deletions js/plugins/evaluators/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
8 changes: 8 additions & 0 deletions js/plugins/firebase/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"entryPoints": [
"src/index.ts",
"src/functions.ts",
"src/auth.ts",
"src/user_egagement.ts"
]
}
3 changes: 3 additions & 0 deletions js/plugins/google-cloud/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
3 changes: 3 additions & 0 deletions js/plugins/googleai/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
3 changes: 3 additions & 0 deletions js/plugins/langchain/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
3 changes: 3 additions & 0 deletions js/plugins/ollama/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
3 changes: 3 additions & 0 deletions js/plugins/pinecone/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryPoints": ["src/index.ts"]
}
9 changes: 9 additions & 0 deletions js/plugins/vertexai/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entryPoints": [
"src/index.ts",
"src/modelgarden/index.ts",
"src/evaluation/index.ts",
"src/rerankers/index.ts",
"src/vectorsearch/index.ts"
]
}
Loading

0 comments on commit 4c370e1

Please sign in to comment.