From 76f31faa3b80c554842e6865bceae18e4f258268 Mon Sep 17 00:00:00 2001
From: isaacs
Date: Fri, 16 Mar 2012 08:13:41 -0700
Subject: [PATCH] Remove hard-coded version number from docs
---
Makefile | 3 +++
doc/about/index.html | 2 +-
doc/community/index.html | 2 +-
doc/index.html | 18 +++++++++---------
doc/logos/index.html | 2 +-
doc/template.html | 2 +-
6 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/Makefile b/Makefile
index a13f08a141a..77f4ce2ac57 100644
--- a/Makefile
+++ b/Makefile
@@ -110,6 +110,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 $< $@
diff --git a/doc/about/index.html b/doc/about/index.html
index c2c4d742716..2f629072f8b 100644
--- a/doc/about/index.html
+++ b/doc/about/index.html
@@ -130,7 +130,7 @@ console.log('Server running at http://127.0.0.1:1337/');
Copyright 2010-2012 Joyent, Inc, Node.js is a trademark of Joyent, Inc. View license.
+Copyright Joyent, Inc, Node.js is a trademark of Joyent, Inc. View license.
diff --git a/doc/community/index.html b/doc/community/index.html index b928b69d1bf..c4449e0d6e9 100644 --- a/doc/community/index.html +++ b/doc/community/index.html @@ -180,7 +180,7 @@Copyright 2010-2012 Joyent, Inc, Node.js is a trademark of Joyent, Inc. View license.
+Copyright Joyent, Inc, Node.js is a trademark of Joyent, Inc. View license.