1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00

added tox.ini, autobuild target for docs makefile

This commit is contained in:
Keerthan Jaic 2015-04-15 16:49:24 -04:00
parent 7c7bb58184
commit f8825dd92c
4 changed files with 24 additions and 0 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ build/
__pycache__/
*egg-info/
dist/
.tox
# Cosim
*.o

View File

@ -4,6 +4,12 @@ install:
localinstall:
python setup.py install --home=$(HOME)
docs:
tox -e docs html
livedocs:
tox -e docs livehtml
release:
- rm MANIFEST
- rm CHANGELOG.txt

View File

@ -19,6 +19,7 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " livehtml to make continuously updating standalone HTML files"
@echo " web to make files usable by Sphinx.web"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@ -41,6 +42,10 @@ html:
@echo
@echo "Build finished. The HTML pages are in build/html."
livehtml:
mkdir -p build/html build/doctrees
sphinx-autobuild -b html $(ALLSPHINXOPTS) build/html
web:
mkdir -p build/web build/doctrees
$(SPHINXBUILD) -b web $(ALLSPHINXOPTS) build/web

12
tox.ini Normal file
View File

@ -0,0 +1,12 @@
[tox]
envlist = py27,py34
[testenv]
deps = pytest
commands = py.test []
[testenv:docs]
whitelist_externals = make
changedir = doc
deps = sphinx-autobuild
commands = make []