File tree Expand file tree Collapse file tree 2 files changed +23
-20
lines changed Expand file tree Collapse file tree 2 files changed +23
-20
lines changed Original file line number Diff line number Diff line change @@ -217,3 +217,26 @@ release: SOURCE_GIT_TAG=$(RELEASE_PRE)-$(TIMESTAMP)
217
217
release :
218
218
./scripts/release.sh --token $(TOKEN ) --version $(SOURCE_GIT_TAG )
219
219
.PHONY : release
220
+
221
+ # ##############################
222
+ # docs targets #
223
+ # ##############################
224
+
225
+ JEKYLL_VERSION := 3.8
226
+ vendor/bundle :
227
+ mkdir -p vendor/bundle
228
+
229
+ docs-build : vendor/bundle
230
+ $(CTR_CMD ) run --rm --volume=" $( PROJECT_DIR) :$( PROJECT_DIR) " -w $(PROJECT_DIR ) /docs -e JEKYLL_ROOTLESS=true --volume=" $( PROJECT_DIR) /docs/vendor/bundle:/usr/local/bundle" \
231
+ -it docker.io/jekyll/jekyll :$(JEKYLL_VERSION ) jekyll build
232
+
233
+ .PHONY : docs-build
234
+
235
+ docs-serve : vendor/bundle
236
+ @echo " "
237
+ @echo -e " \033[1;37m open http://[::1]:4000 when the server is ready \033[0m"
238
+ @echo " "
239
+ $(CTR_CMD ) run --rm --volume=" $( PROJECT_DIR) :$( PROJECT_DIR) " -w $(PROJECT_DIR ) /docs -e JEKYLL_ROOTLESS=true --volume=" $( PROJECT_DIR) /docs/vendor/bundle:/usr/local/bundle" \
240
+ --publish [::1]:4000:4000 docker.io/jekyll/jekyll:$(JEKYLL_VERSION ) jekyll serve
241
+
242
+ .PHONY : docs-serve
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments