-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsdoc-notes.txt
executable file
·74 lines (44 loc) · 1.84 KB
/
jsdoc-notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
http://www.fusioncharts.com/blog/2014/06/extend-jsdoc-api-documentation-through-tutorials/
////////
=> Close and reopen your terminal to start using nvm / Suman
> http://stackoverflow.com/questions/36782467/set-subdirectory-as-website-root-on-github-pages
> https://gist.github.com/cobyism/4730490
instructions on how to generate docs
1. jsdoc examples -u examples -d jsdoc-out
2. mr-doc -s examples/bdd-api -o mr-docs -n "BDD interface"
3. mr-doc -s examples/tdd-api -o mr-docs -n "TDD interface"
4. cut/copy mr-doc directory into jsdoc-out dir
5. add this to jsdoc-out/index.html, under the tutorial block
<h3>Docs</h3>
<ul>
<li><a href="jsdoc-out/mr-docs/api-bdd.js.html">BDD interface</a></li>
<li><a href="jsdoc-out/mr-docs/api-tdd.js.html">TDD interface</a></li>
</ul>
<h3>FAQ</h3>
<ul>
<li><a href="jsdoc-out/tutorial-99-faq.html">FAQ</a></li>
</ul>
6.
stick this into jsdoc-out/mr-docs/api-bdd.js.html and jsdoc-out/mr-docs/api-tdd.js.html
<div class="row">
<div class="col-md-2">
<img height="40%" width="40%" src='/suman/images/suman.png'>
</div>
<div class="col-md-8">
<h1> BDD interface</h1>
</div>
<p class="lead"></p>
</div>
7. in jsdoc-out/mr-docs/api-bdd.js.html and jsdoc-out/mr-docs/api-tdd.js.html
change Main to Home =>
<li><a href="index.html">Main</a></li>
becomes
<li><a href="/suman/index.html">Home</a></li>
8. cut/copy jsdoc-out/index.html to root of project
9. add this to the main div in the new index.html file
<div id="main">
<img src="/suman/images/suman.png">
<h1 class="page-title">Suman</h1>
<h2 class="page-title"> > Superior test runner for Node.js</h2>
<h3> > A successor to Mocha, Tape and Jasmine </h3>
</div>