From 7d3259533473185fd6eb7b1cc45c01a8ce6d2ce6 Mon Sep 17 00:00:00 2001 From: Arthur Evans Date: Thu, 14 Aug 2014 02:05:00 -0700 Subject: [PATCH] Pull tutorial from the github repo instead of copying into the docs repo. Vulcanize the demo. --- docs/start/tutorial/intro.md | 2 +- docs/start/tutorial/step-4.md | 2 +- samples/tutorial/api/posts.json | 58 ------------ samples/tutorial/finished/index.html | 78 ---------------- samples/tutorial/finished/post-card.html | 65 -------------- samples/tutorial/finished/post-list.html | 41 --------- samples/tutorial/images/avatar-01.svg | 25 ------ samples/tutorial/images/avatar-02.svg | 28 ------ samples/tutorial/images/avatar-03.svg | 89 ------------------- samples/tutorial/images/avatar-04.svg | 38 -------- samples/tutorial/images/avatar-05.svg | 41 --------- samples/tutorial/images/avatar-06.svg | 78 ---------------- samples/tutorial/images/avatar-07.svg | 25 ------ samples/tutorial/images/avatar-08.svg | 29 ------ samples/tutorial/images/avatar-09.svg | 78 ---------------- samples/tutorial/images/avatar-10.svg | 32 ------- samples/tutorial/images/avatar-11.svg | 46 ---------- samples/tutorial/images/avatar-12.svg | 38 -------- samples/tutorial/images/avatar-13.svg | 55 ------------ samples/tutorial/images/avatar-14.svg | 33 ------- samples/tutorial/images/avatar-15.svg | 45 ---------- samples/tutorial/images/avatar-16.svg | 22 ----- samples/tutorial/index-step-1.html | 69 -------------- samples/tutorial/post-service/index.html | 15 ---- .../tutorial/post-service/post-service.html | 89 ------------------- samples/tutorial/step-1/index.html | 74 --------------- samples/tutorial/step-1/post-card.html | 28 ------ samples/tutorial/step-2/index.html | 80 ----------------- samples/tutorial/step-2/post-card.html | 41 --------- samples/tutorial/step-3/index.html | 76 ---------------- samples/tutorial/step-3/post-card.html | 41 --------- samples/tutorial/step-3/post-list.html | 33 ------- scripts/release.sh | 7 ++ scripts/website.json | 9 +- 34 files changed, 17 insertions(+), 1493 deletions(-) delete mode 100644 samples/tutorial/api/posts.json delete mode 100644 samples/tutorial/finished/index.html delete mode 100644 samples/tutorial/finished/post-card.html delete mode 100644 samples/tutorial/finished/post-list.html delete mode 100755 samples/tutorial/images/avatar-01.svg delete mode 100755 samples/tutorial/images/avatar-02.svg delete mode 100755 samples/tutorial/images/avatar-03.svg delete mode 100755 samples/tutorial/images/avatar-04.svg delete mode 100755 samples/tutorial/images/avatar-05.svg delete mode 100755 samples/tutorial/images/avatar-06.svg delete mode 100755 samples/tutorial/images/avatar-07.svg delete mode 100755 samples/tutorial/images/avatar-08.svg delete mode 100755 samples/tutorial/images/avatar-09.svg delete mode 100755 samples/tutorial/images/avatar-10.svg delete mode 100755 samples/tutorial/images/avatar-11.svg delete mode 100755 samples/tutorial/images/avatar-12.svg delete mode 100755 samples/tutorial/images/avatar-13.svg delete mode 100755 samples/tutorial/images/avatar-14.svg delete mode 100755 samples/tutorial/images/avatar-15.svg delete mode 100755 samples/tutorial/images/avatar-16.svg delete mode 100644 samples/tutorial/index-step-1.html delete mode 100644 samples/tutorial/post-service/index.html delete mode 100644 samples/tutorial/post-service/post-service.html delete mode 100644 samples/tutorial/step-1/index.html delete mode 100644 samples/tutorial/step-1/post-card.html delete mode 100644 samples/tutorial/step-2/index.html delete mode 100644 samples/tutorial/step-2/post-card.html delete mode 100644 samples/tutorial/step-3/index.html delete mode 100644 samples/tutorial/step-3/post-card.html delete mode 100644 samples/tutorial/step-3/post-list.html diff --git a/docs/start/tutorial/intro.md b/docs/start/tutorial/intro.md index b72b0b254e..a53dfc4208 100644 --- a/docs/start/tutorial/intro.md +++ b/docs/start/tutorial/intro.md @@ -37,7 +37,7 @@ subtitle: Your first Polymer application In this tutorial, you'll build a small {{site.project_title}} application -- a very basic client for a social networking service. The end result will look like this:
- +
diff --git a/docs/start/tutorial/step-4.md b/docs/start/tutorial/step-4.md index 9256972beb..e51b5d400f 100644 --- a/docs/start/tutorial/step-4.md +++ b/docs/start/tutorial/step-4.md @@ -259,7 +259,7 @@ Save `post-list.html` and refresh your page. That's it — you're done! With a bit of luck, your application looks like this:
- +
diff --git a/samples/tutorial/api/posts.json b/samples/tutorial/api/posts.json deleted file mode 100644 index d07060fd05..0000000000 --- a/samples/tutorial/api/posts.json +++ /dev/null @@ -1,58 +0,0 @@ -[ - { - "uid": 1, - "text" : "Have you heard about the Web Components revolution?", - "username" : "Eric", - "avatar" : "../images/avatar-01.svg", - "favorite": false - }, - { - "uid": 2, - "text" : "Loving this Polymer thing.", - "username" : "Rob", - "avatar" : "../images/avatar-02.svg", - "favorite": false - }, - { - "uid": 3, - "text" : "So last year...", - "username" : "Dimitri", - "avatar" : "../images/avatar-03.svg", - "favorite": false - }, - { - "uid": 4, - "text" : "Pretty sure I came up with that first.", - "username" : "Ada", - "avatar" : "../images/avatar-07.svg", - "favorite": false - }, - { - "uid": 5, - "text" : "Yo, I heard you like components, so I put a component in your component.", - "username" : "Grace", - "avatar" : "../images/avatar-08.svg", - "favorite": false - }, - { - "uid": 6, - "text" : "Centralize, centrailize.", - "username" : "John", - "avatar" : "../images/avatar-04.svg", - "favorite": false - }, - { - "uid": 7, - "text" : "Has anyone seen my cat?", - "username" : "Zelda", - "avatar" : "../images/avatar-06.svg", - "favorite": false - }, - { - "uid": 8, - "text" : "Decentralize!", - "username" : "Norbert", - "avatar" : "../images/avatar-05.svg", - "favorite": false - } -] diff --git a/samples/tutorial/finished/index.html b/samples/tutorial/finished/index.html deleted file mode 100644 index 7552e097e5..0000000000 --- a/samples/tutorial/finished/index.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - unquote - - - - - - - - - - - - - - - ALL - FAVORITES - - -
- -
-
- - - - - diff --git a/samples/tutorial/finished/post-card.html b/samples/tutorial/finished/post-card.html deleted file mode 100644 index ed2cd339ca..0000000000 --- a/samples/tutorial/finished/post-card.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - diff --git a/samples/tutorial/finished/post-list.html b/samples/tutorial/finished/post-list.html deleted file mode 100644 index b963a559ad..0000000000 --- a/samples/tutorial/finished/post-list.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - diff --git a/samples/tutorial/images/avatar-01.svg b/samples/tutorial/images/avatar-01.svg deleted file mode 100755 index 8c6e64635d..0000000000 --- a/samples/tutorial/images/avatar-01.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-02.svg b/samples/tutorial/images/avatar-02.svg deleted file mode 100755 index bb545e1f43..0000000000 --- a/samples/tutorial/images/avatar-02.svg +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-03.svg b/samples/tutorial/images/avatar-03.svg deleted file mode 100755 index 9dc72d415c..0000000000 --- a/samples/tutorial/images/avatar-03.svg +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-04.svg b/samples/tutorial/images/avatar-04.svg deleted file mode 100755 index 73be3116d9..0000000000 --- a/samples/tutorial/images/avatar-04.svg +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-05.svg b/samples/tutorial/images/avatar-05.svg deleted file mode 100755 index 122b2a7d63..0000000000 --- a/samples/tutorial/images/avatar-05.svg +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-06.svg b/samples/tutorial/images/avatar-06.svg deleted file mode 100755 index de3d2cc987..0000000000 --- a/samples/tutorial/images/avatar-06.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-07.svg b/samples/tutorial/images/avatar-07.svg deleted file mode 100755 index 509159f552..0000000000 --- a/samples/tutorial/images/avatar-07.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-08.svg b/samples/tutorial/images/avatar-08.svg deleted file mode 100755 index 28c92a1d1b..0000000000 --- a/samples/tutorial/images/avatar-08.svg +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-09.svg b/samples/tutorial/images/avatar-09.svg deleted file mode 100755 index c682c55b8b..0000000000 --- a/samples/tutorial/images/avatar-09.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-10.svg b/samples/tutorial/images/avatar-10.svg deleted file mode 100755 index 3f577986cc..0000000000 --- a/samples/tutorial/images/avatar-10.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-11.svg b/samples/tutorial/images/avatar-11.svg deleted file mode 100755 index 7d4e8ea78a..0000000000 --- a/samples/tutorial/images/avatar-11.svg +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-12.svg b/samples/tutorial/images/avatar-12.svg deleted file mode 100755 index 2465514376..0000000000 --- a/samples/tutorial/images/avatar-12.svg +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-13.svg b/samples/tutorial/images/avatar-13.svg deleted file mode 100755 index 635f02d3ea..0000000000 --- a/samples/tutorial/images/avatar-13.svg +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-14.svg b/samples/tutorial/images/avatar-14.svg deleted file mode 100755 index 2810aa7f77..0000000000 --- a/samples/tutorial/images/avatar-14.svg +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-15.svg b/samples/tutorial/images/avatar-15.svg deleted file mode 100755 index 30f780bec6..0000000000 --- a/samples/tutorial/images/avatar-15.svg +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/tutorial/images/avatar-16.svg b/samples/tutorial/images/avatar-16.svg deleted file mode 100755 index 215842da3a..0000000000 --- a/samples/tutorial/images/avatar-16.svg +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - diff --git a/samples/tutorial/index-step-1.html b/samples/tutorial/index-step-1.html deleted file mode 100644 index 32599ec446..0000000000 --- a/samples/tutorial/index-step-1.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - unquote - - - - - - - - - - - - - - - ALL - FAVORITES - - - - - - - - - - - diff --git a/samples/tutorial/post-service/index.html b/samples/tutorial/post-service/index.html deleted file mode 100644 index f07c492b51..0000000000 --- a/samples/tutorial/post-service/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/tutorial/post-service/post-service.html b/samples/tutorial/post-service/post-service.html deleted file mode 100644 index 95f69344cf..0000000000 --- a/samples/tutorial/post-service/post-service.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - diff --git a/samples/tutorial/step-1/index.html b/samples/tutorial/step-1/index.html deleted file mode 100644 index 1944e8be57..0000000000 --- a/samples/tutorial/step-1/index.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - unquote - - - - - - - - - - - - - - ALL - FAVORITES - - - - - - - - - - - diff --git a/samples/tutorial/step-1/post-card.html b/samples/tutorial/step-1/post-card.html deleted file mode 100644 index ac3eca8b2c..0000000000 --- a/samples/tutorial/step-1/post-card.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/samples/tutorial/step-2/index.html b/samples/tutorial/step-2/index.html deleted file mode 100644 index f2a1d44c20..0000000000 --- a/samples/tutorial/step-2/index.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - unquote - - - - - - - - - - - - - - - ALL - FAVORITES - - - -
- - -

