Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jessaustin committed Apr 3, 2016
1 parent 6f5c8f9 commit 09d136f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gulp-nav.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
url = require 'url'
through = require 'through2'

# relative() and resolve() are just like the path functions, except trailing
# slashes are significant since we're dealing with URLs
relative = (source, target) ->
source = source.split '/'
target = target.split '/'
Expand All @@ -31,6 +33,7 @@ relative = (source, target) ->
.join '/'
.replace /(^|\.\/)$/, '.'

# allow url.resolve() to take more than two args
resolve = (parts...) ->
parts.reduce url.resolve

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ directory.
There are a bunch of options we can pass into the plugin (in an object), which
are currently undocumented because they have sensible defaults and they might
change. If you want to know all about the options then [read the
source](gulp-nav.coffee#L37-L39).
source](gulp-nav.coffee#L40-L42).

One current default is to expose the nav data at both the `nav` and `data.nav`
(the latter for use with the new ["data
Expand Down

0 comments on commit 09d136f

Please sign in to comment.