Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
push:
branches: [main]
paths:
- "./docs"
- "docs/**"
pull_request:
paths:
- "./docs"
- "docs/**"

jobs:
build:
Expand All @@ -22,7 +22,10 @@ jobs:
with:
node-version: 20
cache: yarn # or pnpm / npm
cache-dependency-path: docs/yarn.lock
- name: Install dependencies
run: yarn install # or pnpm install / npm ci
working-directory: docs
- name: Build with VitePress
run: yarn build # or pnpm build / npm build
working-directory: docs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
push:
branches: [main]
paths:
- "./docs"
- "docs/**"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -37,15 +37,18 @@ jobs:
with:
node-version: 20
cache: yarn # or pnpm / npm
cache-dependency-path: docs/yarn.lock
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: yarn install # or pnpm install / npm ci
working-directory: docs
- name: Build with VitePress
run: yarn build # or pnpm build / npm build
working-directory: docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.vitepress/dist
publish_dir: ./docs/.vitepress/dist
cname: ev.xyz
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- synchronize
- closed
paths:
- "./docs"
- "docs/**"

concurrency: preview-${{ github.ref }}

Expand All @@ -28,17 +28,20 @@ jobs:
with:
node-version: 20
cache: yarn
cache-dependency-path: docs/yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: docs

- name: Build with Base URL
run: BASE='/docs-preview/pr-${{ github.event.number }}/' yarn build
working-directory: docs

- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: .vitepress/dist
source-dir: docs/.vitepress/dist
deploy-repository: evstack/docs-preview
token: ${{ secrets.PREVIEW_DEPLOY }}
preview-branch: main
Expand Down
2 changes: 1 addition & 1 deletion docs/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This is a **VitePress-based documentation site** for Evolve. Key architectural e

### Content Organization

```
```txt
docs/
├── .vitepress/config.ts # Site configuration, navigation, theme
├── blog/ # Blog posts and announcements
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Deploy](https://github.com/evstack/ev-node/actions/workflows/deploy.yml/badge.svg)](https://github.com/evstack/docs/actions/workflows/deploy.yml)
[![Deploy](https://github.com/evstack/ev-node/actions/workflows/deploy.yml/badge.svg)](https://github.com/evstack/ev-node/actions/workflows/deploy.yml)

# Evolve Documentation Site

Expand Down
Loading