Skip to content

Commit

Permalink
chore: fix doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Jun 2, 2024
1 parent cb4489d commit 1b01aed
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
node-version: 20
- uses: actions4git/setup-git@v1
- uses: moonrepo/setup-toolchain@v0
- run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: Build and publish document
run: moon run docs:publish
env:
Expand Down
49 changes: 33 additions & 16 deletions packages/docs/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,61 @@ dependsOn:
tasks:
dev:
command:
- nuxt
- dev
- nuxt
- dev
deps:
- ^:build
local: true
generate:
command:
- nuxt
- generate
- nuxt
- generate
deps:
- ^:build
inputs:
- content/**
- components/**
- layouts/**
- public/**
- app.config.ts
- app.vue
- nuxt.config.ts
- tokens.config.ts
check-200-html:
command:
- test
- -f
- .output/public/200.html
- test
- -f
- .output/public/200.html
deps:
- ~:generate
inputs:
- .output/public/200.html
platform: system
check-nuxt-dir:
command:
- test
- -d
- .output/public/_nuxt
- test
- -d
- .output/public/_nuxt
deps:
- ~:generate
inputs:
- .output/public/_nuxt
platform: system
generate-with-nojekyll:
command:
- touch
- .output/public/.nojekyll
- touch
- .output/public/.nojekyll
deps:
- ~:check-200-html
- ~:check-nuxt-dir
outputs:
- .output/public/.nojekyll
platform: system
publish:
command:
- gh-pages
- -d
- .output/public
- -t
- gh-pages
- -d
- .output/public
- -t
deps:
- ~:generate-with-nojekyll

0 comments on commit 1b01aed

Please sign in to comment.