Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
ce60d23
Initial commit of CSS refactor, revisions for v1.0.0
kennethormandy Jan 21, 2016
af8f280
Adds CSS reduction test
kennethormandy Jan 21, 2016
a4ccf4b
Updates JS to Browserify
kennethormandy Jan 21, 2016
a1c7125
Adds condition for AppCache
kennethormandy Jan 21, 2016
195b28d
Removes some script tags
kennethormandy Jan 21, 2016
9783201
Adds link to author partial
kennethormandy Jan 21, 2016
f4d2000
Updates newsletter partials
kennethormandy Jan 21, 2016
c8a007f
Updates some scroll-to-footer nav
kennethormandy Jan 21, 2016
e03d936
Updates nav link colours
kennethormandy Jan 21, 2016
0c0c6b6
Changes blog index link size
kennethormandy Jan 21, 2016
d256be9
Adds hr styles
kennethormandy Jan 21, 2016
cf54d00
Adds some input styling overrides
kennethormandy Jan 21, 2016
69b961e
Updates h1 font weight
kennethormandy Jan 21, 2016
42703d7
Adds full-width images by default
kennethormandy Jan 21, 2016
768b3d2
Updates purple colour
kennethormandy Jan 21, 2016
d68ef6a
Adds state styles
kennethormandy Jan 21, 2016
ec48ee3
Adds syntax highlighting styles
kennethormandy Jan 21, 2016
50f52c4
Removes some old content from the getting started guide
kennethormandy Jan 21, 2016
490f86a
Improves GitHub fork overlay
kennethormandy Jan 21, 2016
a66c2fc
Updates to prerelease of Harp
kennethormandy Jan 21, 2016
f63470b
Inlines core scripts
kennethormandy Jan 21, 2016
fa808af
Adds docs table of contents for various screen sizes
kennethormandy Jan 21, 2016
cec343c
Improves partial names, placement
kennethormandy Jan 22, 2016
67ed5a5
Adds better state classes for docs ToC
kennethormandy Jan 22, 2016
61acc17
Adds JS class check to core JS file
kennethormandy Jan 22, 2016
4243f5a
Move stand-alone script to index.js
kennethormandy Jan 22, 2016
3033cb3
Fixes video scaling
kennethormandy Jan 22, 2016
398f5ff
Adds background to active nav tab
kennethormandy Jan 22, 2016
97f188d
Fixes minor spacing issues
kennethormandy Jan 22, 2016
09be3bb
Fixes hover opacity
kennethormandy Jan 22, 2016
564f369
Fixes max width
kennethormandy Jan 22, 2016
15ce1de
Updates update instructions
kennethormandy Jan 22, 2016
995d589
Fixes docs sidebar size
kennethormandy Jan 22, 2016
45800b3
Adds initial structure to “Who’s using Harp” section
kennethormandy Jan 22, 2016
74ac0a6
Fixes video wrapper markup
kennethormandy Jan 22, 2016
f068691
Updates author profile image size
kennethormandy Jan 23, 2016
f4bfa43
Fixes nav columns, changes font weight
kennethormandy Jan 23, 2016
787ab8e
Adds user-select module
kennethormandy Jan 23, 2016
fd118a5
Updates default font weight
kennethormandy Jan 23, 2016
56e9302
Updates size of smallest breakpoint
kennethormandy Jan 23, 2016
4eb05b1
Fixes lead paragraph in “The Rules”
kennethormandy Jan 23, 2016
9ebc75d
Adds npm example images
kennethormandy Jan 23, 2016
e066670
Adds Angular logo
kennethormandy Jan 23, 2016
c482ad8
Adds Huge Inc. logo
kennethormandy Jan 23, 2016
6926d1d
Adds npm logo
kennethormandy Jan 23, 2016
9b7efa7
Updates landing page
kennethormandy Jan 23, 2016
aea2c8a
Updates dependencies and run scripts
kennethormandy Jan 26, 2016
1acb2e0
Adds pricing page
kennethormandy Jan 26, 2016
78006ab
Updates primary navigation
kennethormandy Jan 26, 2016
e34aaf6
Updates blog CTA and next-prev
kennethormandy Jan 26, 2016
a95ec4c
Updates landing page content
kennethormandy Jan 26, 2016
1c79a5b
Improves Open Graph metadata
kennethormandy Jan 26, 2016
4b0bd8b
Adds gutters to footer
kennethormandy Jan 26, 2016
68257c4
Updates footer spacing
kennethormandy Jan 26, 2016
6166b19
Adds Recipes to main docs and table of contents
kennethormandy Jan 26, 2016
d40c9a2
Updates landing page with preprocessor logos, OS placeholders, etc.
kennethormandy Jan 26, 2016
4b0f384
Adds placeholder docs for operating systems
kennethormandy Jan 26, 2016
822d390
Adds placeholder docs for converting metadata
kennethormandy Jan 26, 2016
4de584b
Fixes blockquote outside of articles
kennethormandy Jan 26, 2016
ece699f
Updates index page with more features of Harp
kennethormandy Jan 26, 2016
4a277d4
Fixes some margin and padding issues on small screens
kennethormandy Mar 1, 2016
2ff4f77
Adds hover module
kennethormandy Mar 1, 2016
0431428
Removes CoffeeScript logo from repo
kennethormandy Mar 1, 2016
a37f009
Updates landing page
kennethormandy Mar 1, 2016
55b1149
Adds basic boilerplates page
kennethormandy Mar 1, 2016
1804ea1
Updates landing page with basic animated waves
kennethormandy Mar 1, 2016
658261b
Adds missing vendor file
kennethormandy Mar 1, 2016
e1eb92e
Improves and simplifies spacing across breakpoints
kennethormandy Mar 3, 2016
768b566
Removes unneeded reference to sine-waves in main JS file
kennethormandy Mar 3, 2016
18dd438
Removes unnecessary LESS files
kennethormandy Mar 3, 2016
bdbec97
Removes unnecessary nest file
kennethormandy Mar 3, 2016
89c2095
Fixes community page layout
kennethormandy Mar 3, 2016
37141d8
Revises identity guide
kennethormandy Mar 3, 2016
decfbdf
Adds white nav to identity page
kennethormandy Mar 3, 2016
8f902da
Fixes nav alignment
kennethormandy Mar 3, 2016
d592c1f
Fixes missing nest partial
kennethormandy Mar 3, 2016
5440dfb
Fixes nav on identity
kennethormandy Mar 3, 2016
5a549fd
Fixes nav getting covered by canvas
kennethormandy Mar 3, 2016
8a51d5a
Fixes AppCache in development
kennethormandy Mar 5, 2016
07f7211
Adds TODO docs pages for specific platforms
kennethormandy Mar 5, 2016
31d3515
Updates landing page to remove unfinished content
kennethormandy Mar 5, 2016
5cb9393
Fixes some console errors
kennethormandy Mar 5, 2016
2aabc6e
Adds font loading status to session storage
kennethormandy Mar 5, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "harpjs.com",
"version": "0.0.0",
"version": "1.0.0-beta",
"description": "The website for Harp, the static web server with built-in preprocessing.",
"homepage": "http://harpjs.com",
"private": true,
Expand All @@ -27,13 +27,28 @@
"coffeescript"
],
"scripts": {
"test": "echo \"Error: no test specified…yet! Pull requests on harp/harpjs.com are always appriciated.\"",
"start": "harp server",
"compile": "harp compile",
"deploy": "npm run compile && surge ./www harpjs.com"
"test": "mocha",
"start": "harp ./",
"compile": "harp ./ www",
"deploy": "npm run compile && surge ./www next.harpjs.com"
},
"dependencies": {
"basscss-sass": "3.0.0",
"fg-loadcss": "0.2.4",
"fontfaceobserver": "1.6.3",
"normalize.css": "3.0.3",
"preprocessor-logos": "git://github.com/chloi/preprocessor-logos.git#73498016cb0750692c9df3f555deb307b5f3fa17",
"sine-waves": "git://github.com/isuttell/sine-waves.git#abbb074e269d2fb29fb5dd23ed2a07cce8829367",
"smoothscroll": "0.2.2",
"utility-opentype": "0.1.3"
},
"devDependencies": {
"harp": "0.20.0",
"surge": "latest"
"cssstats": "2.1.2",
"harp": "sintaxi/harp#cli-surge-test",
"mocha": "2.3.4",
"numeral": "1.5.3",
"should": "8.1.1",
"surge": "latest",
"utility-opentype": "0.1.3"
}
}
11 changes: 11 additions & 0 deletions public/404.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
h1 404 – Page Not Found

