Skip to content

Commit

Permalink
Update make doc & publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Jul 8, 2012
1 parent 17dc84b commit 677297a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .ndocrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#
# Common nodeca config
################################################################################

--index "./README.md"
--package "./package.json"
--gh-ribbon "{package.homepage}"
--output "doc"
--render "html"
--link-format "{package.homepage}/blob/master/{file}#L{line}"
--broken-links "throw"


#
# Paths with sources
################################################################################

lib
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ doc:
exit 128 ; \
fi
rm -rf ./doc
ndoc lib --link-format "{package.homepage}/blob/${CURR_HEAD}/{file}#L{line}"
ndoc --link-format "{package.homepage}/blob/${CURR_HEAD}/{file}#L{line}"


dev-deps:
Expand Down Expand Up @@ -84,6 +84,10 @@ publish:
echo "Unclean working tree. Commit or stash changes first." >&2 ; \
exit 128 ; \
fi
@if test 0 -ne `git fetch ; git status | grep '^# Your branch' | wc -l` ; then \
echo "Local/Remote history differs. Please push/pull changes." >&2 ; \
exit 128 ; \
fi
@if test 0 -ne `git tag -l ${NPM_VERSION} | wc -l` ; then \
echo "Tag ${NPM_VERSION} exists. Update package.json" >&2 ; \
exit 128 ; \
Expand Down

0 comments on commit 677297a

Please sign in to comment.