Skip to content

Commit 00721f6

Browse files
committed
added links, don't include generated index.html in the directory listing
1 parent 3058b92 commit 00721f6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

jsdoc/generate_index_html.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
# based on https://odoepner.wordpress.com/2012/02/17/shell-script-to-generate-simple-index-html/
44

55
echo '<!DOCTYPE html><html><body>'
6-
echo '<h1>JSDoc for <a href="https://npmjs.org/package/watson-developer-cloud"><code>watson-developer-cloud</code></a></h1>'
7-
echo '<p>See also: <a href="https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/">https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/</a></p>'
8-
echo '<ul>'
9-
ls | sed 's/^.*/<li><a href="&">&<\/a><\/li>/'
6+
echo '<h1>JSDoc for IBM Watson Developer Cloud Node.js SDK</h1>'
7+
echo '<p><a href="https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/">docs</a>'
8+
echo ' | <a href="https://github.com/watson-developer-cloud/node-sdk">GitHub</a>'
9+
echo ' | <a href="https://npmjs.org/package/watson-developer-cloud">npm</a>'
10+
echo '</p><ul>'
11+
ls| grep --invert-match index.html | sed 's/^.*/<li><a href="&">&<\/a><\/li>/'
1012
echo '</ul></body></html>'

0 commit comments

Comments
 (0)