File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ test.py
1313htmlcov /
1414benchmarks /* .json
1515docs /_build /
16+ docs /examples /* .html
1617old-version /
1718* .swp
Original file line number Diff line number Diff line change 33 History
44-------
55
6- v0.3.0 (2017-10-XX )
6+ v0.3.0 (2017-10-11 )
77...................
88* allow ``async/await `` arguments
99* fix subscript
Original file line number Diff line number Diff line change 5959publish : docs
6060 cd docs/_build/ && cp -r html site && zip -r site.zip site
6161 @curl -H " Content-Type: application/zip" -H " Authorization: Bearer ${NETLIFY} " \
62- --data-binary " @docs/_build/site.zip" https://api.netlify.com/api/v1/sites/pydantic-docs .netlify.com/deploys
62+ --data-binary " @docs/_build/site.zip" https://api.netlify.com/api/v1/sites/python-devtools .netlify.com/deploys
Original file line number Diff line number Diff line change @@ -11,9 +11,19 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) .
1111.PHONY : clean
1212clean :
1313 rm -rf $(BUILDDIR )
14+ rm examples/* .html | true
15+
16+ .PHONY : doc-examples
17+ doc-examples :
18+ @ ( echo ' <pre class="ansi2html-content">' ; \
19+ PY_DEVTOOLS_HIGHLIGHT=true python examples/1_input.py | ansi2html -p; \
20+ echo ' </pre>' ) > examples/1_output.html
21+ @ ( echo ' <pre class="ansi2html-content">' ; \
22+ PY_DEVTOOLS_HIGHLIGHT=true python examples/2_input.py | ansi2html -p; \
23+ echo ' </pre>' ) > examples/2_output.html
1424
1525.PHONY : html
16- html : clean
26+ html : clean doc-examples
1727 mkdir -p $(STATICDIR )
1828 $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
1929 @echo
You can’t perform that action at this time.
0 commit comments