p Page not found, sorry! On the plus side, this 404 page was really easy to make using Harp. Read about it <a href="/docs/development/rules">here</a>.

h1 Search the documentation

p Try searching the full Harp documentation for what you’re after:

p!= partial("_shared/search")

p Review the full <a href="/docs">docs</a>, or <a href="https://twitter.com/harpjs">message us on Twitter</a> about what you’re after.
5 changes: 0 additions & 5 deletions public/404.md

This file was deleted.

4 changes: 3 additions & 1 deletion public/_ROUTER
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
301 /quick-start /docs/quick-start
301 /quick-start /docs/quick-start
301 /docs/deployment/harp-platform /docs/deployment/harp-pro
301 /recipes /docs/recipes
9 changes: 8 additions & 1 deletion public/_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@
},
"blog": {
"title": "Blog",
"description": "Updates, articles and a focus on the community around Harp, the static web server with built-in preprocessing."
"description": "Updates, articles and a focus on the community around Harp, the static web server with built-in preprocessing.",
"knockout": false
},
"community": {
"title": "Community",
"description": "Join the Harp community."
},
"sitemap": {
"layout":false
},
"identity": {
"knockout": false
},
"pricing": {
"knockout":false
}
}
86 changes: 68 additions & 18 deletions public/_layout.jade
Original file line number Diff line number Diff line change
@@ -1,20 +1,46 @@
- var c = Array.prototype.slice.call(current.path).reverse()
- var p = public._data[c[current.path.length - 1]] || {}

