Skip to content

Commit

Permalink
Adding extra targets to Makefile so that IPython notebooks will be co…
Browse files Browse the repository at this point in the history
…nverted to static HTML

for inclusion in the HOWTO directory. Requires installation of IPython to carry out conversion.
  • Loading branch information
Ewan Klein committed Aug 28, 2015
1 parent c5fafd8 commit 562f4ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nltk/test/Makefile
Expand Up @@ -4,14 +4,19 @@ TESTS = $(wildcard *.doctest)

ERRS := $(TESTS:.doctest=.errs)

HTML = $(TESTS:.doctest=.html)
HTML = $(TESTS:.doctest=.html) $(IPYNB:.ipynb=.html)

IPYNB = $(wildcard *.ipynb)

.doctest.errs:
python ./runtests.py $< > $@

.doctest.html:
rst2html.py $< > $@

%.html: %.ipynb
ipython nbconvert $<

all: $(ERRS)

html: $(HTML)
Expand Down

0 comments on commit 562f4ab

Please sign in to comment.