Skip to content

Commit 59f740d

Browse files
committed
Add Rust API docs
1 parent 675a372 commit 59f740d

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

Makefile

+15-4
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,34 @@ define runsile =
4343
endef
4444

4545
.PHONY: static
46-
static: examples lua-api-docs
46+
static: examples lua-api-docs rust-api-docs
4747

4848
DOCSBRANCH = master
49+
4950
.PHONY: lua-api-docs
5051
lua-api-docs: static/lua-api/index.html
5152

5253
static/lua-api/index.html: sile-sources-$(DOCSBRANCH)
5354
pushd $<
54-
touch aminclude.am
55-
nix develop --phase autoreconf
56-
nix develop --configure
5755
nix develop --command bash -c "make lua-api-docs"
5856
popd
5957
rsync -av $</lua-api-docs/ $(@D)/
6058

59+
.PHONY: rust-api-docs
60+
rust-api-docs: static/rust-api/sile/index.html
61+
62+
static/rust-api/sile/index.html: sile-sources-$(DOCSBRANCH)
63+
pushd $<
64+
nix develop --command bash -c "make rust-api-docs"
65+
popd
66+
rsync -av $</rust-api-docs/doc/ static/rust-api/
67+
6168
sile-sources-$(DOCSBRANCH):
6269
git clone -b $(DOCSBRANCH) --depth 1 --recurse-submodules https://github.com/sile-typesetter/sile $@
70+
pushd $@
71+
touch aminclude.am
72+
nix develop --phase autoreconf
73+
nix develop --configure
6374

6475
.PHONY: examples
6576
examples: $(EXAMPLEPDFS) $(DEVELEXAMPLEPDFS) $(EXAMPLEPNGS) $(EXAMPLETHBS)

templates/partials/menu.html

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</li>
1010
<li> <a href="{{ get_url(path="/manual/sile-0.15.3.pdf") }}">Manual (PDF)</a></li>
1111
<li> <a href="{{ get_url(path="/lua-api/") }}">Lua API</a></li>
12+
<li> <a href="{{ get_url(path="/rust-api/sile/") }}">Rust API</a></li>
1213
<li> <a href="{{ get_url(path="@/sil-grammar/index.md") }}">SIL Grammar</a></li>
1314
<li> <a href="https://github.com/sile-typesetter/sile/releases"><strong>Download</strong></a></li>
1415
</ul>

0 commit comments

Comments
 (0)