Skip to content

Commit 4981faa

Browse files
authored
Adds base path for GitHub Pages publishing. (#48)
1 parent 66e991a commit 4981faa

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ vmlinux
2727

2828
# API docs for local preview only.
2929
_site/
30+
_serve/

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,19 @@ check-licenses:
129129

130130
.PHONY: serve-docs
131131
serve-docs:
132-
@echo 'to browse: open http://127.0.0.1:8000/documentation/'
133-
@python3 -m http.server --bind 127.0.0.1 --directory ./_site
132+
@echo 'to browse: open http://127.0.0.1:8000/containerization/documentation/'
133+
@rm -rf _serve
134+
@mkdir -p _serve
135+
@cp -a _site _serve/containerization
136+
@python3 -m http.server --bind 127.0.0.1 --directory ./_serve
134137

135138
.PHONY: docs
136139
docs: _site
137140

138141
_site:
139142
@echo Updating API documentation...
140143
rm -rf $@
141-
@scripts/make-docs.sh $@
144+
@scripts/make-docs.sh $@ containerization
142145

143146
.PHONY: cleancontent
144147
cleancontent:
@@ -150,5 +153,6 @@ clean:
150153
@echo Cleaning the build files...
151154
@rm -rf bin/
152155
@rm -rf _site/
156+
@rm -rf _serve/
153157
@$(SWIFT) package clean
154158
@"$(MAKE)" -C vminitd clean

0 commit comments

Comments
 (0)