Skip to content

Commit d4903d5

Browse files
committed
using html for docs output
1 parent 962ec65 commit d4903d5

9 files changed

Lines changed: 1104 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ test.py
1313
htmlcov/
1414
benchmarks/*.json
1515
docs/_build/
16+
docs/examples/*.html
1617
old-version/
1718
*.swp

HISTORY.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ docs:
5959
publish: 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

docs/Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,19 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) .
1111
.PHONY: clean
1212
clean:
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

0 commit comments

Comments
 (0)