Skip to content
Browse files

Remove hard-coded version number from docs

  • Loading branch information...
1 parent ec735cb commit 46376888cd2afb5d34bfdb08ba7f9d1b4c6b5d4a @isaacs isaacs committed Mar 16, 2012
Showing with 16 additions and 13 deletions.
  1. +3 −0 Makefile
  2. +1 −1 doc/about/index.html
  3. +1 −1 doc/community/index.html
  4. +9 −9 doc/index.html
  5. +1 −1 doc/logos/index.html
  6. +1 −1 doc/template.html
View
3 Makefile
@@ -124,6 +124,9 @@ $(apidoc_dirs):
out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
cp $< $@
+out/doc/%.html: doc/%.html
+ cat $< | sed -e 's|__VERSION__|'$(VERSION)'|g' > $@
+
out/doc/%: doc/%
cp -r $< $@
View
2 doc/about/index.html
@@ -130,7 +130,7 @@
<li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
</ul>
- <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/v0.7.6/LICENSE">license</a>.</p>
+ <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>
</div>
View
2 doc/community/index.html
@@ -180,7 +180,7 @@ <h2 class="irc">IRC</h2>
<li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
</ul>
- <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/v0.7.6/LICENSE">license</a>.</p>
+ <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>
</div>
<script>
View
18 doc/index.html
@@ -31,7 +31,7 @@
<a href="#download" class="button" id="downloadbutton">Download</a>
<a href="http://nodejs.org/api/index.html" class="button" id="docsbutton">Docs</a>
- <p class="version">v0.7.6</p>
+ <p class="version">__VERSION__</p>
</div>
<div id="quotes" class="clearfix">
<h2>Node.js in the Industry</h2>
@@ -78,15 +78,15 @@
<a href="#" id="download-close">X</a>
<img id="download-logo" src="http://nodejs.org/images/download-logo.png" alt="node.js">
<ul id="installers" class="clearfix">
- <li><a href="http://nodejs.org/dist/v0.7.6/node-v0.7.6.msi">Windows Installer</a><br>node-v0.7.6.msi</li>
- <li><a href="http://nodejs.org/dist/v0.7.6/node-v0.7.6.pkg">Macintosh Installer</a><br>node-v0.7.6.pkg</li>
- <li id="source"><a href="http://nodejs.org/dist/v0.7.6/node-v0.7.6.tar.gz">Source Code</a><br>node-v0.7.6.tar.gz</li>
+ <li><a href="http://nodejs.org/dist/__VERSION__/node-__VERSION__.msi">Windows Installer</a><br>node-__VERSION__.msi</li>
+ <li><a href="http://nodejs.org/dist/__VERSION__/node-__VERSION__.pkg">Macintosh Installer</a><br>node-__VERSION__.pkg</li>
+ <li id="source"><a href="http://nodejs.org/dist/__VERSION__/node-__VERSION__.tar.gz">Source Code</a><br>node-__VERSION__.tar.gz</li>
</ul>
<ul id="documentation">
- <li><a href="https://raw.github.com/joyent/node/v0.7.6/ChangeLog">Change Log</a></li>
- <li><a href="http://nodejs.org/docs/v0.7.6/api/index.html">Documentation</a></li>
- <li><a href="http://nodejs.org/dist/v0.7.6">Other release files</a></li>
- <li><a href="https://raw.github.com/joyent/node/v0.7.6/LICENSE">License</a></li>
+ <li><a href="https://raw.github.com/joyent/node/__VERSION__/ChangeLog">Change Log</a></li>
+ <li><a href="http://nodejs.org/docs/__VERSION__/api/index.html">Documentation</a></li>
+ <li><a href="http://nodejs.org/dist/__VERSION__">Other release files</a></li>
+ <li><a href="https://raw.github.com/joyent/node/__VERSION__/LICENSE">License</a></li>
<li><a href="https://github.com/joyent/node">Git Repository</a></li>
<li><a href="https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager">Installing
with a Package Manager</a>
@@ -211,7 +211,7 @@
<!-- <li><a hrfe="http://twitter.com/nodejs" class="twitter">@nodejs</a></li> -->
</ul>
- <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/v0.7.6/LICENSE">license</a>.</p>
+ <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>
</div>
View
2 doc/logos/index.html
@@ -82,7 +82,7 @@
<li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
</ul>
- <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.7.6/LICENSE">View License</a></p>
+ <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>
</div>
<script>
View
2 doc/template.html
@@ -66,7 +66,7 @@
<li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
</ul>
- <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>
+ <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>
</div>
<script src="../sh_main.js"></script>

0 comments on commit 4637688

Please sign in to comment.
Something went wrong with that request. Please try again.