From 62d7e3da9176bbc0623ba09c2b94954c6bded684 Mon Sep 17 00:00:00 2001 From: Alex Wolfe Date: Sat, 28 Feb 2015 16:35:18 -0800 Subject: [PATCH] added latests folder and logic to docs --- public/_includes/_cta-bar.jade | 2 +- public/_includes/_hero-home.jade | 2 +- public/_includes/_main-nav.jade | 2 +- public/_layout.jade | 2 +- public/docs/js/latest/_data.json | 21 +++++++++++++++++++++ public/docs/js/latest/api.jade | 1 + public/docs/js/latest/help.jade | 1 + public/docs/js/latest/index.jade | 20 ++++++++++++++++++++ public/docs/js/latest/quickstart.jade | 3 +++ public/docs/js/latest/resources.jade | 1 + public/index.jade | 10 +++++----- 11 files changed, 56 insertions(+), 9 deletions(-) create mode 100644 public/docs/js/latest/_data.json create mode 100644 public/docs/js/latest/api.jade create mode 100644 public/docs/js/latest/help.jade create mode 100644 public/docs/js/latest/index.jade create mode 100644 public/docs/js/latest/quickstart.jade create mode 100644 public/docs/js/latest/resources.jade diff --git a/public/_includes/_cta-bar.jade b/public/_includes/_cta-bar.jade index e28f1f0971..58dcf8812b 100644 --- a/public/_includes/_cta-bar.jade +++ b/public/_includes/_cta-bar.jade @@ -1,3 +1,3 @@ .cta-bar - a(href="/docs/quickstart.html" class="button button-large button-shield md-raised md-primary" md-button) Learn in 5 Min + a(href="/docs/js/latest/quickstart.html" class="button button-large button-shield md-raised md-primary" md-button) Learn in 5 Min a(href="download.html" class="button button-large button-secondary" md-button) Download diff --git a/public/_includes/_hero-home.jade b/public/_includes/_hero-home.jade index d0ce07055d..aa9c685ee0 100644 --- a/public/_includes/_hero-home.jade +++ b/public/_includes/_hero-home.jade @@ -3,7 +3,7 @@ header(class="background-sky") h1.text-headline.hero-logo #{title} .hero-cta - a(href="/docs/quickstart.html" class="md-raised button button-large button-plain" md-button) Learn in 5 mins + a(href="/docs/js/latest/quickstart.html" class="md-raised button button-large button-plain" md-button) Learn in 5 mins a(href="/download.html" class="button button-large button-navy" md-button) Download != partial("_social-icons") diff --git a/public/_includes/_main-nav.jade b/public/_includes/_main-nav.jade index 7d9dea3679..a2a83754b3 100644 --- a/public/_includes/_main-nav.jade +++ b/public/_includes/_main-nav.jade @@ -4,7 +4,7 @@ md-toolbar(class="main-nav background-regal l-pinned-top l-layer-5") ul li Features - li Docs + li Docs li About li Contribute a(class="cta main-nav-button has-icon" href="/download.html" md-button) Download \ No newline at end of file diff --git a/public/_layout.jade b/public/_layout.jade index f94acda735..775dc134b6 100644 --- a/public/_layout.jade +++ b/public/_layout.jade @@ -1,5 +1,5 @@ doctype -html(lang="en" layout="column" ng-app="myApp") +html(lang="en" ng-app="myApp") head != partial("/_includes/_head-include") diff --git a/public/docs/js/latest/_data.json b/public/docs/js/latest/_data.json new file mode 100644 index 0000000000..cfdd90e9df --- /dev/null +++ b/public/docs/js/latest/_data.json @@ -0,0 +1,21 @@ +{ + "index": { + "title": "Angular Docs" + }, + + "quickstart": { + "title": "5 Min Quickstart" + }, + + "resources": { + "title": "Angular Resources" + }, + + "api": { + "title": "API Proposal" + }, + + "help": { + "title": "Help & Support" + } +} \ No newline at end of file diff --git a/public/docs/js/latest/api.jade b/public/docs/js/latest/api.jade new file mode 100644 index 0000000000..139f0460fa --- /dev/null +++ b/public/docs/js/latest/api.jade @@ -0,0 +1 @@ +H1 API \ No newline at end of file diff --git a/public/docs/js/latest/help.jade b/public/docs/js/latest/help.jade new file mode 100644 index 0000000000..f167aa05e6 --- /dev/null +++ b/public/docs/js/latest/help.jade @@ -0,0 +1 @@ +h1 Help & Support \ No newline at end of file diff --git a/public/docs/js/latest/index.jade b/public/docs/js/latest/index.jade new file mode 100644 index 0000000000..acb2d94ebc --- /dev/null +++ b/public/docs/js/latest/index.jade @@ -0,0 +1,20 @@ + +div.c4 + md-card + md-card-content + h2 Paracosm + p he titles of Washed Out's breakthrough song and the first single from Paracosm share the * two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well... + + +div.c4 + md-card + md-card-content + h2 Paracosm + p he titles of Washed Out's breakthrough song and the first single from Paracosm share the * two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well... + + +div.c4 + md-card + md-card-content + h2 Paracosm + p he titles of Washed Out's breakthrough song and the first single from Paracosm share the * two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well... diff --git a/public/docs/js/latest/quickstart.jade b/public/docs/js/latest/quickstart.jade new file mode 100644 index 0000000000..4095a11d3f --- /dev/null +++ b/public/docs/js/latest/quickstart.jade @@ -0,0 +1,3 @@ +h1 JavaScript Quickstart + +!= partial("../_quickstart", public.docs.js._data) diff --git a/public/docs/js/latest/resources.jade b/public/docs/js/latest/resources.jade new file mode 100644 index 0000000000..9516dd6160 --- /dev/null +++ b/public/docs/js/latest/resources.jade @@ -0,0 +1 @@ +h1 resources \ No newline at end of file diff --git a/public/index.jade b/public/index.jade index 4122280306..f41ba8784f 100644 --- a/public/index.jade +++ b/public/index.jade @@ -1,7 +1,7 @@ .grid-fluid.l-space-bottom-8 .c7 h3.text-headline Build Incredible Applications - p.text-body Angular is a development platform for creating applications using modern web standards. Angular includes a wealth of essential features such as mobile gestures, animations, filtering, routing, data binding, security, internationalization, and beautiful UI components. It's extremely modular, lightweight, and easy to learn. + p.text-body Angular is a development platform for creating applications using modern web standards. Angular includes a wealth of essential features such as mobile gestures, animations, filtering, routing, data binding, security, internationalization, and beautiful UI components. It's extremely modular, lightweight, and easy to learn. .c5.text-center img(src="/resources/images/logos/html5/html5.png") @@ -9,7 +9,7 @@ .grid-fluid.l-space-bottom-8 .c7 h3.text-headline Start Quick, Build Fast - p.text-body Express your ideas with clean, understandable code. Angular is simple to build on, easy to change, and friendly to the way UX designers work. Create a UI that is beautiful by default, with material design and support for web components. Angular takes just minutes to learn. + p.text-body Express your ideas with clean, understandable code. Angular is simple to build on, easy to change, and friendly to the way UX designers work. Create a UI that is beautiful by default, with material design and support for web components. Angular takes just minutes to learn. .c5 p(data-height="224" data-theme-id="12714" data-slug-hash="pvKKQa" data-default-tab="html" data-user="alexwolfe" class='codepen') script(async src="//assets.codepen.io/assets/embed/ei.js") @@ -17,14 +17,14 @@ .grid-fluid.l-space-bottom-8 .c7 h3.text-headline Open Source & MIT Licensed - p.text-body Angular is built by you, for you. Our community shapes Angular's direction: core contributions come from big companies and small ones, from students and independent experts. We do our work in the open so that you can help Angular improve, or extend and modify what we've built. + p.text-body Angular is built by you, for you. Our community shapes Angular's direction: core contributions come from big companies and small ones, from students and independent experts. We do our work in the open so that you can help Angular improve, or extend and modify what we've built. .c5.text-center img(src="/resources/images/logos/license/mit.png") .grid-fluid.text-center - .c8.a2.b2 + .c12 h3.text-headline Loved by Millions of Developers - p.text-body Join millions of devs who use Angular. Ramp up in minutes, and build an app today. + p.text-body Join millions of developers who use Angular. Ramp up in minutes, and build an app today. != partial("/_includes/_cta-bar") \ No newline at end of file