Verified Commit 978e42f6 authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Feat: Makefile: Onion MkDocs vendoring target

parent 8fa67724
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@

ONION_MKDOCS_PATH = vendors/onion-mkdocs

# This is useful when developing locally and Onion MkDocs is not yet installed
vendoring:
	@test   -e $(ONION_MKDOCS_PATH) && git -C $(ONION_MKDOCS_PATH) pull || true
	@test ! -e $(ONION_MKDOCS_PATH) && git clone https://gitlab.torproject.org/tpo/web/onion-mkdocs.git $(ONION_MKDOCS_PATH) || true

docs: onion-mkdocs-build

#
@@ -28,4 +33,4 @@ docs: onion-mkdocs-build

# Include the Onion MkDocs Makefile
# See https://www.gnu.org/software/make/manual/html_node/Include.html
-include vendors/onion-mkdocs/Makefile.onion-mkdocs
-include $(ONION_MKDOCS_PATH)/Makefile.onion-mkdocs