1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-14 17:13:50 +01:00
RIOT/doc/starlight/Makefile
AnnsAnn e82ada6358 doc/guide: Introduce a Guide Site
doc/guides: How to Doc

fix: add starlight to base makefile
2025-04-24 12:35:53 +02:00

23 lines
588 B
Makefile

RIOTBASE ?= $(shell git rev-parse --show-toplevel)
RIOTMAKE ?= $(RIOTBASE)/makefiles
RIOTTOOLS ?= $(RIOTBASE)/dist/tools
.PHONY: install
install:
@echo "Installing starlight..."
@npm install --prefix $(CURDIR) --prefer-offline
@echo "Starlight installed successfully."
.PHONY: build
build: install
@npm run build --prefix $(CURDIR)
@echo "RIOT documentation successfully generated at file://$(RIOTBASE)/doc/starlight/dist/index.html"
.PHONY: dev
dev: install
@echo "Starting starlight live server..."
@npm run dev --prefix $(CURDIR)
clean:
-@rm -rf node_modules .astro dist