Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update make doc & publish

  • Loading branch information...
commit 677297a41a6cfa961db3ff5a0516b12195c55a70 1 parent 17dc84b
@ixti ixti authored
Showing with 16 additions and 1 deletion.
  1. +11 −0 .ndocrc
  2. +5 −1 Makefile
View
11 .ndocrc
@@ -1,3 +1,7 @@
+#
+# Common nodeca config
+################################################################################
+
--index "./README.md"
--package "./package.json"
--gh-ribbon "{package.homepage}"
@@ -5,3 +9,10 @@
--render "html"
--link-format "{package.homepage}/blob/master/{file}#L{line}"
--broken-links "throw"
+
+
+#
+# Paths with sources
+################################################################################
+
+lib
View
6 Makefile
@@ -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:
@@ -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 ; \
Please sign in to comment.
Something went wrong with that request. Please try again.