doctype
//[if lt IE 8]><html lang="en" class="ie"><![endif]
//[if gt IE 8]><!
html(manifest="/auto.appcache" lang="en")
if environment === 'production'
<html manifest="/auto.appcache" lang="en">
else
<html lang="en">
//<![endif]
head
meta(charset="utf-8")
//- Show specific page title, name, and tagline. If the full title is more than 70 chars, omit the tagline
title !{ title !== name ? title + ' &ndash; ' : '' }#{ name }#{ (title.length + name.length + tagline.length) >= 70 ? '' : ', ' + tagline.toLowerCase() }
!= partial("_shared/webfonts")
link(rel="stylesheet" href="/css/application.css" type="text/css")
link(rel="stylesheet" href="/css/index.css" type="text/css")
//- link(rel="shortcut icon" href="/favicon.ico")
link(rel="apple-touch-icon" href="apple-touch-icon.png")

link(rel="alternate" type="application/rss+xml" href="/blog/feed.xml" title="#{ name }")
meta(name="description" content!=description)
meta(name="author" content="#{ author }")

meta(name="og:url" content="#{ url }")
meta(name="og:title" content="#{ title }")
meta(name="og:description" content="#{ description }")
meta(name="og:site_name" content="#{ name }")
if author || c[current.path.length - 1] === 'docs'
meta(name="og:type" content="article")
if author.name
meta(name="article:author" content="#{ author.name }")
if author.twitter
meta(name="twitter:creator" content="@#{ author.twitter }")
meta(name="twitter:site" content="@#{ service.twitter }")
meta(name="twitter:card" content="summary_large_image")
if og && og.image
meta(name="og:image" content="#{ url }#{ og.image }")
meta(name="twitter:image:src" content="#{ url }#{ og.image }")
else
meta(name="og:image" content="#{ url }/images/og-image.png")
meta(name="twitter:image:src" content="#{ url }/images/og-image.png")

meta(name="handheldfriendly" content="true")
meta(name="mobileoptimized" content="320")
meta(name="viewport" content="width=device-width, initial-scale=1.0")
Expand All @@ -25,20 +51,44 @@ html(manifest="/auto.appcache" lang="en")
meta(http-equiv="X-UA-Compatible" content="IE=edge,chrome=1")
meta(http-equiv="cleartype" content="on")

body
//- pre= JSON.stringify(current, null, 2)
if current.source === 'index' && current.path.length === 1
a.github-fork(href="https://github.com/sintaxi/harp")
img(src="/images/github-ribbon.png", alt="Star Harp on GitHub")
.st-container
.st-pusher
//-
This should get replaces with a post-Browserify partial
once Harp can do that (inline pre-compiled files)
<script>
include ../node_modules/fg-loadcss/loadCSS.js
include ./js/core.js
</script>

