Skip to content

Commit 9e957d4

Browse files
committed
Initial commit
0 parents  commit 9e957d4

123 files changed

Lines changed: 2781 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.DS_Store
3+
api.html
4+
index.html

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
expressjs.com

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
JADE = ./node_modules/.bin/jade
3+
4+
HTML = index.html \
5+
api.html \
6+
guide.html \
7+
applications.html \
8+
community.html \
9+
faq.html
10+
11+
docs: $(HTML)
12+
13+
%.html: %.jade
14+
$(JADE) --path $< < $< > $@
15+
16+
clean:
17+
rm -f *.html
18+
19+
.PHONY: docs clean

Readme.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
# ExpressJS.com
3+
4+
The site for Express.
5+
6+
## Building
7+
8+
Setup:
9+
10+
```
11+
$ npm install -g serve
12+
$ npm install
13+
$ make
14+
$ serve . &
15+
$ open http://localhost:3000
16+
```
17+
18+
then rebuild changes with:
19+
20+
```
21+
$ make
22+
```
23+
24+
## Contributing
25+
26+
- __dont__ edit the HTML directly, edit the _jade_.

api.jade

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
!!! 5
2+
html
3+
head
4+
title Express - api reference
5+
include includes/head
6+
body.inner
7+
.bar
8+
section#content
9+
header
10+
include includes/logo
11+
active = '/api.html'
12+
include includes/menu
13+
14+
include includes/mixins
15+
16+
include en/api/menu
17+
18+
#right
19+
include en/api/express
20+
21+
h2 Application
22+
a(name='application')
23+
include en/api/app
24+
25+
h2 Request
26+
a(name='request')
27+
include en/api/req
28+
29+
h2 Response
30+
a(name='response')
31+
include en/api/res
32+
33+
include includes/footer

app.js

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
2+
o = $;
3+
4+
// misc junk
5+
6+
o(function(){
7+
var width = window.innerWidth;
8+
var height = window.innerHeight;
9+
var doc = o(document);
10+
11+
// .onload
12+
o('html').addClass('onload');
13+
14+
// top link
15+
o('#top').click(function(e){
16+
o('body').animate({ scrollTop: 0 }, 'fast');
17+
e.preventDefault();
18+
});
19+
20+
// scrolling links
21+
var added;
22+
doc.scroll(function(e){
23+
if (doc.scrollTop() > 5) {
24+
if (added) return;
25+
added = true;
26+
o('body').addClass('scroll');
27+
} else {
28+
o('body').removeClass('scroll');
29+
added = false;
30+
}
31+
})
32+
33+
// highlight code
34+
o('pre.js code').each(function(){
35+
o(this).html(highlight(o(this).text()));
36+
})
37+
})
38+
39+
// active menu junk
40+
41+
o(function(){
42+
var prev;
43+
var n = 0;
44+
45+
var headings = o('h3').map(function(i, el){
46+
return {
47+
top: o(el).offset().top,
48+
id: el.id
49+
}
50+
});
51+
52+
function closest() {
53+
var h;
54+
var top = o(window).scrollTop();
55+
var i = headings.length;
56+
while (i--) {
57+
h = headings[i];
58+
if (top >= h.top) return h;
59+
}
60+
}
61+
62+
o(document).scroll(function(){
63+
var h = closest();
64+
if (!h) return;
65+
66+
if (prev) {
67+
prev.removeClass('active');
68+
prev.parent().parent().removeClass('active');
69+
}
70+
71+
var a = o('a[href="#' + h.id + '"]');
72+
a.addClass('active');
73+
a.parent().parent().addClass('active');
74+
75+
prev = a;
76+
})
77+
})
78+
79+
/**
80+
* Highlight the given `js`.
81+
*/
82+
83+
function highlight(js) {
84+
return js
85+
.replace(/</g, '&lt;')
86+
.replace(/>/g, '&gt;')
87+
.replace(/\/\/(.*)/gm, '<span class="comment">//$1</span>')
88+
.replace(/('.*?')/gm, '<span class="string">$1</span>')
89+
.replace(/(\d+\.\d+)/gm, '<span class="number">$1</span>')
90+
.replace(/(\d+)/gm, '<span class="number">$1</span>')
91+
.replace(/\bnew *(\w+)/gm, '<span class="keyword">new</span> <span class="init">$1</span>')
92+
.replace(/\b(function|new|throw|return|var|if|else)\b/gm, '<span class="keyword">$1</span>')
93+
}

