               for example in examples
                 cli.example "#{default_target_command} #{JSON.stringify example}", run: false
             else
-              cli.text 'Documentation not found'
+              name = graphite_parameter_doc_ids[name] ? name
+              div = graphite_parameter_docs[name]
+              if div?
+                docs = $(div.cloneNode true)
+                docs.find('a').on 'click', (e) ->
+                  e.preventDefault()
+                  href = $(this).attr 'href'
+                  if href[0] is '#'
+                    run "docs '#{decodeURI href[1..]}'"
+                context.$result.append docs
+              else
+                cli.text 'Documentation not found'
             context.success()
           else
+            cli.html '<h3>Functions</h3>'
             names = (name for name of graphite_function_docs)
             names.sort()
             for name in names
               sig = $(graphite_function_docs[name].getElementsByTagName('dt')[0]).text().trim()
               cli.example "docs #{name}  # #{sig}"
+
+            cli.html '<h3>Parameters</h3>'
+            names = (name for name of graphite_parameter_docs)
+            names.sort()
+            for name in names
+              cli.example "docs '#{name}'"
             context.success()
 
       clear:

    for k of graphite_function_docs
      if k.indexOf(s) is 0
        list.push k
    showHints
      list: list
      from: CodeMirror.Pos cur.line, token.start

          cli.text 'to see what you can do with Graphite.'

      docs:
        cmd 'Shows the documentation for a graphite function or parameter', (name) ->
          if name?
            fn = name.to_js_string() if name.to_js_string?
            dl = graphite_function_docs[name]
            if dl?
              pres = dl.getElementsByTagName 'pre'
              examples = []
