Skip to content

Commit a0f2b4f

Browse files
committed
adding a touch of style to the jsdoc index page
1 parent 9929bee commit a0f2b4f

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

jsdoc/generate_index_html.sh

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,31 @@
22

33
# based on https://odoepner.wordpress.com/2012/02/17/shell-script-to-generate-simple-index-html/
44

5-
echo '<!DOCTYPE html><html><body>'
6-
echo '<h1>IBM Watson Developer Cloud Node.js SDK</h1>'
7-
echo '<p><a href="https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/">Documentation</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>'
11-
echo '<p>JSDoc by branch/tag:</p><ul>'
5+
echo '<!DOCTYPE html>
6+
<html>
7+
<head>
8+
<meta charset="utf-8">
9+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
10+
<meta name="viewport" content="width=device-width, initial-scale=1">
11+
<title>IBM Watson Developer Cloud</title>
12+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
13+
</head>
14+
<body>
15+
<div class="container">
16+
<div class="page-header">
17+
<h1>IBM Watson Developer Cloud Node.js SDK</h1>
18+
</div>
19+
20+
<p><a href="http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/">Info</a>
21+
| <a href="http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/">Documentation</a>
22+
| <a href="https://github.com/watson-developer-cloud/node-sdk">GitHub</a>
23+
| <a href="https://npmjs.org/package/watson-developer-cloud">npm</a>
24+
</p>
25+
26+
<p>JSDoc by branch/tag:</p>
27+
<ul>'
1228
ls | grep --invert-match index.html | sed 's/^.*/<li><a href="&">&<\/a><\/li>/'
13-
echo '</ul></body></html>'
29+
echo ' </ul>
30+
</div>
31+
</body>
32+
</html>'

0 commit comments

Comments
 (0)