Skip to content

Commit 5c29c9d

Browse files
committed
Generate docs on ci
1 parent 3b1b256 commit 5c29c9d

File tree

5 files changed

+5137
-3
lines changed

5 files changed

+5137
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
with:
1919
node-version: '20'
2020

21+
- name: Install generate-docs dependencies
22+
run: cd generate-docs; ./install-dependencies.sh
23+
24+
- name: Build generate-docs
25+
run: cd generate-docs; ./build-docs.sh
26+
2127
- name: Install website dependencies
2228
run: cd website; npm install
2329

generate-docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ How to generate Reason API docs from OCaml
22

33
```bash
44
./install-dependencies.sh
5-
./build-docs.sh
5+
./build-docs.sh
66
```
77

88
Converted HTML is now in `output/`

generate-docs/build-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ docs_path="../website/pages/api/"
99

1010
mkdir -p ./output/
1111
rm -f ./output/*.html
12-
cp ocaml/ocamldoc/stdlib_html/*.html ./output/
12+
cp ocaml/ocamldoc/stdlib/*.html ./output/
1313
echo ""
1414
echo "converting docs - this will take a minute"
1515
echo ""

generate-docs/install-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [[ ! -d "ocaml/" ]]; then
88
fi
99
cd ocaml/
1010

11-
git checkout 4.02.3
11+
git checkout 5.1
1212
./configure
1313
make clean
1414
make world

0 commit comments

Comments
 (0)