applications.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html><html><head><title>Express - applications</title><link rel="stylesheet" href="style.css"><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;subset=latin,latin-ext"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script><script src="app.js"></script></head><body class="applications inner"><div class="bar"></div><section id="content"><header><section id="logo"><span class="express">express<em>3.0.0</em></span><span class="description">
2+
web application framework for <a href="http://nodejs.org">node </a></span></section><nav class="clearfix"><a href="/" class=""> Home</a><a href="/api.html" class=""> API Reference</a><a href="/guide.html" class=""> Guide</a><a href="/applications.html" class="active"> Applications</a><a href="/community.html" class=""> Community</a><a href="/faq.html" class=""> FAQ</a></nav><div id="x"></div><div id="y"></div></header><section class="application"><h2>LearnBoost</h2><p>LearnBoost provides a free, easy to use online
3+
online education suite including gradebook,
4+
lesson plans, attendance, reporting, and calendars
5+
among other tools.
6+
</p><div class="link">Visit <a href="https://www.learnboost.com/">LearnBoost</a></div><img src="/images/apps/screenshots/learnboost.small.png"></section><section class="application"><h2>Storify</h2><p>Create stories using social media. Turn what people post
7+
on social media into compelling stories. Collect the best photos, video,
8+
tweets and more to publish
9+
</p><div class="link">Visit <a href="http://storify.com/">Storify</a></div><img src="/images/apps/screenshots/storify.small.png"></section><section class="application"><h2>Geekli.st</h2><p>A place for geeks to share what they've done, who they did it with and
10+
connect with great companies and communities.
11+
</p><div class="link">Visit <a href="http://geekli.st">Geekli.st</a></div><img src="/images/apps/screenshots/geeklist.small.png"></section><section class="application"><h2>Klout</h2><p>Klout is the Standard for Influence. Join Klout to discover your
12+
influence and compare with others you may know.
13+
</p><div class="link">Visit <a href="http://klout.com">Klout</a></div><img src="/images/apps/screenshots/klout.small.png"></section><section class="application"><h2>Prismatic</h2><p>Prismatic learns from how you interact on social networks so that we
14+
can show you the most interesting content and conversation from your friends.
15+
</p><div class="link">Visit <a href="http://getprismatic.com/">Prismatic</a></div><img src="/images/apps/screenshots/prismatic.small.png"></section><section class="application"><h2>Clipboard</h2><p>Clipboard is a powerful tool allowing to save live clips
16+
of your interests on the web, not just static images,
17+
but fully-functional fragments of anything online.
18+
</p><div class="link">Visit <a href="http://clipboard.com/">Clipboard</a></div><img src="/images/apps/screenshots/clipboard.small.png"></section><section class="application"><h2>Persona</h2><p>Persona, or "BrowserID" is Mozilla's answer
19+
to a better identification system for your browser,
20+
this promising tool is definitely worth checking out.
21+
</p><div class="link">Visit <a href="https://login.persona.org/">Persona</a></div><img src="/images/apps/screenshots/browserid.small.png"></section><section class="application"><h2>and more!</h2><p>Shodan search reports that there are well over <strong>26,000</strong> Express applications
22+
in the wild, we can't possibly list them all here, but if you feel
23+
your application helps showcase the framework open an issue on
24+
the <a href="github.com/visionmedia/expressjs.com/issues">github repo</a>.
25+
</p><img src="/images/apps/screenshots/more.small.png"></section></section><a id="top" href="#"><img src="images/arrow.png"></a><footer><div id="footer-content">© 2012 TJ Holowaychuk. All rights reserved.</div></footer></body></html>

applications.jade

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
!!! 5
2+
html
3+
head
4+
title Express - applications
5+
include includes/head
6+
body.applications.inner
7+
.bar
8+
section#content
9+
header
10+
include includes/logo
11+
active = '/applications.html'
12+
include includes/menu
13+
include en/applications
14+
include includes/footer

community.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html><html><head><title>Express - community</title><link rel="stylesheet" href="style.css"><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;subset=latin,latin-ext"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script><script src="app.js"></script></head><body class="community inner"><div class="bar"></div><section id="content"><header><section id="logo"><span class="express">express<em>3.0.0</em></span><span class="description">
2+
web application framework for <a href="http://nodejs.org">node </a></span></section><nav class="clearfix"><a href="/" class=""> Home</a><a href="/api.html" class=""> API Reference</a><a href="/guide.html" class=""> Guide</a><a href="/applications.html" class=""> Applications</a><a href="/community.html" class="active"> Community</a><a href="/faq.html" class=""> FAQ</a></nav><div id="x"></div><div id="y"></div></header><div id="boxes" class="clearfix"><section id="mailing-list"><h3>Mailing List</h3><p>Join over 1500 Express users or browse over 5000
3+
discussions in the <a href="https://groups.google.com/group/express-js">Google Group</a>.
4+
</p></section><section id="irc"><h3>IRC Channel</h3><p>Hundreds of developers idle in #express on freenode every day,
5+
if you have questions about the framework jump in for quick
6+
feedback.
7+
</p></section><section id="examples"><h3>Examples</h3><p>View dozens of Express application <a href="https://github.com/visionmedia/express/tree/master/examples">examples</a>
8+
in the github repository covering everything from API design and authentication
9+
to template engine integration.
10+
</p></section><section id="issues"><h3>Issues</h3><p>If you've come across what you think is a bug, or just want to make
11+
a feature request open a ticket in the <a href="https://github.com/visionmedia/express/issues">issue queue</a>.
12+
</p></section><section id="extending"><h3>Third Party</h3><p>Our vibrant community has created a large variety of extensions,
13+
<a href="https://github.com/senchalabs/connect/wiki">middleware</a>
14+
and higher level frameworks. Check them out in the
15+
<a href="https://github.com/visionmedia/express/wiki">wiki</a>.</p></section></div></section><a id="top" href="#"><img src="images/arrow.png"></a><footer><div id="footer-content">© 2012 TJ Holowaychuk. All rights reserved.</div></footer></body></html>

community.jade

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
!!! 5
2+
html
3+
head
4+
title Express - community
5+
include includes/head
6+
body.community.inner
7+
.bar
8+
section#content
9+
header
10+
include includes/logo
11+
active = '/community.html'
12+
include includes/menu
13+
include en/community
14+
include includes/footer

0 commit comments

Comments
 (0)