Skip to content

Commit

Permalink
chore: Fix GH Pages Docs (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
John-peterson-coinbase authored Dec 4, 2024
1 parent 8e654dd commit 64d5372
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 71 deletions.
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": "npm@8.9.0",
"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

0 comments on commit 64d5372

Please sign in to comment.