From 46376888cd2afb5d34bfdb08ba7f9d1b4c6b5d4a 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 977414e2bb..deb542d270 100644 --- a/Makefile +++ b/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 $< $@ diff --git a/doc/about/index.html b/doc/about/index.html index 038d232808..2f629072f8 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 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 fa0bade583..c4449e0d6e 100644 --- a/doc/community/index.html +++ b/doc/community/index.html @@ -180,7 +180,7 @@
  • -

    Copyright 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.