Skip to content

Commit fa11914

Browse files
committed
build: replace Hugo targets with MyST in Makefile
- html: hugo → myst build --html (output now in _build/html/) - html-all: copy _build/html/ to public/ then build external content - serve: hugo server → myst start - clean: also removes _build/
1 parent 1006073 commit fa11914

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

Makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,19 @@ cookie: cookie_ruby_deps cookie_web_prepare
2424

2525
external: cookie
2626

27-
html: ## Build learn site (without external content) in `./public`
27+
html: ## Build learn site in `./_build/html`
2828
html: prepare
29-
hugo
29+
myst build --html
3030

31-
html-all: ## Buildlearn site (with external content) in `./public`
32-
html-all: html external
31+
html-all: ## Build learn site with external content in `./public`
32+
html-all: html
33+
cp -r _build/html/. public/
34+
$(MAKE) external
3335

34-
serve: ## Serve site, typically on http://localhost:1313
36+
serve: ## Serve site, typically on http://localhost:3000
3537
serve: prepare
36-
@hugo --printI18nWarnings server
38+
myst start
3739

3840
clean: ## Remove built files
3941
clean:
40-
rm -rf public
42+
rm -rf _build public

0 commit comments

Comments
 (0)