Skip to content

Commit 76f31fa

Browse files
committed
Remove hard-coded version number from docs
1 parent 0dcc433 commit 76f31fa

File tree

6 files changed

+16
-13
lines changed

6 files changed

+16
-13
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ $(apidoc_dirs):
110110
out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
111111
cp $< $@
112112

113+
out/doc/%.html: doc/%.html
114+
cat $< | sed -e 's|__VERSION__|'$(VERSION)'|g' > $@
115+
113116
out/doc/%: doc/%
114117
cp -r $< $@
115118

doc/about/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h1>Node's goal is to provide an easy way to build scalable
130130
<li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
131131
</ul>
132132

133-
<p>Copyright 2010-2012 <a href="http://joyent.com">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/v0.6.13/LICENSE">license</a>.</p>
133+
<p>Copyright <a href="http://joyent.com">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/__VERSION__/LICENSE">license</a>.</p>
134134
</div>
135135

136136

doc/community/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ <h2 class="irc">IRC</h2>
180180
<li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
181181
</ul>
182182

183-
<p>Copyright 2010-2012 <a href="http://joyent.com">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/v0.6.13/LICENSE">license</a>.</p>
183+
<p>Copyright <a href="http://joyent.com">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/__VERSION__/LICENSE">license</a>.</p>
184184
</div>
185185

186186
<script>

doc/index.html

+9-9
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<a href="#download" class="button" id="downloadbutton">Download</a>
3333
<a href="http://nodejs.org/api/index.html" class="button" id="docsbutton">Docs</a>
34-
<p class="version">v0.6.13</p>
34+
<p class="version">__VERSION__</p>
3535
</div>
3636
<div id="quotes" class="clearfix">
3737
<h2>Node.js in the Industry</h2>
@@ -78,15 +78,15 @@ <h2>Node.js in the Industry</h2>
7878
<a href="#" id="download-close">X</a>
7979
<img id="download-logo" src="http://nodejs.org/images/download-logo.png" alt="node.js">
8080
<ul id="installers" class="clearfix">
81-
<li><a href="http://nodejs.org/dist/v0.6.13/node-v0.6.13.msi">Windows Installer</a><br>node-v0.6.13.msi</li>
82-
<li><a href="http://nodejs.org/dist/v0.6.13/node-v0.6.13.pkg">Macintosh Installer</a><br>node-v0.6.13.pkg</li>
83-
<li id="source"><a href="http://nodejs.org/dist/v0.6.13/node-v0.6.13.tar.gz">Source Code</a><br>node-v0.6.13.tar.gz</li>
81+
<li><a href="http://nodejs.org/dist/__VERSION__/node-__VERSION__.msi">Windows Installer</a><br>node-__VERSION__.msi</li>
82+
<li><a href="http://nodejs.org/dist/__VERSION__/node-__VERSION__.pkg">Macintosh Installer</a><br>node-__VERSION__.pkg</li>
83+
<li id="source"><a href="http://nodejs.org/dist/__VERSION__/node-__VERSION__.tar.gz">Source Code</a><br>node-__VERSION__.tar.gz</li>
8484
</ul>
8585
<ul id="documentation">
86-
<li><a href="https://raw.github.com/joyent/node/v0.6.13/ChangeLog">Change Log</a></li>
87-
<li><a href="http://nodejs.org/docs/v0.6.13/api/index.html">Documentation</a></li>
88-
<li><a href="http://nodejs.org/dist/v0.6.13">Other release files</a></li>
89-
<li><a href="https://raw.github.com/joyent/node/v0.6.13/LICENSE">License</a></li>
86+
<li><a href="https://raw.github.com/joyent/node/__VERSION__/ChangeLog">Change Log</a></li>
87+
<li><a href="http://nodejs.org/docs/__VERSION__/api/index.html">Documentation</a></li>
88+
<li><a href="http://nodejs.org/dist/__VERSION__">Other release files</a></li>
89+
<li><a href="https://raw.github.com/joyent/node/__VERSION__/LICENSE">License</a></li>
9090
<li><a href="https://github.com/joyent/node">Git Repository</a></li>
9191
<li><a href="https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager">Installing
9292
with a Package Manager</a>
@@ -211,7 +211,7 @@ <h2>Explore Node.js</h2>
211211
<!-- <li><a hrfe="http://twitter.com/nodejs" class="twitter">@nodejs</a></li> -->
212212
</ul>
213213

214-
<p>Copyright 2010-2012 <a href="http://joyent.com">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/v0.6.13/LICENSE">license</a>.</p>
214+
<p>Copyright <a href="http://joyent.com">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/__VERSION__/LICENSE">license</a>.</p>
215215
</div>
216216

217217

doc/logos/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h2>Desktop Background</h2>
8282
<li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
8383
</ul>
8484

85-
<p>Copyright <a href="http://joyent.com">Joyent, Inc</a>., Node.js is a <a href="/trademark-policy.pdf">trademark of Joyent, Inc</a>., <a href="https://raw.github.com/joyent/node/v0.6.13/LICENSE">View License</a></p>
85+
<p>Copyright <a href="http://joyent.com">Joyent, Inc</a>., Node.js is a <a href="/trademark-policy.pdf">trademark of Joyent, Inc</a>., <a href="https://raw.github.com/joyent/node/__VERSION__/LICENSE">View License</a></p>
8686
</div>
8787

8888
<script>

doc/template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h2>Table of Contents</h2>
6666
<li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
6767
</ul>
6868

69-
<p>Copyright 2010-2012 <a href="http://joyent.com">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/__VERSION__/LICENSE">license</a>.</p>
69+
<p>Copyright <a href="http://joyent.com">Joyent, Inc</a>, Node.js is a <a href="/trademark-policy.pdf">trademark</a> of Joyent, Inc. View <a href="https://raw.github.com/joyent/node/__VERSION__/LICENSE">license</a>.</p>
7070
</div>
7171

7272
<script src="../sh_main.js"></script>

0 commit comments

Comments
 (0)