Skip to content
This repository
Browse code

Update make doc & publish

  • Loading branch information...
commit 4bda762e02bf07617ab86f32c583de6414c89926 1 parent 578a656
Aleksey V. Zapparov ixti authored

Showing 2 changed files with 30 additions and 9 deletions. Show diff stats Hide diff stats

  1. +25 6 .ndocrc
  2. +5 3 Makefile
31 .ndocrc
... ... @@ -1,6 +1,25 @@
1   ---index "./README.md"
2   ---package "./package.json"
3   ---gh-ribbon "{package.homepage}"
4   ---output "doc"
5   ---render "html"
6   ---link-format "{package.homepage}/blob/master/{file}#L{line}"
  1 +#
  2 +# Common nodeca config
  3 +################################################################################
  4 +
  5 +--index "./README.md"
  6 +--package "./package.json"
  7 +--gh-ribbon "{package.homepage}"
  8 +--output "doc"
  9 +--render "html"
  10 +--link-format "{package.homepage}/blob/master/{file}#L{line}"
  11 +--broken-links "throw"
  12 +
  13 +
  14 +#
  15 +# Paths with sources
  16 +################################################################################
  17 +
  18 +lib
  19 +
  20 +
  21 +#
  22 +# Project specific configuration
  23 +################################################################################
  24 +
  25 +--show-all
8 Makefile
@@ -48,9 +48,7 @@ doc:
48 48 exit 128 ; \
49 49 fi
50 50 rm -rf ./doc
51   - ndoc lib \
52   - --link-format "{package.homepage}/blob/${CURR_HEAD}/{file}#L{line}" \
53   - --show-all
  51 + ndoc --link-format "{package.homepage}/blob/${CURR_HEAD}/{file}#L{line}"
54 52
55 53
56 54 dev-deps:
@@ -86,6 +84,10 @@ publish:
86 84 echo "Unclean working tree. Commit or stash changes first." >&2 ; \
87 85 exit 128 ; \
88 86 fi
  87 + @if test 0 -ne `git fetch ; git status | grep '^# Your branch' | wc -l` ; then \
  88 + echo "Local/Remote history differs. Please push/pull changes." >&2 ; \
  89 + exit 128 ; \
  90 + fi
89 91 @if test 0 -ne `git tag -l ${NPM_VERSION} | wc -l` ; then \
90 92 echo "Tag ${NPM_VERSION} exists. Update package.json" >&2 ; \
91 93 exit 128 ; \

0 comments on commit 4bda762

Please sign in to comment.
Something went wrong with that request. Please try again.