Skip to content

Commit

Permalink
Remove outdated references to ampbyexamples.com (#40097)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq authored Jul 24, 2024
1 parent dfa89b1 commit 67ce6d2
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/spec/amp-cors-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ You can use the `curl` command to verify that your server is sending the correct

In a same-origin request, the AMP system adds the custom `AMP-Same-Origin:true` header.

Here's our curl command for testing a request from `https://ampbyexample.com` to the `examples.json` file (on the same domain):
Here's our curl command for testing a request from `https://amp.dev` to the `examples.json` file (on the same domain):

```shell
curl 'https://amp.dev/static/samples/json/examples.json' -H 'AMP-Same-Origin: true' -I
Expand All @@ -434,7 +434,7 @@ The results from the command show the correct response headers (note: extra info
HTTP/2 200
access-control-allow-headers: Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token
access-control-allow-credentials: true
access-control-allow-origin: https://ampbyexample.com
access-control-allow-origin: https://amp.dev
access-control-allow-methods: POST, GET, OPTIONS
```

Expand Down
2 changes: 1 addition & 1 deletion examples/amp-story/ampconf.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{
"ad-attributes": {
"type": "custom",
"data-url": "https://ampbyexample.com/json/amp-story-auto-ads/"
"data-url": "https://amp.dev/static/samples/json/amp-story-auto-ads-0.json"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/amp-story/rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{
"ad-attributes": {
"type": "custom",
"data-url": "https://ampbyexample.com/json/amp-story-auto-ads/"
"data-url": "https://amp.dev/static/samples/json/amp-story-auto-ads-0.json"
}
}
</script>
Expand Down
6 changes: 3 additions & 3 deletions examples/article-access-multiple.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<script id="amp-access" type="application/json">
[
{
"authorization": "https://ampbyexample.com/components/amp-access/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"pingback": "https://ampbyexample.com/components/amp-access/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"login": "https://ampbyexample.com/components/amp-access/login?rid=READER_ID&url=CANONICAL_URL",
"authorization": "https://amp.dev/documentation/examples/api/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"pingback": "https://amp.dev/documentation/examples/api/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"login": "https://amp.dev/documentation/examples/api/login?rid=READER_ID&url=CANONICAL_URL",
"authorizationFallbackResponse": {"error": true},
"namespace": "default"
},
Expand Down
6 changes: 3 additions & 3 deletions examples/article-access.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<!-- See https://github.com/ampproject/amp-publisher-sample -->
<script id="amp-access" type="application/json">
{
"authorization": "https://ampbyexample.com/components/amp-access/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"pingback": "https://ampbyexample.com/components/amp-access/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"login": "https://ampbyexample.com/components/amp-access/login?rid=READER_ID&url=CANONICAL_URL",
"authorization": "https://amp.dev/documentation/examples/api/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"pingback": "https://amp.dev/documentation/examples/api/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"login": "https://amp.dev/documentation/examples/api/login?rid=READER_ID&url=CANONICAL_URL",
"authorizationFallbackResponse": {"error": true}
}
</script>
Expand Down
6 changes: 3 additions & 3 deletions examples/auto-ads.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<script id="amp-access" type="application/json">
{
"authorization": "https://ampbyexample.com/components/amp-access/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"pingback": "https://ampbyexample.com/components/amp-access/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"login": "https://ampbyexample.com/components/amp-access/login?rid=READER_ID&url=CANONICAL_URL",
"authorization": "https://amp.dev/documentation/examples/api/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"pingback": "https://amp.dev/documentation/examples/api/authorization?rid=READER_ID&url=CANONICAL_URL&ref=DOCUMENT_REFERRER&_=RANDOM",
"login": "https://amp.dev/documentation/examples/api/login?rid=READER_ID&url=CANONICAL_URL",
"authorizationFallbackResponse": {"error": true}
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ See the above link for allowed call-to-action buttons. By design, these will be

## Example

You can find a fully working example hosted on [ampbyexample.com](https://amp.dev/documentation/examples/advertising-analytics/doubleclick_amp_story_ads/).
You can find a fully working example hosted on [amp.dev](https://amp.dev/documentation/examples/advertising-analytics/doubleclick_amp_story_ads/).

Google Ad Manager trafficking instructions can be found in the [DFP Help Center](https://support.google.com/dfp_premium/answer/9038178).

Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-ad-network-fake-impl/0.1/data/fake_amp.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html><html amp4ads><head><meta charset=utf-8><meta content=width=device-width,minimum-scale=1,initial-scale=1 name=viewport><script async src=https://cdn.ampproject.org/amp4ads-v0.js></script><script async custom-element=amp-accordion src=https://cdn.ampproject.org/v0/amp-accordion-0.1.js></script><script async custom-element=amp-analytics src=https://cdn.ampproject.org/v0/amp-analytics-0.1.js></script><script async custom-element=amp-anim src=https://cdn.ampproject.org/v0/amp-anim-0.1.js></script><script async custom-element=amp-audio src=https://cdn.ampproject.org/v0/amp-audio-0.1.js></script><script async custom-element=amp-carousel src=https://cdn.ampproject.org/v0/amp-carousel-0.1.js></script><script async custom-element=amp-fit-text src=https://cdn.ampproject.org/v0/amp-fit-text-0.1.js></script><script async custom-element=amp-font src=https://cdn.ampproject.org/v0/amp-font-0.1.js></script><script async custom-element=amp-form src=https://cdn.ampproject.org/v0/amp-form-0.1.js></script><script async custom-element=amp-social-share src=https://cdn.ampproject.org/v0/amp-social-share-0.1.js></script><style amp-custom>body {
background-color: #f4f4f4;
}
</style><style amp4ads-boilerplate>body{visibility:hidden}</style></head><body><amp-pixel src=https://securepubads.g.doubleclick.net/pcs/view?xai=AKAOjsvtqtYa0EsJ4Nx-reUVvVUxE47T2168NOpjITbBGSW6gTk6nH-_YUv6KuCJr7GDn741JGyjvPDbOctdo9TXC-7sr0ZVGxo2Tw159UTGvpOgdbB_RPx2hGetike7URzDfC6KJRLYvlolR9yGsBUc1BzHZkNCW2WytE-wSVBN1ZsjZDRH9oZekBYKKoaYuvTxmOeHz9Jg0VG3rm1rFvA2hcn-X3s3tnnTU7Wytj8vbSFi0VLRmwSUgfm7RqYCbYPLGdA&amp;sai=AMfl-YTipoc1Uj8AysSEfd1QxlnQ8oXFbtcHLZKo6D5gA4sQaYnSe89UvAfW0aU1O9E0OlQaN7pamrnB6hIBWQ3DVzUOv212COaKzCHprJRrnGwc&amp;sig=Cg0ArKJSzETQCdrEz0AMEAE&amp;urlfix=1&amp;adurl=></amp-pixel><a href=https://ampbyexample.com target=_blank>
</style><style amp4ads-boilerplate>body{visibility:hidden}</style></head><body><amp-pixel src=https://securepubads.g.doubleclick.net/pcs/view?xai=AKAOjsvtqtYa0EsJ4Nx-reUVvVUxE47T2168NOpjITbBGSW6gTk6nH-_YUv6KuCJr7GDn741JGyjvPDbOctdo9TXC-7sr0ZVGxo2Tw159UTGvpOgdbB_RPx2hGetike7URzDfC6KJRLYvlolR9yGsBUc1BzHZkNCW2WytE-wSVBN1ZsjZDRH9oZekBYKKoaYuvTxmOeHz9Jg0VG3rm1rFvA2hcn-X3s3tnnTU7Wytj8vbSFi0VLRmwSUgfm7RqYCbYPLGdA&amp;sai=AMfl-YTipoc1Uj8AysSEfd1QxlnQ8oXFbtcHLZKo6D5gA4sQaYnSe89UvAfW0aU1O9E0OlQaN7pamrnB6hIBWQ3DVzUOv212COaKzCHprJRrnGwc&amp;sig=Cg0ArKJSzETQCdrEz0AMEAE&amp;urlfix=1&amp;adurl=></amp-pixel><a href=https://amp.dev target=_blank>
<amp-img alt="AMP Ad" height=250 src=https://amp.dev/static/samples/img/amp-300x250.jpg width=300></amp-img>
</a>
<amp-pixel src="https://www.google.com/?cid=CLIENT_ID(a)"></amp-pixel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<body>
<amp-layout id="layout1" class="i-amphtml-element">
<a href=https://ampbyexample.com target=_blank>
<a href=https://amp.dev target=_blank>
<amp-img alt="AMP Ad" height=250 width=300 src=https://amp.dev/static/samples/img/amp-300x250.jpg></amp-img>
</a>
<amp-analytics id="analytics1">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Test Description:
Test for the amp-dynamic-css-classes extension from ampbyexample.com.
Test for the amp-dynamic-css-classes extension from amp.dev.
-->
<!doctype html>
<html lang="en">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PASS
| <!--
| Test Description:
| Test for the amp-dynamic-css-classes extension from ampbyexample.com.
| Test for the amp-dynamic-css-classes extension from amp.dev.
| -->
| <!doctype html>
| <html ⚡ lang="en">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ describes.realWin(
href: 'https://ampproject.org/',
},
{
href: 'https://ampbyexample.com/components/amp-accordion/',
href: 'https://amp.dev/documentation/components/amp-accordion',
},
],
createElement: () => {
Expand All @@ -261,7 +261,7 @@ describes.realWin(
type: 'AMP__LINK-PREFETCH',
payload: [
'https://ampproject.org/',
'https://ampbyexample.com/components/amp-accordion/',
'https://amp.dev/documentation/components/amp-accordion',
],
})
);
Expand Down
4 changes: 2 additions & 2 deletions extensions/amp-list/amp-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ Here is the JSON file that we used:
"url": "https://www.ampproject.org/"
},
{
"title": "AMP By Example",
"url": "https://ampbyexample.com/"
"title": "AMP",
"url": "https://amp.dev/"
},
{
"title": "AMP Start",
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-script/amp-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ You can use `amp-script` to add an `amp-img` or `amp-layout` component to the DO

`amp-script` supports getting and setting [`amp-state`](https://amp.dev/documentation/components/amp-bind/#defining-and-initializing-state-with-<amp-state>) JSON. This lets `amp-script` interact with other AMP elements on the page via [`amp-bind` bindings](https://amp.dev/documentation/components/amp-bind/#bindings).

If you invoke `AMP.setState()` from `amp-script` after a user gesture, bindings can cause mutations to the DOM. Otherwise, state will be set, but binding will not occur (similar to [`amp-state` initialization](https://amp.dev/documentation/examples/components/amp-bind/?referrer=ampbyexample.com#initializing-state)). For more information, see [the section on user gestures](#user-gestures).
If you invoke `AMP.setState()` from `amp-script` after a user gesture, bindings can cause mutations to the DOM. Otherwise, state will be set, but binding will not occur (similar to [`amp-state` initialization](https://amp.dev/documentation/examples/components/amp-bind/)). For more information, see [the section on user gestures](#user-gestures).

`AMP.setState()` works as described in the [`<amp-bind>` documentation](<https://amp.dev/documentation/components/amp-bind/#updating-state-variables-with-amp.setstate()>), merging an object literal into the specified state. This example shows how it can affect the DOM:

Expand Down

0 comments on commit 67ce6d2

Please sign in to comment.