Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Update grow to v1.0.0 #5292

Merged
merged 32 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
98b7489
:construction: Update imports
lluerich Feb 2, 2021
9b80e67
:construction: Python3 specific changes
lluerich Feb 2, 2021
15d2e27
:package: Update extension due to grow update
lluerich Feb 2, 2021
277c77a
Merge branch 'future' into grow-1-update
lluerich Feb 2, 2021
40cf73d
:mute: Remove additional logs
lluerich Feb 2, 2021
12e3caa
:recycle: Join conditions
lluerich Feb 2, 2021
a163240
:recycle: Remove unneeded import
lluerich Feb 2, 2021
5131d0b
🚧 Tentatively enable CI build
matthiasrohmer Feb 2, 2021
c2c2d03
🔧 Enable build stage on Travis CI
matthiasrohmer Feb 2, 2021
fd4f1a0
Merge branch 'grow-1-update' of github.com:ampproject/amp.dev into gr…
lluerich Feb 2, 2021
e7b2f63
📦 Add python3 to apt packages for Travis
matthiasrohmer Feb 2, 2021
7523632
Merge branch 'grow-1-update' of github.com:ampproject/amp.dev into gr…
lluerich Feb 3, 2021
769c242
🐛 Also install python3-pip as apt package
matthiasrohmer Feb 3, 2021
ac3842b
Merge branch 'grow-1-update' of github.com:ampproject/amp.dev into gr…
matthiasrohmer Feb 3, 2021
9ca94a2
🚧 Install python3.5-complete instead of just python3
matthiasrohmer Feb 3, 2021
5615d25
🚧 Try utilizing pyenv to update Python version
matthiasrohmer Feb 3, 2021
b28a169
🚧 Try to set CLOUDSDK_PYTHON for gsutil
matthiasrohmer Feb 3, 2021
4470618
🎉 Use Grow 1 and Python 3 to build pages
matthiasrohmer Feb 3, 2021
de4d047
:construction: Adapt to python3 open()
lluerich Feb 4, 2021
0e70139
Merge branch 'future' into grow-1-update
lluerich Feb 4, 2021
bf65697
:wrench: Enable full build on Travis CI
lluerich Feb 4, 2021
31f2f05
Merge branch 'grow-1-update' of github.com:ampproject/amp.dev into gr…
lluerich Feb 4, 2021
86ef68b
:wrench: Fix indentation
lluerich Feb 4, 2021
4c70db1
🐛 Unquote $order key in document frontmatter
matthiasrohmer Feb 8, 2021
935bc9e
🐛 Correct path for amp-animation reference documentation
matthiasrohmer Feb 8, 2021
4439d58
🐛 Unquote remaining $order keys in documents
matthiasrohmer Feb 8, 2021
de085ad
👽 Gracefully handle encoding when rewriting TOC
matthiasrohmer Feb 8, 2021
5a420a6
📝 Update instructions to use Grow 1 and Python 3
matthiasrohmer Feb 8, 2021
0915e53
🔧 Update minimum required Grow version to 1
matthiasrohmer Feb 8, 2021
c03bce3
:alien: Fix style of code snippets
lluerich Feb 8, 2021
3c896e4
Merge branch 'future' into grow-1-update
lluerich Feb 8, 2021
d0c78ff
⏪ Disable full builds for PRs again
matthiasrohmer Feb 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
👽 Gracefully handle encoding when rewriting TOC
  • Loading branch information
matthiasrohmer committed Feb 8, 2021
commit de085ad5f321ad0625e4fb755f1095e3d34c16c4
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ AMP 提供了以下两个组件,可满足您的分析和衡量需求:[`amp-p

如果您只是跟踪诸如简单的[跟踪像素](https://en.wikipedia.org/wiki/Web_beacon#Implementation)之类的行为,则可以使用 [`amp-pixel`](../../../../documentation/components/reference/amp-pixel.md) 组件,它提供了基本的网页浏览跟踪功能;网页浏览数据将发送到定义的网址。某些与供应商的集成功能可能需要使用此组件,在这种情况下,这些集成功能将指定确切的网址端点。

对于大多数分析解决方案,请使用 [`amp-analytics`](../../../../documentation/components/reference/amp-analytics.md)。[`amp-analytics`](../../../../documentation/components/reference/amp-analytics.md) 也提供了网页浏览跟踪功能。此外,您还可以跟踪用户与任何类型的网页内容的互动情况,包括链接点击和按钮点击。[filter formats="网站"]而且,您还可以衡量用户在网页上滚动浏览了多少内容、用户是否与社交媒体进行了互动等信息。[/filter] [filter formats="故事"]而且,您还可以衡量用户在故事中浏览了多少内容、用户是否与互动元素进行了互动。[/filter]
对于大多数分析解决方案,请使用 [`amp-analytics`](../../../../documentation/components/reference/amp-analytics.md)。[`amp-analytics`](../../../../documentation/components/reference/amp-analytics.md) 也提供了网页浏览跟踪功能。此外,您还可以跟踪用户与任何类型的网页内容的互动情况,包括链接点击和按钮点击。[filter formats="websites"]而且,您还可以衡量用户在网页上滚动浏览了多少内容、用户是否与社交媒体进行了互动等信息。[/filter] [filter formats="stories"]而且,您还可以衡量用户在故事中浏览了多少内容、用户是否与互动元素进行了互动。[/filter]

[tip type="read-on"] 请参阅[深入了解 AMP 分析](deep_dive_analytics.md)。[/tip]

Expand Down Expand Up @@ -73,7 +73,7 @@ AMP 提供了以下两个组件,可满足您的分析和衡量需求:[`amp-p

当网页变得可见(使用触发器关键字 `visible` 指定)时,事件将触发,并发送 `pageview` 请求。触发器属性决定了 pageview 请求何时触发。详细了解[请求和触发器](deep_dive_analytics.md#requests-triggers--transports)。

[filter formats="故事"]
[filter formats="stories"]

## AMP 故事的默认配置

Expand Down
2 changes: 1 addition & 1 deletion pages/extensions/amp_dev/markdown_extras/block_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ def _get_ssr_filter_tags(attributes):
formats = attributes.get('formats', DEFAULT_FORMATS).replace(' ', '').split(',')

return (
'[% if format in ' + json.dumps(formats) + ' and level in ' + json.dumps(levels) + ' %]',
'[% if format in ' + json.dumps(formats, ensure_ascii=False) + ' and level in ' + json.dumps(levels, ensure_ascii=False) + ' %]',
'[% endif %]'
)