Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit daad10a

Browse files
committed
Moves next-version into master
1 parent 45bcd61 commit daad10a

File tree

6,142 files changed

+172777
-280432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,142 files changed

+172777
-280432
lines changed

.drone.sec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +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-UgXoum0JGfdLJK_mI76s6LTPqiN_TqWjrOieDdQE0ovMYQ1Wmeelqn-LoreVFmcFfK9ShWo9T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Tb8eObV4okfXsHhCWt4mAtlwBqWXxucb5IOTevfpdbUmAR44rrMJ2f6g6kLlc73RuoW_VBmLA-kMIjPPC8Igyavz0dHFZFJhKbCvv572X0kl57A7MJ_mOJMZxmeJHR_yf92XvaURIayZULh5zA2D45ZjY2bF6O42XwxuuYctZ3OjeyFqrB4SnlL92GSTu0FvS5f_confETv4cBhJp2hd6uvmdUq3kA77PSkdmRRhhmeXXs0DF65-pdcfvNnLO8ugimPY.hZ2ERzi4ygv-5zjvYkNdgw

.drone.yml

+16-20
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,23 @@ clone:
55
depth: 1
66
cache:
77
mount:
8-
- vendor/bundle
98
- node_modules
109
build:
11-
image: crhym3/ci-image
10+
image: b.gcr.io/wf-ci-images/drone:20160928
1211
commands:
13-
- eval "$(rbenv init -)"
14-
- bundle install --deployment --jobs=3 --retry=3
15-
- npm install
16-
- gulp build:staging
12+
- npm install -qq
13+
- gulp presubmit
14+
- gulp build
1715
deploy:
18-
wf:
19-
image: crhym3/drone-plugin-wf
20-
auth_key: >
21-
$$SERVICE_ACCOUNT
22-
github_token: $$GITHUB_TOKEN
23-
wpt_api_key: $$WPT_API_KEY
24-
rig_url: $$RIG_URL
25-
rig_secret: $$RIG_SECRET
26-
project: web-central
27-
server_suffix: -dot-weasel-dot-web-central.appspot.com
28-
bucket_suffix: -webcentral-appspot-weasel
29-
source: build
30-
gzip: [js, css, html, svg]
31-
cache_control: public,max-age=300
16+
bash:
17+
when:
18+
repo: google/WebFundamentals
19+
branch: next-version
20+
image: crhym3/drone-plugin-bash-node
21+
env:
22+
- ROBOT_PASSPHRASE=$$ROBOT_PASSPHRASE
23+
script:
24+
- gpg --no-use-agent --output tools/builder-key.json --passphrase $ROBOT_PASSPHRASE tools/builder-key.json.enc
25+
- gcloud config set project web-central
26+
- gcloud auth activate-service-account --key-file=tools/builder-key.json
27+
- gcloud preview app deploy app.yaml -q --no-promote --version next-version

.editorconfig

-17
This file was deleted.

.gitignore

