-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
|
||
|
||
|
||
all: venv | ||
.PHONY: docs | ||
docs: venv | ||
venv/bin/sphinx-build -j auto -b html -D language=en -d build/en/doctrees source dist/en | ||
|
||
venv: | ||
python -m venv venv | ||
venv/bin/pip3 install -r requirements.txt | ||
|
||
clean: | ||
rm -rf dist build venv | ||
|
||
.PHONY: check | ||
check: venv | ||
# ignore-messages is needed due to links being used in directives, which | ||
# are not visible by rstcheck as these directives are ignored (mostly faq) | ||
venv/bin/rstcheck --recursive --ignore-directives tabs,faq,product-table \ | ||
--ignore-messages "faq(.*)Hyperlink target(.*)is not referenced" \ | ||
source | ||
|
||
pkg: venv docs | ||
mv dist/en/_images dist/_images | ||
rm -rf dist/*/_sources dist/*/_images | ||
cp redirects/.htaccess dist | ||
|
||
|
||
clean: | ||
rm -rf dist build venv | ||
|
||
.PHONY: docs check pkg |