Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add conditions to open module specific node documentation #5572

Merged
merged 2 commits into from
Nov 2, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
node plugin: simplify URL computation
  • Loading branch information
mcornella authored Nov 2, 2016
commit a7643c554c246a901fb4a35b3f40002778eeceb8
7 changes: 2 additions & 5 deletions plugins/node/node.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Open the node api for your current version to the optional section.
# TODO: Make the section part easier to use.
function node-docs {
if [ $# -eq 0 ]; then
open_command "http://nodejs.org/docs/$(node --version)/api/all.html"
else
open_command "http://nodejs.org/docs/$(node --version)/api/$1.html"
fi
local section=${1:-all}
open_command "http://nodejs.org/docs/$(node --version)/api/$section.html"
}