+29-13
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,37 @@
22
*.pyc
33
*.swp
44
*.csv
5-
.idea
6-
/build
75
.DS_Store
8-
.sass-cache/
9-
node_modules/
10-
.ruby-gemset
6+
node_modules/*
117
.rvmrc
128
.grunt-gae-pid
139
.drone.sec.yml
14-
src/css/styles.css
15-
src/css/styles.min.css
16-
jekyll/content
17-
vendor/
18-
appengine/build
19-
tools/shows-gen/yt-api-key.json
20-
src/jekyll/_includes/svgs/
2110
.bundle/
22-
google_appengine/
11+
gae/lib/*
12+
src/data/youtubeAPIKey.txt
13+
gulp-tasks/deploy.js
14+
scratch/*
15+
tools/claat
16+
.editor-config
17+
.ruby-version
18+
19+
## Files that are autogenerated by the build system
20+
src/content/**/*/_files.json
21+
src/content/**/*/atom.xml
22+
src/content/**/*/rss.xml
23+
src/content/*/_shared/contributors/*.html
24+
src/content/*/resources/contributors.md
25+
src/content/*/updates/_index.yaml
26+
src/content/*/updates/*/_toc.yaml
27+
src/content/*/updates/*/index.md
28+
src/content/*/updates/tags/*
29+
src/content/*/shows/**/feed.xml
30+
src/content/*/shows/_index.yaml
31+
src/content/*/shows/http203/podcast/index.md
32+
src/content/*/showcase/_index.yaml
33+
src/content/*/showcase/*/_toc.yaml
34+
src/content/*/showcase/*/index.md
35+
src/content/*/rss.xml
36+
src/content/*/atom.xml
37+
38+

.jscsrc

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{
2-
"preset": "google",
3-
"validateLineBreaks": "LF",
4-
"validateIndentation": 2,
5-
"excludeFiles": ["node_modules/**"]
6-
}
1+
{
2+
"preset": "google",
3+
"validateLineBreaks": "LF",
4+
"validateIndentation": 2,
5+
"excludeFiles": ["node_modules/**"]
6+
}

.ruby-version

-1
This file was deleted.

Gemfile

-5
This file was deleted.

Gemfile.lock

-82
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@
199199
distributed under the License is distributed on an "AS IS" BASIS,
200200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201201
See the License for the specific language governing permissions and
202-
limitations under the License.
202+
limitations under the License.

README.md

+66-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
1-
# Web Fundamentals has **MOVED**
1+
# Web Fundamentals on DevSite
22

3-
We are currently working in the [**next-version**](https://github.com/google/WebFundamentals/tree/next-version) branch! Please submit any new PRs there.
3+
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)
44

5-
The setup is a little bit different, but hopefully significantly easier for you.
5+
### What's changed?
6+
7+
* We're now using the [DevSite](https://developers.google.com/) infrastructure
8+
* New [style guide](https://petele-scratch.appspot.com/web/resources/style-guide)
9+
* New [widgets](https://petele-scratch.appspot.com/web/resources/widgets) allow inline JavaScript, common links, related guide and more
10+
* Jekyll has been eliminated, instead pages are rendered at request time
11+
* 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)
12+
13+
### What stays the same?
14+
15+
* GitHub is still our source of truth for content,
16+
* We want your contributions, either PR's, issues, whatever!
17+
* The latest will be staged at https://web-central.appspot.com/web/ (coming soon)
18+
19+
## Cloning the repo
20+
I recommend starting with a fresh clone of the repo. To save yourself some
21+
time, use the command below, it'll do a shallow clone of only the
22+
`next-version` branch into the WFNext directory
23+
24+
```
25+
git clone --depth 1 https://github.com/google/WebFundamentals.git --branch next-version --single-branch WFNext
26+
```
27+
28+
## Getting set up
29+
The new DevSite infrastructure simplifies the dependencies a lot. Ensure
30+
you have a recent version of [Node](https://nodejs.org/en/),
31+
[Gulp](http://gulpjs.com/) and the
32+
[AppEngine SDK for Python](https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python)
33+
already installed.
34+
35+
1. Install Python dependencies: `pip install markdown -t ./gae/lib`
36+
2. Run `npm install` (needed for the build process)
37+
38+
## Build the auto-generated files
39+
Some files (contributors includes, some pages for updates, showcases, etc) are
40+
automatically generated. The first time you clone the repo and run `npm install`,
41+
this is done for you. However, when you add a case study, update, etc., you'll
42+
need to re-build those files using:
43+
44+
```
45+
gulp build
46+
```
47+
48+
## Update the code labs
49+
To update the Code Labs, you'll need the
50+
[`claat`](https://github.com/googlecodelabs/tools/tree/master/claat) tool, and
51+
access to the original Doc files. This will likely only work for Googlers.
52+
53+
1. Download the `claat` tool and place it in your `tools` directory.
54+
1. Run `tools/update-codelabs.sh`
55+
1. Check the latest changes into GitHub
56+
57+
## Start the development server
58+
1. Run `npm start`
59+
60+
## Test your changes before submitting a PR
61+
Please run your changes through gulp test before submitting a PR. The test
62+
looks for things that may cause issues with DevSite and tries to keep our
63+
content consistent. It's part of the deployment process, so PRs will fail
64+
if there are any errors! To run:
65+
66+
```
67+
gulp test
68+
```

app.yaml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
runtime: python27
2+
api_version: 1
3+
threadsafe: true
4+
# application: petele-scratch
5+
# version: wf-devsite
6+
7+
handlers:
8+
- url: /robots.txt
9+
static_files: gae/robots.txt
10+
upload: gae/robots.txt
11+
12+
- url: /wf-local/scripts/
13+
static_dir: gae/scripts/
14+
15+
- url: /wf-local/styles/
16+
static_dir: gae/styles/
17+
18+
- url: /web/(.*\.(png|gif|jpg|svg|xml|mp4|webm|pdf|mp3|mov))
19+
static_files: src/content/en/\1
20+
expiration: 1d
21+
upload: src/content/en/(.*\.(png|gif|jpg|svg|xml|mp4|webm|pdf|mp3|mov))
22+
23+
- url: /(.*\.ico)
24+
static_files: src/content/en/images/\1
25+
expiration: 7d
26+
upload: src/content/en/images/(.*\.ico)
27+
28+
- url: /web/manifest.json
29+
static_files: src/content/en/manifest.json
30+
expiration: 1d
31+
upload: src/content/en/manifest.json
32+
33+
- url: /web/(.*\.(js|css))
34+
static_files: src/content/en/\1
35+
expiration: 1d
36+
upload: src/content/en/(.*\.(js|css))
37+
http_headers:
38+
Access-Control-Allow-Origin: https://developers.google.com
39+
application_readable: true
40+
41+
- url: /web/(.*\.(woff|eot|ttf))
42+
static_files: \1
43+
expiration: 1d
44+
upload: (.*\.(woff|eot|ttf))
45+
http_headers:
46+
Access-Control-Allow-Origin: https://developers.google.com
47+
48+
# This is simply a redirect from index to /web
49+
- url: /(.*)
50+
script: appengine_main.app
51+
secure: always
52+
53+
skip_files:
54+
- ^gulp-tasks/.*
55+
- ^node_modules/.*
56+
- ^scratch/.*
57+
- ^tools/.*
58+
- ^src/data/.*
59+
- ^src/templates/.*
60+
- ^(.*/)?#.*#$
61+
- ^(.*/)?.*~$
62+
- ^(.*/)?.*\.DS_Store$
63+
- ^(.*/)?.*\.py[co]$
64+
- ^(.*/)?.*/RCS/.*$
65+
- ^(.*/)?.*\.psd$
66+
- ^(.*/)?.*\.pxm$
67+
- ^(.*/)?.*\.pyc$
68+
- ^(.*/)?.*\.sh$
69+
- ^(.*/)?\..*$

0 commit comments

Comments
 (0)