-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 926 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (29 loc) · 926 Bytes
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
31
32
33
34
35
36
# ...existing code...
# Define the Sphinx documentation builder command
SPHINXBUILD = sphinx-build
SOURCEDIR = docs/source
BUILDDIR = docs/build
FLASKDIR = flask_app/static/docs # Adjust this path to match your Flask app's static directory
# Define the default target
.PHONY: help
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# Define the html target
.PHONY: html
html:
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# Define the clean target
.PHONY: clean
clean:
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# Define the github target
.PHONY: github
github: html
@echo "Deploying to GitHub Pages..."
@ghp-import -n -p -f $(BUILDDIR)/html
# Define the flask target
.PHONY: flask
flask: html
@echo "Copying documentation to Flask static directory..."
@cp -r $(BUILDDIR)/html/* $(FLASKDIR)
# ...existing code...