forked from samber/lo
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.58 KB
/
doc.yml
File metadata and controls
64 lines (51 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Documentation
on:
pull_request:
paths:
- 'docs/**'
push:
paths:
- 'docs/**'
jobs:
build-doc:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
- name: Install dependencies
run: npm i
- name: Build Docusaurus project
run: npm run build
# validate-doc:
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: ./docs
# steps:
# - name: Checkout repository
# uses: actions/checkout@v5
# - name: Setup Node.js
# uses: actions/setup-node@v6
# - name: Install dependencies
# run: npm i
# - name: Run docs helpers checks
# run: |
# node docs/scripts/check-duplicates-in-category.js
# node docs/scripts/check-similar-exists.js
# node docs/scripts/check-filename-matches-frontmatter.js
# node docs/scripts/check-similar-keys-exist-in-directory.js
# node docs/scripts/check-cross-references.js
# - name: Sync function signatures
# run: npm run sync:function-signatures
# - name: Commit and push changes
# uses: stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: 'docs: sync function signatures from source'
# commit_user_name: github-actions[bot]
# commit_user_email: github-actions[bot]@users.noreply.github.com
# file_pattern: docs/data/*.md