-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 792 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Makefile for MkDocs project management
.PHONY: all serve build deploy clean help
# Default target executed when no arguments are given to make.
all: help
# Serve the site on a local server
serve:
@echo "Starting local server for MkDocs..."
@poetry run mkdocs serve
# Build the static site into the 'site' directory
build:
@echo "Building static site..."
@poetry run mkdocs build
# Clean up the built site
clean:
@echo "Cleaning up site directory..."
rm -rf site
# Display help for targets
help:
@echo "Makefile commands:"
@echo " make serve - Serve the site locally"
@echo " make build - Build the static site"
@echo " make deploy - Deploy the site to GitHub Pages"
@echo " make clean - Remove the site directory"
@echo " make help - Display this help message"