Skip to content

Commit a708571

Browse files
committed
docs: adjust Makefile
1 parent ae63680 commit a708571

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

docsrc/Makefile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,25 @@ help:
1717
# render docs
1818
# copy rendered docs and .nojekyll (for github.io) to docs folder
1919
# remove example notebooks from source folder
20-
github:
21-
@cp ../INSTALL.rst source/installation.rst
22-
@cp ../CONTRIBUTING source/contributing.md
23-
@cp -a ../examples/. source/_examples
24-
@rm -r source/_examples/in_progress
20+
dev:
21+
@python pre-build.py source
2522
@make html
23+
@echo 'Copying docs to ../docs'
2624
@cp -a _build/html/. ../docs
2725
@cp .nojekyll ../docs/.nojekyll
28-
@rm -r _build/html/
29-
@rm -r source/_examples
30-
@rm source/installation.rst
31-
@rm source/contributing.md
26+
27+
github:
28+
@sphinx-polyversion -vv poly.py
29+
@echo 'Copying docs to ../docs'
30+
@cp -a _build_polyversion/. ../docs
3231

3332
clean:
3433
@rm -rf ../docs/*
3534
@rm -rf _build
35+
@rm -rf _build_polyversion
36+
@rm -r source/_examples
37+
@rm source/installation.rst
38+
@rm source/contributing.md
3639

3740
.PHONY: help Makefile
3841

0 commit comments

Comments
 (0)