forked from evergreen-library-system/Evergreen
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 980 Bytes
/
docs.yml
File metadata and controls
37 lines (37 loc) · 980 Bytes
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
name: Build Docs
on:
push:
paths:
- 'docs/**'
pull_request:
paths:
- 'docs/**'
jobs:
build_docs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate Docs Package
run: |
cd docs
sed -i 's/branches.*/branches: [HEAD]/' site.yml
perl generate_docs.pl --base-url http://example.com
- uses: actions/upload-artifact@v4
with:
name: built-docs
path: docs/output
retention-days: 2
check_docs_styles:
name: Check docs styles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install asciidoctor
run: sudo apt-get install -y asciidoctor
- name: Install vale
run: pip install vale
- name: Download and install vale rules
run: cd docs && vale sync
- name: Check documentation against DIG style guide
run: cd docs && vale modules