Skip to content

Commit

Permalink
docs: add example to docs website
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnowack committed Jul 17, 2023
1 parent 3bfd258 commit e0f151f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ jobs:
timeout-minutes: 5
continue-on-error: true
with:
path: node_modules
path: |
node_modules
example/node_modules
key: ${{ runner.OS }}-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-modules-
- name: install modules
run: npm install --no-audit --force --loglevel=error --no-update-notifier
run: |
npm install --no-audit --force --loglevel=error --no-update-notifier
cd example && npm install --no-audit --force --loglevel=error --no-update-notifier
- name: Build vitepress
run: npm run docs:build
- name: Upload artifact
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ dist
node_modules
docs/.vitepress/dist
docs/.vitepress/cache
docs/public/todo-example
.DS_Store
10 changes: 9 additions & 1 deletion example/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
output: 'export',
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
}

module.exports = nextConfig
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "rimraf dist && unbuild",
"type-check": "tsc --noEmit",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:build": "(cd example && npm run build) && cp -R example/out docs/public/todo-example && vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"repository": {
Expand Down

0 comments on commit e0f151f

Please sign in to comment.