Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: Move images out of the dist tarball
This puts all images in doc/images/ and references them via
http://nodejs.org/images/.

Any complaints about copyright usage etc. can thus be node/joyent's
problem, rather than the problem of a downstream distribution channel.
  • Loading branch information
isaacs committed Feb 13, 2012
1 parent e7e4f2f commit a7af84f
Show file tree
Hide file tree
Showing 52 changed files with 62 additions and 81 deletions.
31 changes: 6 additions & 25 deletions Makefile
Expand Up @@ -92,10 +92,12 @@ test-npm-publish: node
apidoc_sources = $(wildcard doc/api/*.markdown)
apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html))

apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets out/doc/about out/doc/community out/doc/logos
apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets out/doc/about out/doc/community out/doc/logos out/doc/images

apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))

doc_images = $(addprefix out/,$(wildcard doc/images/* doc/*.jpg doc/*.png))

website_files = \
out/doc/index.html \
out/doc/v0.4_announcement.html \
Expand All @@ -104,33 +106,12 @@ website_files = \
out/doc/sh_javascript.min.js \
out/doc/sh_vim-dark.css \
out/doc/sh.css \
out/doc/logo.png \
out/doc/favicon.ico \
out/doc/pipe.css \
out/doc/about/index.html \
out/doc/close-downloads.png \
out/doc/community/index.html \
out/doc/community/not-invented-here.png \
out/doc/logos/index.html \
out/doc/microsoft-logo.png \
out/doc/ryan-speaker.jpg \
out/doc/download-logo.png \
out/doc/ebay-logo.png \
out/doc/footer-logo-alt.png \
out/doc/footer-logo.png \
out/doc/icons-interior.png \
out/doc/icons.png \
out/doc/home-icons.png \
out/doc/joyent-logo_orange_nodeorg-01.png \
out/doc/linkedin-logo.png \
out/doc/logo-light.png \
out/doc/mac_osx_nodejs_installer_logo.png \
out/doc/microsoft-logo.png \
out/doc/platform-icons.png \
out/doc/sponsored.png \
out/doc/twitter-bird.png \
out/doc/community-icons.png \
out/doc/yahoo-logo.png
$(doc_images)

doc: node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)

Expand All @@ -141,7 +122,7 @@ out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
cp $< $@

out/doc/%: doc/%
cp $< $@
cp -r $< $@

out/doc/api/%.html: doc/api/%.markdown node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
out/Release/node tools/doctool/doctool.js doc/template.html $< > $@
Expand Down Expand Up @@ -193,7 +174,7 @@ $(TARBALL): node out/doc
cp doc/node.1 $(TARNAME)/doc/node.1
cp -r out/doc/api $(TARNAME)/doc/api
rm -rf $(TARNAME)/deps/v8/test # too big
rm -rf $(TARNAME)/doc/logos # too big
rm -rf $(TARNAME)/doc/images # too big
tar -cf $(TARNAME).tar $(TARNAME)
rm -rf $(TARNAME)
gzip -f -9 $(TARNAME).tar
Expand Down
2 changes: 1 addition & 1 deletion doc/about/index.html
Expand Up @@ -21,7 +21,7 @@
<body class="alt int" id="about">
<div id="intro" class="interior">
<a href="/" title="Go back to the home page">
<img id="logo" src="../logo-light.png" alt="node.js">
<img id="logo" src="http://nodejs.org/images/logo-light.png" alt="node.js">
</a>
</div>
<div id="content" class="clearfix">
Expand Down
Binary file removed doc/api_assets/anchor.png
Binary file not shown.
30 changes: 15 additions & 15 deletions doc/api_assets/style.css
Expand Up @@ -242,7 +242,7 @@ code.pre {
color: #d2d8ba;

/* preload platform-icons.png */
background-image: url(platform-icons.png);
background-image: url(http://nodejs.org/images/platform-icons.png);
background-repeat: no-repeat;
background-position: -999em -999em;
}
Expand Down Expand Up @@ -341,15 +341,15 @@ p tt, p code {
line-height: 23px;
}

#column2.interior li a.home { background: url(icons-interior.png) no-repeat -156px 3px; }
#column2.interior li a.download { background: url(icons-interior.png) no-repeat -156px -21px; }
#column2.interior li a.about { background: url(icons-interior.png) no-repeat -156px -45px; }
#column2.interior li a.npm { background: url(icons-interior.png) no-repeat -156px -69px; }
#column2.interior li a.docs { background: url(icons-interior.png) no-repeat -156px -93px; }
#column2.interior li a.blog { background: url(icons-interior.png) no-repeat -156px -117px; }
#column2.interior li a.community { background: url(icons-interior.png) no-repeat -156px -141px; }
#column2.interior li a.logos { background: url(icons-interior.png) no-repeat -156px -165px; }
#column2.interior li a.jobs { background: url(icons-interior.png) no-repeat -156px -189px; }
#column2.interior li a.home { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px 3px; }
#column2.interior li a.download { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -21px; }
#column2.interior li a.about { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -45px; }
#column2.interior li a.npm { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -69px; }
#column2.interior li a.docs { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -93px; }
#column2.interior li a.blog { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -117px; }
#column2.interior li a.community { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -141px; }
#column2.interior li a.logos { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -165px; }
#column2.interior li a.jobs { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -189px; }

#column2.interior li a.home.current { background-position: 2px 3px; }
#column2.interior li a.download.current { background-position: 2px -21px; }
Expand Down Expand Up @@ -381,7 +381,7 @@ p tt, p code {
}

#column2.interior p.twitter a {
background: url(twitter-bird.png) no-repeat 0 4px;
background: url(http://nodejs.org/images/twitter-bird.png) no-repeat 0 4px;
padding-left: 37px;
text-decoration: none;
}
Expand All @@ -394,7 +394,7 @@ a.totop {
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
font-weight: bold;
text-indent: -9999999px;
background: url(anchor.png) no-repeat top left;
background: url(http://nodejs.org/images/anchor.png) no-repeat top left;
margin-right: 7px;
display: block;
width: 13px;
Expand All @@ -405,7 +405,7 @@ a.anchor {
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
font-weight: bold;
text-indent: -9999999px;
background: url(anchor.png) no-repeat top right;
background: url(http://nodejs.org/images/anchor.png) no-repeat top right;
display: block;
width: 13px;
border-bottom: 1px solid #cccccc;
Expand Down Expand Up @@ -442,7 +442,7 @@ a.anchor {
}

#footer ul {
background: url(footer-logo-alt.png) left 17px no-repeat;
background: url(http://nodejs.org/images/footer-logo-alt.png) left 17px no-repeat;
padding: 23px 0 0 195px;
height: 26px;
margin-left: -1px;
Expand Down Expand Up @@ -476,7 +476,7 @@ a.anchor {
}

#footer ul li a.twitter {
background: url(twitter-bird.png) no-repeat 5px 0px;
background: url(http://nodejs.org/images/twitter-bird.png) no-repeat 5px 0px;
padding-left: 25px;
}

Expand Down
4 changes: 2 additions & 2 deletions doc/community/index.html
Expand Up @@ -23,7 +23,7 @@
<body class="int" id="community">
<div id="intro" class="interior">
<a href="/" title="Go back to the home page">
<img id="logo" src="../logo.png" alt="node.js">
<img id="logo" src="http://nodejs.org/images/logo.png" alt="node.js">
</a>
</div>
<div id="content" class="clearfix">
Expand Down Expand Up @@ -163,7 +163,7 @@ <h2 class="irc">IRC</h2>
</div>

<p><a href="http://notinventedhe.re/on/2011-7-26"><img
src="not-invented-here.png" width="100%"></a></p>
src="http://nodejs.org/images/not-invented-here.png" width="100%"></a></p>
</div>
</div>
<div id="footer">
Expand Down
Binary file removed doc/footer-logo-alt.png
Binary file not shown.
Binary file removed doc/icons-interior.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
14 changes: 7 additions & 7 deletions doc/index.html
Expand Up @@ -20,7 +20,7 @@
</head>
<body id="front">
<div id="intro">
<img id="logo" src="logo.png" alt="node.js">
<img id="logo" src="http://nodejs.org/images/logo.png" alt="node.js">

<p>Node.js is a platform built on <a
href="http://code.google.com/p/v8/">Chrome's JavaScript runtime</a>
Expand All @@ -36,7 +36,7 @@
<div id="quotes" class="clearfix">
<h2>Node.js in the Industry</h2>
<ul>
<li class="microsoft"><img src="microsoft-logo.png">
<li class="microsoft"><img src="http://nodejs.org/images/microsoft-logo.png">
<p>Node gives Azure users the first end-to-end JavaScript
experience for the development of a whole new class of real-time
applications.
Expand All @@ -45,7 +45,7 @@ <h2>Node.js in the Industry</h2>
<br>
<span>Principal Program Manager, Interoperability Strategy</span></p></li>

<li class="ebay"><img src="ebay-logo.png">
<li class="ebay"><img src="http://nodejs.org/images/ebay-logo.png">
<p>Node’s evented I/O model freed us from worrying about locking
and concurrency issues that are common with multithreaded async
I/O.
Expand All @@ -54,7 +54,7 @@ <h2>Node.js in the Industry</h2>
<br>
<span>Principal Member, Technical Staff</span></p></li>

<li class="linkedin"><img src="linkedin-logo.png">
<li class="linkedin"><img src="http://nodejs.org/images/linkedin-logo.png">
<p>On the server side, our entire mobile software stack is
completely built in Node. One reason was scale. The second is
Node showed us huge performance gains.
Expand All @@ -63,7 +63,7 @@ <h2>Node.js in the Industry</h2>
<br>
<span>Director of Engineering, Mobile</span></p></li>

<li class="yahoo"><img src="yahoo-logo.png">
<li class="yahoo"><img src="http://nodejs.org/images/yahoo-logo.png">
<p>Node.js is the execution core of Manhattan. Allowing
developers to build one code base using one language – that is
the nirvana for developers.
Expand All @@ -76,7 +76,7 @@ <h2>Node.js in the Industry</h2>

<div id="download">
<a href="#" id="download-close">X</a>
<img id="download-logo" src="download-logo.png" alt="node.js">
<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.3/node-v0.7.3.msi">Windows Installer</a><br>node-v0.7.3.msi</li>
<li><a href="http://nodejs.org/dist/v0.7.3/node-v0.7.3.pkg">Macintosh Installer</a><br>node-v0.7.3.pkg</li>
Expand Down Expand Up @@ -181,7 +181,7 @@ <h2>An example: Webserver</h2>
</div>
<div id="column2">
<h2>Featured</h2>
<a href="http://www.youtube.com/watch?v=jo_B4LTHi3I"><img src="ryan-speaker.jpg"></a>
<a href="http://www.youtube.com/watch?v=jo_B4LTHi3I"><img src="http://nodejs.org/images/ryan-speaker.jpg"></a>
A guided introduction to Node

<h2>Explore Node.js</h2>
Expand Down
Binary file removed doc/logo-light.png
Diff not rendered.
24 changes: 12 additions & 12 deletions doc/logos/index.html
Expand Up @@ -24,7 +24,7 @@
<body class="int" id="logos">
<div id="intro" class="interior">
<a href="/" title="Go back to the home page">
<img id="logo" src="../logo.png" alt="node.js">
<img id="logo" src="http://nodejs.org/logo.png" alt="node.js">
</a>
</div>
<div id="content" class="clearfix">
Expand All @@ -48,26 +48,26 @@
<h2>Logo Downloads</h2>
<table border="0" cellspacing="0" cellpadding="10">
<tr>
<td bgcolor="#FFFFFF"><a href="nodejs-light.eps"><img src="nodejs.png" alt="Node.js dark" width="212" height="114" border="0"></a></td>
<td bgcolor="#46483E"><a href="nodejs-dark.eps"><img src="nodejs-dark.png" alt="Node.js dark" width="212" height="114" border="0"></a></td>
<td bgcolor="#FFFFFF"><a href="http://nodejs.org/images/logos/nodejs-light.eps"><img src="http://nodejs.org/images/logos/nodejs.png" alt="Node.js dark" width="212" height="114" border="0"></a></td>
<td bgcolor="#46483E"><a href="http://nodejs.org/images/logos/nodejs-dark.eps"><img src="http://nodejs.org/images/logos/nodejs-dark.png" alt="Node.js dark" width="212" height="114" border="0"></a></td>
</tr>
<tr>
<td><a href="nodejs-light.eps">Node.js standard EPS</a></td>
<td><a href="nodejs-dark.eps">Node.js reversed EPS</a></td>
<td><a href="http://nodejs.org/images/logos/nodejs-light.eps">Node.js standard EPS</a></td>
<td><a href="http://nodejs.org/images/logos/nodejs-dark.eps">Node.js reversed EPS</a></td>
</tr>
<tr>
<td bgcolor="#8BC84B"><a href="nodejs-green.eps"><img src="nodejs-green.png" alt="Node.js dark" width="212" height="114" border="0"></a><a href="nodejs-dark.eps"></a></td>
<td bgcolor="#ffffff"><a href="nodejs-black.eps"><img src="nodejs-black.png" alt="Node.js dark" width="212" height="114" border="0"></a></td>
<td bgcolor="#8BC84B"><a href="http://nodejs.org/images/logos/nodejs-green.eps"><img src="http://nodejs.org/images/logos/nodejs-green.png" alt="Node.js dark" width="212" height="114" border="0"></a><a href="http://nodejs.org/images/logos/nodejs-dark.eps"></a></td>
<td bgcolor="#ffffff"><a href="http://nodejs.org/images/logos/nodejs-black.eps"><img src="http://nodejs.org/images/logos/nodejs-black.png" alt="Node.js dark" width="212" height="114" border="0"></a></td>
</tr>
<tr>
<td><a href="nodejs-green.eps">Node.js bright EPS</a></td>
<td><a href="nodejs-black.eps">Node.js 1 color EPS</a></td>
<td><a href="http://nodejs.org/images/logos/nodejs-green.eps">Node.js bright EPS</a></td>
<td><a href="http://nodejs.org/images/logos/nodejs-black.eps">Node.js 1 color EPS</a></td>
</tr>
</table>
<h2>Desktop Background</h2>
<p><img src="monitor.png" width="525" height="398" alt="Screensavers"></p>
<p>Select your screen resolution:<a href="nodejs-1024x768.png"><br>
<span class="desktops">1024 x 768</span></a><span class="desktops"> | <a href="nodejs-1280x1024.png">1280 x 1024</a> | <a href="nodejs-1440x900.png">1440 x 900</a> | <a href="nodejs-1920x1200.png">1920 x 1200</a> | <a href="nodejs-2560x1440.png">2560 x 1440</a></span></p>
<p><img src="http://nodejs.org/images/logos/monitor.png" width="525" height="398" alt="Screensavers"></p>
<p>Select your screen resolution:<a href="http://nodejs.org/images/logos/nodejs-1024x768.png"><br>
<span class="desktops">1024 x 768</span></a><span class="desktops"> | <a href="http://nodejs.org/images/logos/nodejs-1280x1024.png">1280 x 1024</a> | <a href="http://nodejs.org/images/logos/nodejs-1440x900.png">1440 x 900</a> | <a href="http://nodejs.org/images/logos/nodejs-1920x1200.png">1920 x 1200</a> | <a href="http://nodejs.org/images/logos/nodejs-2560x1440.png">2560 x 1440</a></span></p>

</div>
</div>
Expand Down
36 changes: 18 additions & 18 deletions doc/pipe.css
Expand Up @@ -67,7 +67,7 @@ h1 a, h2 a, h3 a, h4 a
color: #d2d8ba;

/* preload platform-icons.png */
background-image: url(platform-icons.png);
background-image: url(http://nodejs.org/images/platform-icons.png);
background-repeat: no-repeat;
background-position: -999em -999em;
}
Expand Down Expand Up @@ -240,15 +240,15 @@ h1 a, h2 a, h3 a, h4 a
line-height: 23px;
}

#column2.interior li a.home { background: url(icons-interior.png) no-repeat -156px 3px; }
#column2.interior li a.download { background: url(icons-interior.png) no-repeat -156px -21px; }
#column2.interior li a.about { background: url(icons-interior.png) no-repeat -156px -44px; }
#column2.interior li a.npm { background: url(icons-interior.png) no-repeat -156px -69px; }
#column2.interior li a.docs { background: url(icons-interior.png) no-repeat -156px -93px; }
#column2.interior li a.blog { background: url(icons-interior.png) no-repeat -156px -117px; }
#column2.interior li a.community { background: url(icons-interior.png) no-repeat -156px -141px; }
#column2.interior li a.logos { background: url(icons-interior.png) no-repeat -156px -165px; }
#column2.interior li a.jobs { background: url(icons-interior.png) no-repeat -156px -189px; }
#column2.interior li a.home { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px 3px; }
#column2.interior li a.download { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -21px; }
#column2.interior li a.about { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -44px; }
#column2.interior li a.npm { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -69px; }
#column2.interior li a.docs { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -93px; }
#column2.interior li a.blog { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -117px; }
#column2.interior li a.community { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -141px; }
#column2.interior li a.logos { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -165px; }
#column2.interior li a.jobs { background: url(http://nodejs.org/images/icons-interior.png) no-repeat -156px -189px; }

#column2.interior li a.home.current { background-position: 2px 3px; }
#column2.interior li a.download.current { background-position: 2px -21px; }
Expand Down Expand Up @@ -285,7 +285,7 @@ h1 a, h2 a, h3 a, h4 a
}

#column2.interior p.twitter a {
background: url(twitter-bird.png) no-repeat 0 4px;
background: url(http://nodejs.org/images/twitter-bird.png) no-repeat 0 4px;
padding-left: 37px;
}

Expand All @@ -303,7 +303,7 @@ h1 a, h2 a, h3 a, h4 a
color: white;
text-transform: none;
font-family: Georgia, FreeSerif, Times, serif;
background: url(community-icons.png) no-repeat;
background: url(http://nodejs.org/images/community-icons.png) no-repeat;
padding-left: 45px;
padding-top: 6px;
padding-bottom: 10px;
Expand Down Expand Up @@ -333,7 +333,7 @@ h1 a, h2 a, h3 a, h4 a
}

#explore {
background: url(home-icons.png) no-repeat left 17px;
background: url(http://nodejs.org/images/home-icons.png) no-repeat left 17px;
}

#explore li {
Expand Down Expand Up @@ -412,7 +412,7 @@ h1 a, h2 a, h3 a, h4 a
}

#footer ul {
background: url(footer-logo.png) left 17px no-repeat;
background: url(http://nodejs.org/images/footer-logo.png) left 17px no-repeat;
border-top: 1px solid #626557;
border-color:#90918b;
padding-top:23px;
Expand All @@ -421,7 +421,7 @@ h1 a, h2 a, h3 a, h4 a
margin-right:137px;
}
.alt #footer ul {
background-image: url(footer-logo-alt.png);
background-image: url(http://nodejs.org/images/footer-logo-alt.png);
}

#footer ul li {
Expand Down Expand Up @@ -450,7 +450,7 @@ h1 a, h2 a, h3 a, h4 a
}

#footer ul li a.twitter {
background: url(twitter-bird.png) no-repeat 5px 0px;
background: url(http://nodejs.org/images/twitter-bird.png) no-repeat 5px 0px;
padding-left: 25px;
}

Expand Down Expand Up @@ -482,7 +482,7 @@ div#download:target {
}

#download-close {
background: url(close-downloads.png) no-repeat top right;
background: url(http://nodejs.org/images/close-downloads.png) no-repeat top right;
width: 64px;
height: 64px;
position: absolute;
Expand All @@ -496,7 +496,7 @@ div#download ul#installers {
width: 550px;
text-align: center;
margin: 0 auto;
background: url(platform-icons.png) no-repeat top center;
background: url(http://nodejs.org/images/platform-icons.png) no-repeat top center;
padding-top: 65px;
padding-bottom: 50px;
}
Expand Down
Binary file removed doc/platform-icons.png
Diff not rendered.
2 changes: 1 addition & 1 deletion doc/template.html
Expand Up @@ -10,7 +10,7 @@
<body class="alt apidoc">
<div id="intro" class="interior">
<a href="/" title="Go back to the home page">
<img id="logo" src="assets/logo-light.png" alt="node.js">
<img id="logo" src="http://nodejs.org/images/logo-light.png" alt="node.js">
</a>
</div>
<div id="content" class="clearfix">
Expand Down
Binary file removed doc/twitter-bird.png
Diff not rendered.

0 comments on commit a7af84f

Please sign in to comment.