//- Match overflow scroll background colour to nav
body(class="#{ p.knockout === false ? 'bg-white' : 'bg-blue' }")
.bg-white
if current.path[current.path.length - 1] === 'index'
//- If it’s an index template, show it.
//- If it’s a page in the root, wrap it in _nest.jade
//- If it’s a page in a folder, wrap it in that folder’s nest
if current.path[current.path.length - 1] === 'index' || current.path[current.path.length - 1] === 'zerty'
!= yield
else if current.path.length === 1
!= partial("/_nest.jade", { yield: yield })
else
!= partial(current.path[0] + "/_nest.jade", { yield: yield })
!= partial("_shared/footer")
.clearfix!= yield
else
//- Otherwise, wrap it in _nest.jade
!= partial("_shared/nav", { "knockout": p.knockout })
.container.p2.clearfix
if current.path.length === 1
!= partial("/_nest.jade", { yield: yield })
else
!= partial(current.path[0] + "/_nest.jade", { yield: yield })

.container.p2.clearfix
!= partial("_shared/footer")

script(src="/js/index.js")
//- script.
//- !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
script.
//<![CDATA[
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', '#{ service.analytics }', 'harpjs.com');
ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview');
//]]>
</html>
8 changes: 1 addition & 7 deletions public/_nest.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
!= partial("_shared/nav/nav", { "classes": "jumbotron-knockout" })
.st-content#st-content
!= partial("_shared/nav/navbar", { "classes": "jumbotron-knockout" })
!= partial("_shared/search")
.container.st-content-inner
article.col-12.col-lg-10
!= yield
!= yield
11 changes: 0 additions & 11 deletions public/_shared/analytics.jade

This file was deleted.

6 changes: 6 additions & 0 deletions public/_shared/author.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.clearfix.flex.flex-center.mxn1
if author.twitter
a.px1.border-none(href="http://twitter.com/#{ author.twitter }")
img.circle.center.bg-gray(src="https://avatars.io/twitter/#{ author.twitter }/medium" style="width: 3rem; height: 3rem")
.px1
span.gray #{ url ? 'External post by' : 'By' } <a href="http://twitter.com/#{ author.twitter }">#{ author.name }</a> on #{ date }
19 changes: 19 additions & 0 deletions public/_shared/blog-nav.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- var blog = []
for entry, slug in public["blog"]._data
if entry.date && entry.published===true && typeof entry.url === 'undefined'
- entry.slug = slug
- blog.push(public["blog"]._data[slug])

for entry, i in blog.sort(function(a,b){ a = new Date(a.date); b = new Date(b.date); return b>a?-1:b<a?1:0; }).slice(0, postlimit)
if entry.slug == current.source
//- Previous is one before this array item
//- Next is one after
//- Variables make it easy to template
- prev = blog[i - 1]
- next = blog[i + 1]
//- The actual links
ol.clearfix.mxn2
if prev
a.border-none.col.col-6.col-left.p2.left-align(href="#{ prev.slug }")= prev.title
if next
a.border-none.col.col-6.col-right.p2.right-align(href="#{ next.slug }")= next.title
4 changes: 0 additions & 4 deletions public/_shared/closing.jade

This file was deleted.

11 changes: 0 additions & 11 deletions public/_shared/cse.jade

This file was deleted.

64 changes: 30 additions & 34 deletions public/_shared/footer.jade
Original file line number Diff line number Diff line change
@@ -1,39 +1,35 @@
footer.footer.container
.col-12.col-lg-4.list-group
h3.list-group-item Latest Articles
- i = 0
for article, slug in public.blog._data
if article.published == true && !article.url
- i++
if i <= 5
a.list-group-item.list-group-underlined(href="/blog/#{ slug }")
!= article.title
if i == 1
span.badge new
footer.footer.clearfix.py4

