Skip to content

Commit c64df33

Browse files
committed
Set output.html.site-url
1 parent 67dd897 commit c64df33

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ assembled_dir := $(build_dir)/assembled
6565
assemble:
6666
$(MAKE) -C docker exported-rustdoc
6767
cd $(book_dir) && \
68+
SITE_URL=/seL4-rust-tutorial/ \
6869
RUSTDOC_PATH=rustdoc \
6970
nix-shell --run '$(MAKE) build'
7071
rm -rf $(assembled_dir)

book/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# SPDX-License-Identifier: BSD-2-Clause
55
#
66

7+
SITE_URL ?= /
8+
79
RUSTDOC_URL ?= file://$(abspath ../code/build/rustdoc)
810

911
ifneq ($(RUSTDOC_PATH),)
@@ -28,6 +30,7 @@ mdbook_env := \
2830
THIS_MDBOOK_RUSTDOC_LOCATION_KIND=$(rustdoc_location_kind) \
2931
THIS_MDBOOK_RUSTDOC_LOCATION_VALUE=$(rustdoc_location_value) \
3032
THIS_MDBOOK_MANUAL_URL=$(manual_url) \
33+
MDBOOK_OUTPUT__HTML__SITE_URL=$(SITE_URL) \
3134
PATH=preprocessor/target/debug:$$PATH
3235

3336
.PHONY: none

0 commit comments

Comments
 (0)