Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

chore: Fix GH Pages Docs #15

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,22 @@ jobs:
with:
node-version: "18"
cache: "npm"

# Install dependencies in parent directory first
- run: npm install

# Build cdp-agentkit-core docs
- name: Build AgentKit Core docs
- name: Install and Build Docs
run: |
cd cdp-agentkit-core
npm install
npm i
npm run build
npm run docs
cd ..

# Move cdp-agentkit-core docs
- name: Build AgentKit Core docs
run: |
mkdir -p docs/cdp-agentkit-core
cp -r cdp-agentkit-core/docs/* docs/cdp-agentkit-core/

# Build cdp-langchain docs
# Move cdp-langchain docs
- name: Build LangChain docs
run: |
cd cdp-langchain
npm install
npm run docs
cd ..
mkdir -p docs/cdp-langchain
cp -r cdp-langchain/docs/* docs/cdp-langchain/

Expand All @@ -42,4 +37,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
keep_files: false
keep_files: false
110 changes: 55 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cdp-agentkit-core",
"cdp-langchain"
],
"packageManager": "[email protected]",
"scripts": {
"build": "turbo run build",
"test": "turbo run test",
Expand Down Expand Up @@ -44,7 +45,7 @@
"jest": "^29.7.0",
"prettier": "^3.2.5",
"ts-jest": "^29.2.5",
"turbo": "^1.12.4",
"turbo": "^2.3.3",
"typedoc": "^0.27.2",
"typescript": "^5.4.5"
},
Expand Down
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [".env"],
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
Expand Down
Loading