Skip to content

Commit

Permalink
Generate docs on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Nov 3, 2023
1 parent 3b1b256 commit 15039cc
Show file tree
Hide file tree
Showing 4 changed files with 5,137 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
with:
node-version: '20'

- name: Install generate-docs dependencies
run: cd generate-docs; ./install-dependencies.sh

- name: Build generate-docs
run: cd generate-docs; ./build-docs.sh

- name: Install website dependencies
run: cd website; npm install

Expand Down
2 changes: 1 addition & 1 deletion generate-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ How to generate Reason API docs from OCaml

```bash
./install-dependencies.sh
./build-docs.sh
./build-docs.sh
```

Converted HTML is now in `output/`
4 changes: 2 additions & 2 deletions generate-docs/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ set -euo pipefail
npm install

if [[ ! -d "ocaml/" ]]; then
git clone https://github.com/ocaml/ocaml.git
git clone https://github.com/ocaml/ocaml.git --depth 1
fi
cd ocaml/

git checkout 4.02.3
git checkout 5.1
./configure
make clean
make world
Expand Down
Loading

0 comments on commit 15039cc

Please sign in to comment.