From 31bf678e265d138357247e0e5242440132258a76 Mon Sep 17 00:00:00 2001 From: Rohan Verma Date: Sun, 13 Mar 2016 23:17:48 +0530 Subject: [PATCH] Modified documentation and readme to reduce confusion in the example for deploying to github This change reduces confusion about using backslashes or not in the URL and is generally more helpful to new comers. --- README.md | 2 +- docs/deploy-to-github-pages.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 33c85ff8..a36f489d 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ Components installed by Bower live in the `app/bower_components` directory. This ### Github Pages 1. Uncomment this line `// app.baseUrl = '/polymer-starter-kit/';` in app.js near the top -2. Change `app.baseUrl = '/polymer-starter-kit/';` to `app.baseUrl = '/your-pathname/';` (ex: if you repo is `github.com/username/bobs-awesome-site` you would change this to `bobs-awesome-site`) +2. Change `app.baseUrl = '/polymer-starter-kit/';` to `app.baseUrl = '/your-pathname/';` (ex: if you repo is `github.com/username/bobs-awesome-site` you would change this to `app.baseUrl = '/bobs-awesome-site/';`) 3. Run `gulp build-deploy-gh-pages` from command line 4. To see changes wait 1-2 minutes then load Github pages for your app (ex: https://polymerelements.github.io/polymer-starter-kit/) diff --git a/docs/deploy-to-github-pages.md b/docs/deploy-to-github-pages.md index 7cc9bf52..570ee005 100644 --- a/docs/deploy-to-github-pages.md +++ b/docs/deploy-to-github-pages.md @@ -14,7 +14,7 @@ You can deploy to github pages with a couple minor changes to Polymer Starter Ki } ``` -2. Change `app.baseUrl = '/polymer-starter-kit/';` to `app.baseUrl = '/your-pathname/';` (ex: if you repo is `github.com/username/bobs-awesome-site` you would change this to `bobs-awesome-site`) +2. Change `app.baseUrl = '/polymer-starter-kit/';` to `app.baseUrl = '/your-pathname/';` (ex: if you repo is `github.com/username/bobs-awesome-site` you would change this to `app.baseUrl = '/bobs-awesome-site/';`) 3. Add this code at the top of `` tag in the [index.html](../app/index.html) to force HTTPS: