mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 11:27:59 +00:00
The revive compiler documentation (#424)
This PR adds comprehensive project documentation in the form of an mdBook. --------- Signed-off-by: xermicus <cyrill@parity.io> Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com> Co-authored-by: LJ <81748770+elle-j@users.noreply.github.com> Co-authored-by: PG Herveou <pgherveou@gmail.com>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
name: Check docs up-to-date
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- 'book/**'
|
||||
- 'docs/**'
|
||||
- '.gitignore'
|
||||
- 'Makefile'
|
||||
- '.github/workflows/book.yml'
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
types: [opened, synchronize]
|
||||
paths:
|
||||
- 'book/**'
|
||||
- 'docs/**'
|
||||
- '.gitignore'
|
||||
- 'Makefile'
|
||||
- '.github/workflows/book.yml'
|
||||
|
||||
jobs:
|
||||
check-docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with: { fetch-depth: 0 }
|
||||
|
||||
- name: Install mdBook
|
||||
run: make test-book
|
||||
|
||||
- name: Build book to tmp
|
||||
run: mdbook build book -d docs-tmp
|
||||
|
||||
- name: Compare with committed docs
|
||||
run: |
|
||||
if ! diff -r docs-tmp docs 2>/dev/null; then
|
||||
echo "docs/ is not up-to-date. Run make test-book and commit the docs/ directory"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user