Another Developer

-

I'm composing with shadow DOM!

-
-
-
- - - - - diff --git a/samples/tutorial/step-2/post-card.html b/samples/tutorial/step-2/post-card.html deleted file mode 100644 index 78db393dff..0000000000 --- a/samples/tutorial/step-2/post-card.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - diff --git a/samples/tutorial/step-3/index.html b/samples/tutorial/step-3/index.html deleted file mode 100644 index f4a59d8a8a..0000000000 --- a/samples/tutorial/step-3/index.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - unquote - - - - - - - - - - - - - - - ALL - FAVORITES - - - -
- -
-
- - - - - diff --git a/samples/tutorial/step-3/post-card.html b/samples/tutorial/step-3/post-card.html deleted file mode 100644 index 78db393dff..0000000000 --- a/samples/tutorial/step-3/post-card.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - diff --git a/samples/tutorial/step-3/post-list.html b/samples/tutorial/step-3/post-list.html deleted file mode 100644 index 49434d24c6..0000000000 --- a/samples/tutorial/step-3/post-list.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - diff --git a/scripts/release.sh b/scripts/release.sh index 722039e1d9..a3200a5cf6 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -12,6 +12,7 @@ PROJECTS_DIR=./polymer-all/projects DESIGNER_DIR=$PROJECTS_DIR/designer TOPEKA_DIR=../topeka +TUTORIAL_DIR=../polymer-tutorial/finished #COMPONENTS_DIR=../../components #COMPONENTS_DIR=../../../ @@ -47,3 +48,9 @@ rm -rf components # If bower components dir exists, script hangs. Remove it firs bower install vulcanize --inline --strip index.html -o build.html rm -rf components # cleanup + +# Update tutorial +cd $TUTORIAL_DIR +echo "=== Updating tutorial ===" +vulcanize --inline --strip index.html -o build.html + diff --git a/scripts/website.json b/scripts/website.json index 5c43994da3..de284ffcda 100644 --- a/scripts/website.json +++ b/scripts/website.json @@ -6,5 +6,12 @@ "code-explainer", "component-download-button" ] + }, + { + "dir": "projects", + "org": "Polymer", + "repos": [ + "polymer-tutorial" + ] } -] \ No newline at end of file +]