Skip to content

Commit 08e1628

Browse files
committed
Merge branch 'main' of github.com:ampproject/amphtml into css_units_desktop
2 parents 9f5db1f + 521ef86 commit 08e1628

File tree

315 files changed

+20725
-5442
lines changed

Some content is hidden

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

315 files changed

+20725
-5442
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
browser-tools: circleci/[email protected].1
4+
browser-tools: circleci/[email protected].2
55
node: circleci/[email protected]
66

77
push_and_pr_builds: &push_and_pr_builds

.github/ISSUE_TEMPLATE/release-tracker.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Release Tracker
3-
description: Track a new AMP release.
3+
description: Manually track a new AMP release. (This is automatically updated by the release-tagger GitHub Action).
44
labels: 'Type: Release'
55
title: "\U0001F684 Release VERSION"
66
body:
@@ -17,12 +17,12 @@ body:
1717
id: promotions
1818
attributes:
1919
label: Promotions
20-
description: Replace VERSION with AMP version and PROMOTE_TIME with CL submit time.
20+
description: Replace `VERSION` with AMP version and `<!-- promote-time -->` with CL submit time.
2121
value: |
22-
- [ ] VERSION promoted to Experimental and Beta (opt-in) channels (PROMOTE_TIME)
23-
- [ ] VERSION promoted to Experimental and Beta (1% traffic) channels (PROMOTE_TIME)
24-
- [ ] VERSION promoted to Stable channel (PROMOTE_TIME)
25-
- [ ] (optional) VERSION promoted to LTS channel (PROMOTE_TIME)
22+
- [ ] <!-- amp-version=VERSION channel=beta-opt-in -->VERSION promoted to Experimental and Beta (opt-in) channels <!-- promote-time -->
23+
- [ ] <!-- amp-version=VERSION channel=beta-percent -->VERSION promoted to Experimental and Beta (1% traffic) channels <!-- promote-time -->
24+
- [ ] <!-- amp-version=VERSION channel=stable -->VERSION promoted to Stable channel <!-- promote-time -->
25+
- [ ] <!-- amp-version=VERSION channel=lts -->VERSION promoted to LTS channel <!-- promote-time -->
2626
2727
/cc @ampproject/release-on-duty
2828
validations:

.github/workflows/cut-nightly.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ on:
88
- cron: '0 8 * * 2-6'
99

1010
jobs:
11-
sweep-experiments:
11+
cut-nightly:
12+
environment: release_tagger
1213
if: github.repository == 'ampproject/amphtml'
1314
name: Cut Nightly Branch
1415
runs-on: ubuntu-latest
1516

1617
steps:
1718
- name: Checkout Repo
1819
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 100
1922

2023
- name: Set Up Node
2124
uses: actions/[email protected]
@@ -28,3 +31,5 @@ jobs:
2831

2932
- name: ⭐ Cut Nightly Branch ⭐
3033
run: node --unhandled-rejections=strict build-system/release-workflows/cut-nightly.js
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.AMPPROJECTBOT }}

.github/workflows/release-tagger.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
description: 'base AMP version'
1313
required: true
1414
channel:
15-
description: 'release channel (beta | stable | lts)'
15+
description: 'release channel (beta-opt-in | beta-percent | stable | lts)'
1616
required: true
1717
jobs:
1818
tagger:
@@ -30,6 +30,7 @@ jobs:
3030
${{ github.event.inputs.action }} \
3131
${{ github.event.inputs.head }} \
3232
${{ github.event.inputs.base }} \
33-
${{ github.event.inputs.channel }}
33+
${{ github.event.inputs.channel }} \
34+
${{ github.event.inputs.time }}
3435
env:
3536
GITHUB_TOKEN: ${{ secrets.AMPPROJECTBOT }}

3p/vendors/amplified.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Copyright 2021 The AMP HTML Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS-IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// src/polyfills.js must be the first import.
18+
import '#3p/polyfills';
19+
20+
import {register} from '#3p/3p';
21+
import {draw3p, init} from '#3p/integration-lib';
22+
23+
import {amplified} from '#ads/vendors/amplified';
24+
25+
init(window);
26+
register('amplified', amplified);
27+
28+
window.draw3p = draw3p;

3p/vendors/broadbandy.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import '#3p/polyfills';
2+
3+
import {register} from '#3p/3p';
4+
import {draw3p, init} from '#3p/integration-lib';
5+
6+
import {broadbandy} from '#ads/vendors/broadbandy';
7+
8+
init(window);
9+
register('broadbandy', broadbandy);
10+
11+
window.draw3p = draw3p;

ads/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ If you're adding support for a new third-party ad service, changes to the follow
346346
- `/ads/yournetwork.js`: Implement the main logic here. This is the code that's invoked in the third-party iframe once loaded.
347347
- `/ads/yournetwork.md`: Documentation detailing yourr ad service for publishers to read.
348348
- `/ads/_config.js`: Add service specific configuration here.
349-
- `/3p/integration.js`: Register your service here.
349+
- `/3p/vendors/yournetwork.js`: Register your service here.
350350
- `/extensions/amp-ad/amp-ad.md`: Add a link that points to your publisher doc.
351351
- `/examples/ads.amp.html`: Add publisher examples here. Since a real ad isn't guaranteed to fill, a consistently displayed fake ad is highly recommended here to help AMP developers confidently identify new bugs.
352352

ads/_config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ const adConfig = jsonConfiguration({
292292
'https://v.amoad.com',
293293
],
294294
},
295-
295+
'amplified': {
296+
preconnect: 'https://srv.clickfuse.com',
297+
renderStartImplemented: true,
298+
},
296299
'aniview': {
297300
renderStartImplemented: true,
298301
},
@@ -349,6 +352,10 @@ const adConfig = jsonConfiguration({
349352
preconnect: ['https://static.bh-cdn.com', 'https://core-api.bringhub.io'],
350353
},
351354

355+
'broadbandy': {
356+
renderStartImplemented: true,
357+
},
358+
352359
'broadstreetads': {
353360
prefetch: 'https://cdn.broadstreetads.com/init-2.min.js',
354361
renderStartImplemented: true,

ads/ads.extern.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ data.onNoAds;
356356
// amoad.js
357357
data.sid;
358358

359+
// amplified.js
360+
data.amplified_id;
361+
data.amplified_params;
362+
359363
// appnexus.js
360364
data.tagid;
361365
data.member;

ads/google/a4a/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const CDN_PROXY_REGEXP =
9999
/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org((\/.*)|($))+/;
100100

101101
/** @const {string} */
102-
const TOKEN_VALUE =
102+
export const TOKEN_VALUE =
103103
'A560Vqrj/cxoDr3Ldu+cN8qcpkaPx5Yh67pvGScX0kOke10st2EAEQmfQrDKSlVJtF+oZ0WqUYbPLmY6nRQq5wAAAACVeyJvcmlnaW4iOiJodHRwczovL2FtcHByb2plY3Qub3JnOjQ0MyIsImZlYXR1cmUiOiJDb252ZXJzaW9uTWVhc3VyZW1lbnQiLCJleHBpcnkiOjE2MzE2NjM5OTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWUsInVzYWdlIjoic3Vic2V0In0=';
104104

105105
/**

0 commit comments

Comments
 (0)