Documentation for Polymer https://www.polymer-project.org
  • HTML 97.3%
  • JavaScript 1.5%
  • SCSS 0.5%
  • Python 0.4%
  • CSS 0.3%
Find a file
2018-11-13 10:36:02 -08:00
.github Update CODEOWNERS 2018-06-08 12:25:12 -07:00
app Copy "use click instead of tap" notice from 2.0 to 3.0 docs. 2018-10-31 13:41:53 -07:00
diagrams Update PRPL diagrams for 3.0. 2018-05-07 16:43:45 -07:00
scripts Address review comments. 2018-04-25 17:50:03 -07:00
templates Merge pull request #2339 from Polymer/polymer-3 2018-02-09 16:09:29 -08:00
tests Add comments. 2017-05-31 11:48:17 -07:00
.bowerrc Initial app structure 2015-11-06 19:09:50 -08:00
.gitignore removed stackblitz sdk from deps and pinned to version 2018-04-26 15:20:33 -07:00
.gitmodules Remove unused push lib. 2018-05-25 15:14:09 -07:00
.travis.yml update travis config 2015-11-11 18:55:31 -08:00
app.yaml Add code sample to About page. 2018-05-09 22:03:33 -07:00
bower.json Bump minimum version of iron-doc-viewer to improve anchors. 2018-05-02 16:26:43 -07:00
CONTRIBUTING.md Add Contributing file. 2016-06-22 17:10:31 -07:00
gulpfile.js Add code sample to About page. 2018-05-09 22:03:33 -07:00
humans.txt Initial app structure 2015-11-06 19:09:50 -08:00
index.yaml Initial app structure 2015-11-06 19:09:50 -08:00
package-lock.json Final touches to code samples and quick-tour 2018-05-06 14:30:50 -07:00
package.json removed stackblitz sdk from deps and pinned to version 2018-04-26 15:20:33 -07:00
polymer.json demo-tabs can detect whether stackblitz or plunkr 2018-04-25 14:10:05 -07:00
README.md Update README.md 2018-11-13 10:36:02 -08:00
redirects.yaml Redirect /summit to https://summit. 2017-07-17 16:25:38 -07:00
server.py Remove unused push lib. 2018-05-25 15:14:09 -07:00
STYLE.md Update STYLE.md 2017-06-14 12:35:04 -07:00
test_runner.py Update copyright year in non-library, non-generated files. (#301) 2016-05-31 09:51:43 -10:00

Old Polymer documentation site

This site has been replaced by the following sites:

Install

The documentation site runs in Google App Engine, using the App Engine Python standard environment. Before you start you'll need the following prerequisites:

  • Python 2.7

  • Google Cloud SDK

  • App Engine Python standard environment. Ensure this is installed by running the following command:

    gcloud components install app-engine-python
    

    Or, if you installed via apt:

    sudo apt-get install google-cloud-sdk-app-engine-python
    

Set up your repo:

git clone https://github.com/Polymer/docs 
cd docs
npm install

Running the site

The first time you run the site, run gulp to build the site in its entirety:

gulp

Then start the App Engine dev server on dist/app.yaml:

dev_appserver.py dist/

The site will be served from http://localhost:8080.

Making changes / watching files / live reload

If you're making changes use the watch task. Optionally add --reload to live reload the tab when changes are saved.

gulp watch --reload

The site will be served on http://localhost:3000. Making changes will refresh the browser tab.

Optional flags:

  • --reload: refreshes the browser tab when changes are made
  • --open: opens a new browser tab when gulp watch is started

Tip - run gulp help to see the list of available gulp tasks.

Run tests

Install WebTest framework:

pip install WebTest

Then run:

npm test

If your Google Cloud SDK isn't installed in ~/google-cloud-sdk, set the CLOUD_SDK environment variable to the path to the Cloud SDK:

export CLOUD_SDK=~/cloud/google-cloud-sdk

Deployment

Build and deploy version YYY-MM-DD of the site:

gulp
npm run deploy YYYY-MM-DD