Skip to content

Commit

Permalink
Merge pull request #11 from axe-api/examples
Browse files Browse the repository at this point in the history
Examples
  • Loading branch information
ozziest authored Dec 24, 2023
2 parents 1e498cf + c36c1d1 commit 726f95d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- docs
- examples

jobs:
deploy:
Expand All @@ -19,7 +20,10 @@ jobs:
- run: cd docs && pwd && npm install --frozen-lockfile

- name: Build
run: cd docs && pwd && npm run docs:build
run: |
cd docs && pwd && npm run docs:build
cd ../examples && pwd && npm install && npm run build
mv dist ../docs/.vitepress/dist/demo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
1 change: 1 addition & 0 deletions docs/public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
validator.axe-api.com
7 changes: 4 additions & 3 deletions examples/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
base: "/examples",
plugins: [react()],
})
});

0 comments on commit 726f95d

Please sign in to comment.