forked from google/WebFundamentals
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6,142 changed files
with
172,777 additions
and
280,432 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.KT7ZWDewbe7tCorTIbX_GD-8lmgkeNiEwcmFg9SLCIvb1xL-pE5XF2ePQw31kKLN7mognZphMNIn3KMdqCusnZYWzeCBbDl6TwMZ7ahcmGLWDJmCd_bjTMKQNktPS86EB5I7PFFTiwHxhk22t-_mMQkT5H5tkqAzXXaHA3_roaqyGfWZqsH1qzavTg97BNduuycf7ugj4CMvTnRQLHz0dvL-p0Eh9qSL-NNi0XRb9KpTagH_x6sa6VErfYXPGTeybpFKNFA-fmsllN_0mFiUxNNZhvbi-9SnOIsPkdgbarIW7PBN27_wI9C-IpngbPVg_lBtpDhiK39mhJlEdLO1cA.sfu27odHcNMmV414.XAr7S2LC0e1giL44WXP8q1MH-FEhc8tdUo4xly0B1S1frUcR-TDlPVBus9j9DFPYcWTkKKMou3Qr-J4zqgiQ9QPvpOg04B1ZVeMRCy5toYOPIpi4JK6VlcFnbh27Z0Qr1VFgNpjr1BtTFUw77N_0cnSIlP8BR2oL78zoT1bxeIpinXy-jT--FDAuDoaynOp5Rx2sG3UbwEEmYPNyLNtODC9PHHcrtCVqH5y_yGviPxA7ZOvRjU2P5GkeNXLMAoRQNrozIlCcZaPO5SVwD83lyfaXY-dsGHNet9NSDNpcWoCh3EJabcmGKVtB3zVjSfcvkIWXGgg_59cTY7PMkYkJDwc26pmLtsPhYvCjTlMTkNpTzdf_Lygei8IOcnq-UgXoum0JGf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zqbzrgnge2sard17pfKlqYsgIIw5tNYL7qIk4MRh9bG5UzU_tM2fLbC2xK_XP4fdgTb8eObV4okfXsHhCWt4mAtlwBqWXxucb5IOTevfpdbUmAR44rrMJ2f6g6kLlc73RuoW_VBmLA-kMIjPPC8Igyavz0dHFZFJhKbCvv572X0kl57A7MJ_mOJMZxmeJHR_yf92XvaURIayZULh5zA2D45ZjY2bF6O42XwxuuYctZ3OjeyFqrB4SnlL92GSTu0FvS5f_confETv4cBhJp2hd6uvmdUq3kA77PSkdmRRhhmeXXs0DF65-pdcfvNnLO8ugimPY.hZ2ERzi4ygv-5zjvYkNdgw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"preset": "google", | ||
"validateLineBreaks": "LF", | ||
"validateIndentation": 2, | ||
"excludeFiles": ["node_modules/**"] | ||
} | ||
{ | ||
"preset": "google", | ||
"validateLineBreaks": "LF", | ||
"validateIndentation": 2, | ||
"excludeFiles": ["node_modules/**"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,68 @@ | ||
# Web Fundamentals has **MOVED** | ||
# Web Fundamentals on DevSite | ||
|
||
We are currently working in the [**next-version**](https://github.com/google/WebFundamentals/tree/next-version) branch! Please submit any new PRs there. | ||
Welcome to the new Web**Fundamentals**! <master> [![Build Status](https://ci.cloudware.io/api/badges/google/WebFundamentals/status.svg)](https://ci.cloudware.io/google/WebFundamentals) | ||
|
||
The setup is a little bit different, but hopefully significantly easier for you. | ||
### What's changed? | ||
|
||
* We're now using the [DevSite](https://developers.google.com/) infrastructure | ||
* New [style guide](https://petele-scratch.appspot.com/web/resources/style-guide) | ||
* New [widgets](https://petele-scratch.appspot.com/web/resources/widgets) allow inline JavaScript, common links, related guide and more | ||
* Jekyll has been eliminated, instead pages are rendered at request time | ||
* Front-matter has been eliminated from the markdown, but files now require a [simple set of tags](https://petele-scratch.appspot.com/web/resources/writing-an-article#yaml-front-matter) | ||
|
||
### What stays the same? | ||
|
||
* GitHub is still our source of truth for content, | ||
* We want your contributions, either PR's, issues, whatever! | ||
* The latest will be staged at https://web-central.appspot.com/web/ (coming soon) | ||
|
||
## Cloning the repo | ||
I recommend starting with a fresh clone of the repo. To save yourself some | ||
time, use the command below, it'll do a shallow clone of only the | ||
`next-version` branch into the WFNext directory | ||
|
||
``` | ||
git clone --depth 1 https://github.com/google/WebFundamentals.git --branch next-version --single-branch WFNext | ||
``` | ||
|
||
## Getting set up | ||
The new DevSite infrastructure simplifies the dependencies a lot. Ensure | ||
you have a recent version of [Node](https://nodejs.org/en/), | ||
[Gulp](http://gulpjs.com/) and the | ||
[AppEngine SDK for Python](https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python) | ||
already installed. | ||
|
||
1. Install Python dependencies: `pip install markdown -t ./gae/lib` | ||
2. Run `npm install` (needed for the build process) | ||
|
||
## Build the auto-generated files | ||
Some files (contributors includes, some pages for updates, showcases, etc) are | ||
automatically generated. The first time you clone the repo and run `npm install`, | ||
this is done for you. However, when you add a case study, update, etc., you'll | ||
need to re-build those files using: | ||
|
||
``` | ||
gulp build | ||
``` | ||
|
||
## Update the code labs | ||
To update the Code Labs, you'll need the | ||
[`claat`](https://github.com/googlecodelabs/tools/tree/master/claat) tool, and | ||
access to the original Doc files. This will likely only work for Googlers. | ||
|
||
1. Download the `claat` tool and place it in your `tools` directory. | ||
1. Run `tools/update-codelabs.sh` | ||
1. Check the latest changes into GitHub | ||
|
||
## Start the development server | ||
1. Run `npm start` | ||
|
||
## Test your changes before submitting a PR | ||
Please run your changes through gulp test before submitting a PR. The test | ||
looks for things that may cause issues with DevSite and tries to keep our | ||
content consistent. It's part of the deployment process, so PRs will fail | ||
if there are any errors! To run: | ||
|
||
``` | ||
gulp test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
runtime: python27 | ||
api_version: 1 | ||
threadsafe: true | ||
# application: petele-scratch | ||
# version: wf-devsite | ||
|
||
handlers: | ||
- url: /robots.txt | ||
static_files: gae/robots.txt | ||
upload: gae/robots.txt | ||
|
||
- url: /wf-local/scripts/ | ||
static_dir: gae/scripts/ | ||
|
||
- url: /wf-local/styles/ | ||
static_dir: gae/styles/ | ||
|
||
- url: /web/(.*\.(png|gif|jpg|svg|xml|mp4|webm|pdf|mp3|mov)) | ||
static_files: src/content/en/\1 | ||
expiration: 1d | ||
upload: src/content/en/(.*\.(png|gif|jpg|svg|xml|mp4|webm|pdf|mp3|mov)) | ||
|
||
- url: /(.*\.ico) | ||
static_files: src/content/en/images/\1 | ||
expiration: 7d | ||
upload: src/content/en/images/(.*\.ico) | ||
|
||
- url: /web/manifest.json | ||
static_files: src/content/en/manifest.json | ||
expiration: 1d | ||
upload: src/content/en/manifest.json | ||
|
||
- url: /web/(.*\.(js|css)) | ||
static_files: src/content/en/\1 | ||
expiration: 1d | ||
upload: src/content/en/(.*\.(js|css)) | ||
http_headers: | ||
Access-Control-Allow-Origin: https://developers.google.com | ||
application_readable: true | ||
|
||
- url: /web/(.*\.(woff|eot|ttf)) | ||
static_files: \1 | ||
expiration: 1d | ||
upload: (.*\.(woff|eot|ttf)) | ||
http_headers: | ||
Access-Control-Allow-Origin: https://developers.google.com | ||
|
||
# This is simply a redirect from index to /web | ||
- url: /(.*) | ||
script: appengine_main.app | ||
secure: always | ||
|
||
skip_files: | ||
- ^gulp-tasks/.* | ||
- ^node_modules/.* | ||
- ^scratch/.* | ||
- ^tools/.* | ||
- ^src/data/.* | ||
- ^src/templates/.* | ||
- ^(.*/)?#.*#$ | ||
- ^(.*/)?.*~$ | ||
- ^(.*/)?.*\.DS_Store$ | ||
- ^(.*/)?.*\.py[co]$ | ||
- ^(.*/)?.*/RCS/.*$ | ||
- ^(.*/)?.*\.psd$ | ||
- ^(.*/)?.*\.pxm$ | ||
- ^(.*/)?.*\.pyc$ | ||
- ^(.*/)?.*\.sh$ | ||
- ^(.*/)?\..*$ |
Oops, something went wrong.