.col-12.col-lg-4.list-group
h3.list-group-item Everything Harp
a(href="/docs").list-group-item.list-group-underlined Documentation
a(href="/docs/quick-start").list-group-item.list-group-underlined Quick Start
a(href="/recipes").list-group-item.list-group-underlined Recipes
a(href="/community").list-group-item.list-group-underlined Community
a(href="/identity").list-group-item.list-group-underlined Identity Guide
a(href="/blog").list-group-item.list-group-underlined Blog
#nav.is-target.md-is-transparent.col.col-12.md-col-4
h3 Everything Harp
ol.block.h4.md-h5.list-reset.mxn2
li: a.p2.border-none.block(href="/docs") Documentation
li: a.p2.border-none.block(href="/docs/quick-start") Quick Start
li: a.p2.border-none.block(href="/recipes") Recipes
li: a.p2.border-none.block(href="/community") Community
li: a.p2.border-none.block(href="/boilerplates") Boilerplates
li: a.p2.border-none.block(href="/identity") Identity Guide
li: a.p2.border-none.block(href="/blog") Blog

.col-12.col-lg-4.list-group
h3.list-group-item The Harp Newsletter
.list-group-item!= partial("../_shared/newsletter")
.col.col-12.md-col-4
h3 Latest Articles
- i = 0
for article, slug in public.blog._data
if article.published == true && !article.url
- i++
if i <= 5
a.py1.border-none.block(href="/blog/#{ slug }")
!= article.title
if i == 1
span.ml1.purple new

h3.list-group-item Connect with Harp
.list-group-item
iframe(src="http://ghbtns.com/github-btn.html?user=sintaxi&repo=harp&type=watch&count=true&size=large", allowtransparency="true", frameborder="0", scrolling="0", width="100%", height="30px")
a(href="https://twitter.com/HarpWebServer", class="twitter-follow-button", data-show-count="false", data-lang="en", data-size="large") Follow @HarpWebServer
a.list-group-item.icon-irc(href="irc://irc.freenode.net/harp") Chat in ##{ service.irc.toLowerCase() } on IRC

.col.col-12.md-col-4
h3 The Harp Newsletter
!= partial("../_shared/newsletter")

!= partial("nav/nav", { "id": "navigation", "classes": "st-menu--fallback jumbotron" })
script(src="/js/application.js")
script(src="/js/prism.js")
script.
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
!= partial("analytics")
h3 Connect with Harp
.py1.border-none.block
iframe(src="http://ghbtns.com/github-btn.html?user=sintaxi&repo=harp&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="100%" height="30px")
a.py1.border-none.block(href="https://twitter.com/HarpWebServer" class="twitter-follow-button" data-show-count="false" data-lang="en" data-size="large") Follow @HarpWebServer
a.py1.border-none.block(href="irc://irc.freenode.net/harp") Chat in ##{ service.irc.toLowerCase() } on IRC
18 changes: 18 additions & 0 deletions public/_shared/nav.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//- This is the top level nav,
ie. Docs, Blog, FAQ, Community, Source,
which are all are pulled from the corresponding data.json.

nav.clearfix.relative(role="navigation" class="#{ knockout === false ? 'bg-white' : 'bg-blue' }" style="z-index: 1")
.container.flex.flex-center.p1.md-p2.mxn2
.flex-auto.px2.flex
a.block.left.border-none(href="/" style="max-width: 5.5em")
img.block.mx-auto(src="/images/wordmark#{ knockout === false ? '-dark' : '' }.svg" alt="#{ name }" style="height: 2.5em")
.h6.md-h5.px2.flex.flex-center(class="#{ knockout === false ? 'gray' : 'teal' }")
a.btn.regular.p1.border-none.md-show-inline.flex-auto(href="/docs") Documentation
a.btn.regular.p1.border-none.md-show-inline.flex-auto(href="/blog") Blog
a.btn.regular.p1.border-none.lg-show-inline.flex-auto(href="/community") Commmunity
a.btn.regular.p1.border-none.md-show-inline.flex-auto(href="https://github.com/sintaxi/harp") GitHub
a.btn.regular.p1.border-none.md-show-inline.flex-auto(href="/pricing") Pricing
a.btn.p2.border-none.center.inline.col.col-12.md-col-auto.col-right.bg-maroon.rounded.md-ml2(href="/docs/quick-start")
span.white Quick Start
a.btn.regular.p2.md-p1.border-none.md-hide.inline-block.col-12(href="#nav") More…
41 changes: 0 additions & 41 deletions public/_shared/nav/nav.jade

This file was deleted.

Loading