Skip to content

Commit 042ad33

Browse files
committed
Align =
Format comments consistently and improve their description accuracy
1 parent e29c541 commit 042ad33

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Makefile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Makefile for Sphinx documentation
22
.DEFAULT_GOAL = help
3-
SHELL=bash
3+
SHELL = bash
44

55
# You can set these variables from the command line.
66
SPHINXOPTS ?=
@@ -21,15 +21,15 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
2121
# Add the following 'help' target to your Makefile
2222
# And add help text after each target name starting with '\#\#'
2323
.PHONY: help
24-
help: ## This help message
24+
help: # This help message
2525
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
2626

2727
.PHONY: clean
28-
clean: ## Clean build directory
28+
clean: # Clean docs build directory
2929
cd $(DOCS_DIR) && rm -rf $(BUILDDIR)/*
3030

3131
.PHONY: distclean
32-
distclean:
32+
distclean: # Clean docs build directory and Python virtual environment
3333
cd $(DOCS_DIR) && rm -rf $(BUILDDIR)/*
3434
rm -rf ./bin/ ./lib/ ./lib64 ./include
3535

@@ -48,10 +48,10 @@ docs/volto:
4848
ln -s ../submodules/volto/docs/source ./docs/volto
4949

5050
.PHONY: deps
51-
deps: bin/python docs/volto
51+
deps: bin/python docs/volto # Create Python virtual environment, install requirements, pull in Volto submodule
5252

5353
.PHONY: html
54-
html: # Build html
54+
html: # Build html
5555
cd $(DOCS_DIR) && $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
5656
@echo
5757
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
@@ -166,28 +166,28 @@ changes: deps
166166
@echo "The overview file is in $(BUILDDIR)/changes."
167167

168168
.PHONY: linkcheck
169-
linkcheck: deps ## Run linkcheck
169+
linkcheck: deps # Run linkcheck
170170
cd $(DOCS_DIR) && $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
171171
@echo
172172
@echo "Link check complete; look for any errors in the above output " \
173173
"or in $(BUILDDIR)/linkcheck/ ."
174174

175175
.PHONY: linkcheckbroken
176-
linkcheckbroken: deps ## Run linkcheck and show only broken links
176+
linkcheckbroken: deps # Run linkcheck and show only broken links
177177
cd $(DOCS_DIR) && $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck | GREP_COLORS='0;31' egrep -wi broken --color=auto
178178
@echo
179179
@echo "Link check complete; look for any errors in the above output " \
180180
"or in $(BUILDDIR)/linkcheck/ ."
181181

182182
.PHONY: spellcheck
183-
spellcheck: deps ## Run spellcheck
183+
spellcheck: deps # Run spellcheck
184184
cd $(DOCS_DIR) && LANGUAGE=$* $(SPHINXBUILD) -b spelling -j 4 $(ALLSPHINXOPTS) $(BUILDDIR)/spellcheck/$*
185185
@echo
186186
@echo "Spellcheck is finished; look for any errors in the above output " \
187187
" or in $(BUILDDIR)/spellcheck/ ."
188188

189189
.PHONY: html_meta
190-
html_meta: deps
190+
html_meta: deps # Add meta data headers to all Markdown pages
191191
python ./docs/addMetaData.py
192192

193193
.PHONY: doctest
@@ -197,16 +197,16 @@ doctest: deps
197197
"results in $(BUILDDIR)/doctest/output.txt."
198198

199199
.PHONY: test
200-
test: clean linkcheck spellcheck ## Run linkcheck, spellcheck
200+
test: clean linkcheck spellcheck # Clean docs build, then run linkcheck, spellcheck
201201

202202
.PHONY: deploy
203203
deploy: clean html
204204

205205
.PHONY: livehtml
206-
livehtml: deps ## Rebuild Sphinx documentation on changes, with live-reload in the browser
206+
livehtml: deps # Rebuild Sphinx documentation on changes, with live-reload in the browser
207207
cd "$(DOCS_DIR)" && ${SPHINXAUTOBUILD} \
208208
--ignore "*.swp" \
209209
-b html . "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
210210

211211
.PHONY: all
212-
all: clean spellcheck linkcheck html ## Run checks and build html
212+
all: clean spellcheck linkcheck html # Clean docs build, then run linkcheck and spellcheck, and build html

0 commit comments

Comments
 (0)