Skip to content

Commit

Permalink
Added make docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 6, 2010
1 parent 874975d commit 939cf45
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@

DOCS = docs/index.md
MANPAGES =$(DOCS:.md=.1)
HTMLDOCS =$(DOCS:.md=.html)

test:
@CONNECT_ENV=test ./support/expresso/bin/expresso -I lib test/*.test.js

.PHONY: test
docs: docs/api.html $(MANPAGES) $(HTMLDOCS)

docs/api.html:
dox --title Express \
--desc "High performance web framework for [node](http://nodejs.org)." \
$(shell find lib/express/* -type f) > $@

%.1: %.md
@echo "... $< -> $@"
@ronn -r --pipe $< > $@ &

%.html: %.md
@echo "... $< -> $@"
@ronn -5 --pipe --fragment $< \
| sed 's/NAME/Express.g' \
> $@ &

docclean:
rm -f docs/*.{1,html}

.PHONY: test docs docclean
Empty file added docs/index.md
Empty file.

0 comments on commit 939cf45

Please sign in to comment.