Skip to content

A repo containing samples tied to new functionality in each release of Google Chrome.

License

Notifications You must be signed in to change notification settings

sazgit/samples

This branch is 333 commits behind GoogleChrome/samples:gh-pages.

Folders and files

NameName
Last commit message
Last commit date
Oct 5, 2015
Jun 16, 2016
Nov 18, 2016
Jul 31, 2015
Jan 30, 2017
Oct 5, 2015
Dec 11, 2015
Dec 11, 2015
Apr 14, 2015
Oct 13, 2015
Dec 11, 2015
Oct 27, 2015
Jul 31, 2015
Aug 1, 2016
Dec 25, 2015
Oct 27, 2015
Jan 29, 2016
Oct 14, 2015
Jun 9, 2016
Jan 5, 2016
Jan 24, 2016
Jan 7, 2016
Jun 2, 2016
Oct 19, 2016
Oct 16, 2015
Dec 11, 2015
Aug 2, 2016
Oct 27, 2015
Aug 1, 2016
Dec 11, 2015
Sep 2, 2015
Jan 27, 2016
Jan 27, 2016
Nov 3, 2015
Dec 11, 2015
Dec 11, 2015
Jan 4, 2016
Jan 22, 2016
Dec 11, 2015
Aug 27, 2015
Jun 9, 2016
Oct 27, 2015
Mar 18, 2016
Dec 11, 2015
Mar 14, 2016
Nov 13, 2015
Nov 30, 2015
Dec 7, 2016
Oct 27, 2015
Aug 27, 2014
Jan 31, 2017
Oct 13, 2015
Jun 2, 2016
Apr 14, 2016
Apr 13, 2016
Aug 27, 2015
Jan 4, 2016
Mar 6, 2017
Dec 11, 2015
Oct 27, 2015
Aug 1, 2016
Nov 25, 2015
Dec 11, 2015
Dec 11, 2015
Dec 11, 2015
Jan 3, 2017
Aug 27, 2015
Oct 27, 2015
Mar 7, 2016
Jun 29, 2016
Jan 29, 2016
May 24, 2016
Dec 31, 2016
Oct 9, 2015
Oct 11, 2016
Dec 11, 2015
Oct 27, 2015
Jan 30, 2017
Oct 27, 2015
Jun 16, 2016
Nov 30, 2015
Aug 27, 2015
Dec 7, 2016
Oct 5, 2015
Jan 25, 2016
Dec 11, 2015
Oct 28, 2015
Dec 5, 2016
Mar 9, 2017
Dec 8, 2016
Oct 27, 2015
Oct 27, 2015
Dec 11, 2015
Oct 27, 2015
Aug 27, 2015
Dec 11, 2015
Aug 23, 2016
May 26, 2016
Jul 13, 2016
Sep 28, 2015
Aug 5, 2014
Dec 11, 2015
Dec 11, 2015
Oct 13, 2015
Dec 11, 2015

Repository files navigation

Build Status

Google Chrome Samples

Samples tied to new functionality in Google Chrome.

Each sample corresponds to an entry in https://www.chromestatus.com/features, and using that interface is currently the best way to browse.

Contributing Samples

Please use SAMPLE_STARTING_POINT as a starting point.

While it's possible to simply create a standard set of HTML/JS/CSS files within the new directory, you can take advantage of the Jekyll-based templating system to handle most of the boilerplate. Any files that start with a front matter block will be templated, and any other files will be served verbatim.

If you're still unsure, two canonical samples that use templates are:

Follow the Using Jekyll with Pages guide to mimic the production Jekyll environment during local development.

Once complete, please file a pull request against the gh-pages branch with your sample. It's ideal when filing a pull request @-mention the relevant engineer who worked on adding the feature into Chrome, to solicit their feedback and ensure that the sample properly describes the functionality. The email address of the engineer who worked on a given feature can be found in the corresponding https://www.chromestatus.com/features entry. If you're unsure of the GitHub username corresponding to the engineer, an alternative is to email them a link to the pull request and ask for feedback directly.

Style / Linting / CI

The samples ideally should follow the Google JavaScript Style Guide, and that's enforced via ESLint, using the eslint-config-google base configuration, with a few overrides as needed.

Linting can be performed via npm run lint (make sure to npm install first).

Various IDEs offer real-time ESLint integration, and using those integrations that can help avoid errors before anything gets checked in.

Travis CI is currently being used to verify that the Jekyll build completes successfully and that linting passes without errors.

About

A repo containing samples tied to new functionality in each release of Google Chrome.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 61.9%
  • JavaScript 36.6%
  • CSS 1.5%