Skip to content

Commit 966122e

Browse files
Merge pull request #111 from sine-fdn/martin/rust-docs
feat: build and serve rustdocs at the iLEAP GH Website
2 parents c8e6677 + 14c85e2 commit 966122e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ AZURE_STORAGE_ACCOUNT := ghpreview
66
AZURE_STORAGE_CONTAINER := preview
77

88

9-
build: specs/index.html specs/faq.html
9+
build: specs/index.html specs/faq.html gen/target/doc/ileap_extension/index.html
1010
mkdir -p ${RELEASE_DIR}
1111
cp -r $^ specs/diagrams ${RELEASE_DIR}/
1212
cp -r TR ${RELEASE_DIR}/
13+
mkdir -p ${RELEASE_DIR}/rustdocs
14+
cp -r gen/target/doc/ileap_extension/ ${RELEASE_DIR}/rustdocs/
1315

1416
specs/index.html: specs/index.bs ${DIAGRAMS}
1517
bikeshed spec $< $@
@@ -29,6 +31,10 @@ clean:
2931
${MMDC}:
3032
npm install @mermaid-js/mermaid-cli
3133

34+
gen/target/doc/ileap_extension/index.html:
35+
cd gen && cargo doc --no-deps --document-private-items --all-features --open
36+
37+
.PHONY: gen/target/doc/ileap_extension/index.html
3238

3339
azure-upload-preview: build
3440
az storage blob upload-batch \

0 commit comments

Comments
 (0)