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

[sync] 2023/11/15 #441

Merged
merged 166 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
9673dfe
Fix server tutorial prev->next links (#5092)
parlough Aug 4, 2023
d311ddd
Update various gems (#5094)
parlough Aug 7, 2023
9fbfb5e
Call out some additional server-related packages (#5093)
parlough Aug 7, 2023
6f8ce66
Update body font to 'Google Sans Text' (#5095)
parlough Aug 8, 2023
806ed11
Bump github/codeql-action from 2.21.2 to 2.21.3 (#5098)
dependabot[bot] Aug 9, 2023
08b89e1
Bump activesupport from 7.0.6 to 7.0.7 (#5099)
dependabot[bot] Aug 10, 2023
2a776b6
Incorporate latest diagnostic message and linter rule updates (#5102)
parlough Aug 14, 2023
bc0552f
Add a `/cl` redirect for gerrit CLs (#5106)
parlough Aug 15, 2023
493985a
Fix link in JNI docs (#5114)
mit-mit Aug 15, 2023
9d16248
Bump github/codeql-action from 2.21.3 to 2.21.4 (#5112)
dependabot[bot] Aug 15, 2023
520b96b
Bump actions/setup-node from 3.7.0 to 3.8.0 (#5113)
dependabot[bot] Aug 15, 2023
1c8efdb
Integrate latest diagnostic message cleanup and improvements (#5111)
parlough Aug 16, 2023
cbaa5f2
Bump ruby from `2de48b0` to `8551b19` (#5117)
dependabot[bot] Aug 16, 2023
a10a80f
Update site tooling and examples for Dart 3.1.0 (#5104)
parlough Aug 16, 2023
01878ee
Remove accidental bracket from language evolution page (#5103)
parlough Aug 16, 2023
281a6c5
Update build to use stable (#5119)
parlough Aug 16, 2023
1f534cd
3.1 banner (#5118)
MaryaBelanger Aug 16, 2023
2afb642
Add 3.0 section for What's new (on the site) (#5116)
parlough Aug 16, 2023
46c7ff8
Bump ruby from `8551b19` to `ed848f4` (#5121)
dependabot[bot] Aug 17, 2023
266f4a2
Bump actions/setup-node from 3.8.0 to 3.8.1 (#5128)
dependabot[bot] Aug 18, 2023
edaad6a
Bump ruby from `ed848f4` to `9654f1d` (#5129)
dependabot[bot] Aug 18, 2023
916f63c
Update js-to-dart to fix "increment a before b" example (#5132)
evgeniikozhanov Aug 21, 2023
ead3989
Sort linter rules on the all linter rules page (#5126)
parlough Aug 21, 2023
6668fd9
Add Dart 3.1 to the language evolution page (#5125)
parlough Aug 21, 2023
9ee16a7
Finish language evolution entry for Dart 3.0 (#5130)
parlough Aug 21, 2023
d3f1c64
Add What's new (on the site) entry for Dart 3.1 (#5131)
parlough Aug 21, 2023
0c057ed
Update the name of the dart_community discord (#5120)
parlough Aug 21, 2023
41bcccf
Update site-shared with styles cleanup and new analysis package (#5096)
parlough Aug 21, 2023
7958f0d
Fix linter rule dupe (#5134)
atsansone Aug 21, 2023
7417fbc
Cleanup and replace more dartdevc mentions (#5108)
parlough Aug 22, 2023
2a57d67
Fix table wide tables in "Numbers in dart" page (#5137)
im-victor-mendez Aug 22, 2023
9daae6d
Update Dart platforms diagram (#5135)
parlough Aug 22, 2023
b7ea79d
Fixes instance of #5041 (wide tables) (#5141)
im-victor-mendez Aug 23, 2023
04f5bb6
Bump activesupport from 7.0.7 to 7.0.7.2 (#5142)
dependabot[bot] Aug 23, 2023
8acf365
Clarify multi-line string text (#5140)
kalafut Aug 23, 2023
779d725
Bump actions/checkout from 3.5.3 to 3.6.0 (#5145)
dependabot[bot] Aug 25, 2023
d72affb
Bump github/codeql-action from 2.21.4 to 2.21.5 (#5149)
dependabot[bot] Aug 29, 2023
b378255
Updated all shell code blocks to terminal (#5148)
atsansone Aug 30, 2023
cbb2212
Update to latest Node LTS to fix build (#5151)
parlough Sep 2, 2023
3785afc
Bump actions/checkout from 3.6.0 to 4.0.0 (#5152)
dependabot[bot] Sep 5, 2023
e906315
Unmask Windows ARM64 beta channel downloads. (#5150)
rmacnak-google Sep 5, 2023
6f39f3c
Update site to build with Dart 3.1.1 (#5157)
parlough Sep 8, 2023
5fefc05
Bump actions/upload-artifact from 3.1.2 to 3.1.3 (#5155)
dependabot[bot] Sep 8, 2023
1c225ed
Bump ruby from `9654f1d` to `2f73266` (#5156)
dependabot[bot] Sep 8, 2023
b8a37fe
Bump activesupport from 7.0.7.2 to 7.0.8 (#5161)
dependabot[bot] Sep 11, 2023
382a05e
Clarify how static extension members are invoked (#5153)
hrishikesh-kadam Sep 11, 2023
d81cc50
Update Unsound Null Safety Docs (#5147)
JaffaKetchup Sep 11, 2023
0e0b52b
Update homepage DartPad picker to Dart 3 (#5158)
parlough Sep 13, 2023
b654ecb
Update tools to Dart 3 and standardize analysis (#5159)
parlough Sep 13, 2023
520f08b
Update Dart archive tooling to Dart 3 and cleanup analysis (#5160)
parlough Sep 13, 2023
7c49e22
Update site for Dart 3.1.2 release (#5166)
parlough Sep 13, 2023
6bc7b1f
Bump github/codeql-action from 2.21.5 to 2.21.6 (#5171)
dependabot[bot] Sep 14, 2023
bd3294b
Remove reflection mention from metadata(annotation) page (#5170)
parlough Sep 14, 2023
382636c
Migrate to new node download mechanism (#5163)
parlough Sep 14, 2023
1502655
Bump github/codeql-action from 2.21.6 to 2.21.7 (#5173)
dependabot[bot] Sep 15, 2023
106137b
Account for new `dart:core` annotations and clarify deprecated existe…
parlough Sep 15, 2023
b322f04
Add breaking changes page (#5061)
MaryaBelanger Sep 15, 2023
432d188
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (#5176)
dependabot[bot] Sep 18, 2023
8c2f21a
Fix errors in 'Additional resources' text on Language index page (#5178)
parlough Sep 18, 2023
f68e4d0
Remove unnecessary permalink overrides (#5183)
parlough Sep 18, 2023
7652dd6
Remove unused settings in Jekyll config (#5181)
parlough Sep 18, 2023
05e000d
Simplify and cleanup setup of /tutorials (#5182)
parlough Sep 18, 2023
4e5cf1e
Simplify setup of `/guides` docs (#5186)
parlough Sep 18, 2023
bb08557
Consolidate dart tools in to the `/tools` directory (#5179)
parlough Sep 19, 2023
9d32831
Bump github/codeql-action from 2.21.7 to 2.21.8 (#5195)
dependabot[bot] Sep 19, 2023
bd07de8
Make Flutter community reference more prominent and direct (#5199)
parlough Sep 19, 2023
0464540
Use fenced code blocks for yaml where possible (#5188)
parlough Sep 19, 2023
9a5c80e
Mark a few `gitignore` code blocks more specifically (#5187)
parlough Sep 19, 2023
2c89e72
Update to latest diagnostic messages and linter rule docs (#5200)
parlough Sep 19, 2023
314b9ea
Updated version constraint copy (#5165)
atsansone Sep 19, 2023
190a0c6
Remove now unnecessary version note for `dart test` (#5203)
parlough Sep 19, 2023
fc93d6d
Use fenced code blocks in outdated numeric computation article (#5202)
parlough Sep 19, 2023
9bef68c
Consistently use straight quotation marks (#5201)
parlough Sep 19, 2023
87b4268
Make Effective Dart TOC include private (#5198)
parlough Sep 19, 2023
e639040
Remove unused jekyll plugin (#5185)
parlough Sep 19, 2023
b38d1a5
Update to latest Gems, particularly sass 1.64.2 -> 1.67.0 (#5194)
parlough Sep 19, 2023
5372aa2
Don't use the shared includes for now (#5196)
parlough Sep 19, 2023
684842b
Require each page to have a description (#5184)
parlough Sep 19, 2023
9edd21f
Move `/tools/pub` images to be managed within `/assets` (#5190)
parlough Sep 19, 2023
5231af2
Manage images in `/articles` under `/assets` (#5197)
parlough Sep 19, 2023
b68fd60
Move `/null-safety` images to be managed within `/assets` (#5191)
parlough Sep 19, 2023
a7d8f45
Situate get-dart JS alongside other JS files (#5189)
parlough Sep 19, 2023
b8e5f5b
Move `/language` images to be managed within `/assets` (#5192)
parlough Sep 19, 2023
a96c530
Bump ruby from `b86f083` to `b512f43` (#5207)
dependabot[bot] Sep 20, 2023
b929bd7
Missing quotes in Update patterns.md (#5174)
marcmcd Sep 20, 2023
400873d
Fix duplicate end docregion code excerpt updater error (#5210)
parlough Sep 20, 2023
2d84793
Redirect away from unused articles index page (#5180)
parlough Sep 20, 2023
092eac6
Explicitly only run css and js loops if specified (#5211)
parlough Sep 20, 2023
5999831
Switch to fenced code blocks in codecs articles (#5208)
parlough Sep 20, 2023
080a446
Use fenced code blocks instead of prettify blocks in Effective Dart (…
parlough Sep 20, 2023
9fd4b10
Remove and replace some explicit version mentions in Effective Dart (…
parlough Sep 20, 2023
0a9d8cd
Simplify `/articles` setup to be normally generated directory (#5205)
parlough Sep 20, 2023
d95d11e
refactor(Null safety): fix typo about number of core design principle…
dancer1325 Sep 20, 2023
734a585
Bump ruby from `b512f43` to `f3af35b` (#5212)
dependabot[bot] Sep 21, 2023
a3b0b4d
Bump ruby from `f3af35b` to `6ff55a1` (#5220)
dependabot[bot] Sep 22, 2023
4a182e9
Update Twitter logo and references to X (#5216)
parlough Sep 22, 2023
26275d3
Cleanup generated human readable index (#5213)
parlough Sep 22, 2023
162173d
Remove unused includes from old article format (#5214)
parlough Sep 22, 2023
27cbdbd
Add missing code excerpts to type system page (#5217)
parlough Sep 22, 2023
19b0c59
Misc migrations away from prettify (#5218)
parlough Sep 22, 2023
6fa9df8
Bump actions/checkout from 4.0.0 to 4.1.0 (#5223)
dependabot[bot] Sep 25, 2023
64307fb
Link to #server packages (#5224)
mit-mit Sep 26, 2023
8a3f904
Bump github/codeql-action from 2.21.8 to 2.21.9 (#5226)
dependabot[bot] Oct 5, 2023
753d458
Updates SHA process (#5230)
atsansone Oct 6, 2023
2744ab0
Update site for release of Dart 3.1.3 (#5225)
parlough Oct 6, 2023
1bd3d85
Update for latest diagnostic messages (#5231)
parlough Oct 6, 2023
6d1ae53
Update package-layout.md to include the integration_test dir (#5228)
jakemac53 Oct 6, 2023
0c9a015
Bump ossf/scorecard-action from 2.2.0 to 2.3.0 (#5235)
dependabot[bot] Oct 9, 2023
e9dd5be
Bump github/codeql-action from 2.21.9 to 2.22.0 (#5236)
dependabot[bot] Oct 9, 2023
03360f2
Bump activesupport from 7.0.8 to 7.1.0 (#5232)
dependabot[bot] Oct 9, 2023
fcf4bdc
Bump github/codeql-action from 2.22.0 to 2.22.1 (#5238)
dependabot[bot] Oct 10, 2023
5b44eba
Point new promo go links to /non-promotion-reasons (#5237)
MaryaBelanger Oct 10, 2023
5e77a8f
Remove old cheatsheet (#5241)
parlough Oct 11, 2023
98ef885
Remove ephemeral `Dockerfile.save` file (#5239)
parlough Oct 11, 2023
5c0f450
Reduce padding at top of content (#5240)
parlough Oct 11, 2023
7d2e5ee
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#5243)
dependabot[bot] Oct 12, 2023
32ee95e
Bump activesupport from 7.1.0 to 7.1.1 (#5245)
dependabot[bot] Oct 12, 2023
14786fd
Bump github/codeql-action from 2.22.1 to 2.22.2 (#5244)
dependabot[bot] Oct 12, 2023
0b02f4c
Bump ruby from `6ff55a1` to `cace374` (#5242)
dependabot[bot] Oct 12, 2023
4b4476b
Removed the latest keyword from the docs, fix issue #5233 (#5234)
abinvs-2019 Oct 13, 2023
8581a6c
Bump github/codeql-action from 2.22.2 to 2.22.3 (#5250)
dependabot[bot] Oct 16, 2023
b17bb74
Fix a few spelling mistakes in dart compile docs (#5248)
parlough Oct 17, 2023
854dfcb
Update pubspec doc to use dart pub (#5253)
filiph Oct 17, 2023
0b06dc1
Bump actions/checkout from 4.1.0 to 4.1.1 (#5256)
dependabot[bot] Oct 18, 2023
a411ece
Update site for Dart 3.1.4 stable release (#5257)
parlough Oct 18, 2023
2f5f462
Updates dependabot and no-response pages with new GitHub labels (#5260)
atsansone Oct 18, 2023
0e919c1
Minor language update. (#5261)
polina-c Oct 19, 2023
ae07e16
Update guard clause content (#5258)
MaryaBelanger Oct 19, 2023
60232bc
Exclude internal linter rules from generated docs (#5263)
parlough Oct 19, 2023
dee099e
Update Node version to 20 LTS release (#5264)
parlough Oct 19, 2023
09e96b8
Update to `package:lints` v3 (#5267)
parlough Oct 20, 2023
2f0b8e9
Update linter docs for lints 3.0 release (#5266)
parlough Oct 20, 2023
458619d
Bump github/codeql-action from 2.22.3 to 2.22.4 (#5273)
dependabot[bot] Oct 23, 2023
d3cdb25
Remove popover tooling and update CLI tutorial (#5271)
parlough Oct 23, 2023
fdec318
Fixes to the command line tutorial (#5276)
parlough Oct 24, 2023
0004471
Reduce home page load time by lazy loading DartPad iframe (#5272)
parlough Oct 24, 2023
9f1002e
Bump actions/setup-node from 3.8.1 to 4.0.0 (#5278)
dependabot[bot] Oct 24, 2023
55ed4fb
Bump ossf/scorecard-action from 2.3.0 to 2.3.1 (#5277)
dependabot[bot] Oct 24, 2023
e3d8824
Update site for release of Dart 3.1.5 (#5287)
parlough Oct 25, 2023
27c5221
Don't run tests on the dev channel for now to fix build (#5282)
parlough Oct 25, 2023
56047ba
Updates page templates and updates GitHub labels (#5279)
atsansone Oct 26, 2023
47ac25f
Update more uses of prettify to Markdown code blocks (#5289)
parlough Oct 26, 2023
0803cd8
Bump github/codeql-action from 2.22.4 to 2.22.5 (#5304)
dependabot[bot] Oct 27, 2023
bda1946
Remove incorrect/outdated Dart 3 mention on JS interop page (#5305)
parlough Oct 28, 2023
92ab51f
Bump ruby from `17de113` to `7650cb9` (#5308)
dependabot[bot] Nov 1, 2023
b7909fb
Bump ruby from `6f687ef` to `adc7f93` (#5311)
dependabot[bot] Nov 2, 2023
5d3cbd9
Fix typos in language/patterns.md (#5313)
christopherfujino Nov 3, 2023
8407c2d
Update linter rules for known limitations (#5312)
parlough Nov 3, 2023
c57c2c4
Update Effective Dart on mixins for Dart 3 changes (#5017)
MaryaBelanger Nov 6, 2023
ff76a48
Update supported macOS versions for Sonoma (#5322)
athomas Nov 6, 2023
eee233d
Update constructors page (#5283)
MaryaBelanger Nov 7, 2023
b40c41c
Update text colors and highlighting for increased contrast (#5318)
parlough Nov 7, 2023
706663a
Fix and remove duplicated `toc` ID (#5317)
parlough Nov 7, 2023
86cb5b7
Avoid duplicated search box IDs (#5319)
parlough Nov 7, 2023
1f2c5e0
Update firebase-tools to 12.8.1 for latest fixes (#5327)
parlough Nov 10, 2023
5e0012e
Add `go/package-discontinue` direct (#5335)
szakarias Nov 10, 2023
a3d9171
Bump activesupport from 7.1.1 to 7.1.2 (#5337)
dependabot[bot] Nov 13, 2023
91fe8c5
sync: 2023/11/15
AmosHuKe Nov 14, 2023
483e21f
Update: ISSUE_TEMPLATE - 1_page_issue
AmosHuKe Nov 14, 2023
f779ad3
Create: sitemap.xml
AmosHuKe Nov 15, 2023
10d1891
Update: $site-font-family-base
AmosHuKe Nov 15, 2023
67de848
Fix: duplicate description
AmosHuKe Nov 15, 2023
52d9683
Improve: docker setup for local development
AmosHuKe Nov 15, 2023
0739978
Update: ISSUE_TEMPLATE - 1_page_issue.yml
AmosHuKe Nov 15, 2023
c6d5098
Update: src\_includes\page-github-links.html
AmosHuKe Nov 15, 2023
ac0cece
Update: local URL
AmosHuKe Nov 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 10 additions & 2 deletions .github/ISSUE_TEMPLATE/1_page_issue.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 文档或页面问题
description: 协助改进 dart.cn 的页面内容
title: "[PAGE ISSUE]: '{请替换为页面的标题}'"
title: '[页面问题] {请替换为页面的标题}'
labels: ['E: 页面问题']
body:
- type: markdown
Expand All @@ -11,7 +11,7 @@ body:
id: page-url
attributes:
label: 页面 URL
placeholder: "例如:https://dart.cn/docs"
placeholder: "例如:https://dart.cn/guides"
validations:
required: true
- type: input
Expand Down Expand Up @@ -42,3 +42,11 @@ body:
placeholder: 任何你认为我们需要知道的额外信息。
validations:
required: false
- type: checkboxes
id: volunteer
attributes:
label: 我想来解决这个问题。
description: 如果你想自己尝试修复,请告诉我们。
options:
- label: 我会尝试在 dart.cn 上解决这个问题。
required: false
21 changes: 3 additions & 18 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
Thanks for your contribution! Please replace this text with a description of what this PR is changing or adding and why, list any relevant issues, and review the contribution guidelines below.
**请点击「Preview」选择提交 PR 的模板**:

Fixes <Replace with issue link>

---

- [ ] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
- [ ] This PR doesn’t contain automatically generated corrections or text (Grammarly, LLMs, and similar).
- [ ] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person).
- [ ] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.

<details>
<summary>Contribution guidelines:</summary><br>

- See our [contributor guide](https://github.com/dart-lang/site-www/blob/main/CONTRIBUTING.md) for general expectations for PRs.
- Larger or significant changes should be discussed in an issue before creating a PR.
- Code changes should generally follow the [Dart style guide](https://dart.dev/effective-dart) and use `dart format`.
- Updates to [code excerpts](https://github.com/dart-lang/site-shared/blob/main/doc/code-excerpts.md) indicated by `<?code-excerpt` need to be updated in their source `.dart` file as well.
</details>
- [内容修订](?template=1_cn_doc_fix.md)
- [新增翻译](?template=2_localization_submission.md)
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
# Keep for Dart SDK reporting
PUB_ENVIRONMENT: bot.github
# LTS
NODE_VERSION: '18'
NODE_VERSION: '20'
# Tool location
BASE_DIR: ${{ github.workspace }}
TOOL_DIR: ${{ github.workspace }}/tool
Expand All @@ -31,14 +31,18 @@ jobs:
fail-fast: false
matrix:
include:
# - sdk: dev
# experimental: false
- sdk: beta
experimental: false
- sdk: stable
experimental: false
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: ${{ matrix.sdk }}
- run: dart pub get
Expand All @@ -59,15 +63,15 @@ jobs:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_PROJECT: default
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- run: make build
- run: make write-prod-robots
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
with:
node-version: ${{ env.NODE_VERSION }}
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: stable
#- run: tool/check-links.sh
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@0ba4244466797eb048eb91a6cd43d5c03ca8bd05
uses: github/codeql-action/init@74483a38d39275f33fcff5f35b679b5ca4a26a99
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -44,7 +44,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@0ba4244466797eb048eb91a6cd43d5c03ca8bd05
uses: github/codeql-action/autobuild@74483a38d39275f33fcff5f35b679b5ca4a26a99

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -58,4 +58,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0ba4244466797eb048eb91a6cd43d5c03ca8bd05
uses: github/codeql-action/analyze@74483a38d39275f33fcff5f35b679b5ca4a26a99
2 changes: 1 addition & 1 deletion .github/workflows/no-response.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
# Number of days of inactivity before an issue is closed for lack of response.
daysUntilClose: 21
# Label requiring a response.
responseRequiredLabel: "waiting for customer response"
responseRequiredLabel: "act.wait-for-customer"
8 changes: 4 additions & 4 deletions .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -41,14 +41,14 @@ jobs:

# Upload the results as artifacts (optional).
- name: "Upload artifact"
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@0ba4244466797eb048eb91a6cd43d5c03ca8bd05
uses: github/codeql-action/upload-sarif@74483a38d39275f33fcff5f35b679b5ca4a26a99
with:
sarif_file: results.sarif
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ tmp
# Misc
trash
/src/_data/ci.yaml

# SHA Update
# The script generates the .save file in case you need a rollback.
*.save
tool/new-dart-hashes.txt
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "site-shared"]
path = site-shared
url = https://github.com/dart-lang/site-shared.git
branch = main
path = site-shared
url = https://github.com/dart-lang/site-shared
branch = main
61 changes: 34 additions & 27 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM ruby:3.2-slim-bookworm@sha256:2de48b02b2c3383799991fd5573462a7646a92a068b4afbb0e161ad166a3de9a as base
FROM ruby:3.2-slim-bookworm@sha256:adc7f93df5b83c8627b3fadcc974ce452ef9999603f65f637e32b8acec096ae1 as base

SHELL ["/usr/bin/bash", "-c"]

# Configure Debian mirrors.
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=US/Pacific
ENV TZ=Asia/Shanghai
RUN apt update && apt install -yq --no-install-recommends \
build-essential \
ca-certificates \
curl \
git \
gnupg \
lsof \
make \
unzip \
Expand All @@ -32,27 +38,29 @@ ENV DART_SDK=/usr/lib/dart
ENV PATH=$DART_SDK/bin:$PATH
RUN set -eu; \
case "$(dpkg --print-architecture)_${DART_CHANNEL}" in \
# BEGIN dart-sha
amd64_stable) \
DART_SHA256="cccd5300faa5a9abce12a5f77586e26350028cea82bb4ff8eeb55641b58a2e1d"; \
DART_SHA256="4342ba274a4e9f8057079cf9de43b1c7bdb002016ad538313e8ebe942b61bba8"; \
SDK_ARCH="x64";; \
arm64_stable) \
DART_SHA256="2c8eeaf0d3da60c4e14beec45ce3b39aca754f71b9fa3fb0c635ee28d6f44708"; \
DART_SHA256="0f0e19c276c99fa3efd6428ea4bef1502f742f2a1f9772959637eec775c10ba0"; \
SDK_ARCH="arm64";; \
amd64_beta) \
DART_SHA256="e3bdf39358dda7f0fd02b25d4d4539536fff53b4ab257da31a5fbbe42edc28c9"; \
DART_SHA256="b3aa85b15bd13d619ba924524d5c7f082dc256a062ad34fe12ec824c9f05c2b3"; \
SDK_ARCH="x64";; \
arm64_beta) \
DART_SHA256="7e7c2d1d4c8c8a6a47d916f422ddad2d5497307a147fa860b7b063ffdd162939"; \
DART_SHA256="b7644435c8acf1e73da3f1ce16889b7222fbab37a75111aff225422a1cc61cab"; \
SDK_ARCH="arm64";; \
amd64_dev) \
DART_SHA256="53368087f4c191d8b55338d13c32a70bf6cbfb0a99b6b4d86e53cb366bfce446"; \
DART_SHA256="ae283eec0aa6e044064a79fc524af3dffec0543c48488538fc1a01a1fae7567b"; \
SDK_ARCH="x64";; \
arm64_dev) \
DART_SHA256="474a251dfa7f6ba41f68d889b774569c4d2da5b4262f0c48fa53424e5b42f200"; \
DART_SHA256="99153759fe1edbc5c1c6a8c5e5164fad11671eed8a8899bf127a17412b701172"; \
SDK_ARCH="arm64";; \
# END dart-sha
esac; \
SDK="dartsdk-linux-${SDK_ARCH}-release.zip"; \
BASEURL="https://storage.googleapis.com/dart-archive/channels"; \
BASEURL="https://storage.flutter-io.cn/dart-archive/channels"; \
URL="$BASEURL/$DART_CHANNEL/release/$DART_VERSION/sdk/$SDK"; \
curl -fsSLO "$URL"; \
echo "$DART_SHA256 *$SDK" | sha256sum --check --status --strict - || (\
Expand All @@ -78,21 +86,13 @@ CMD ["./tool/test.sh"]

# ============== NODEJS INSTALL ==============
FROM dart as node
RUN set -eu; \
NODE_PPA="node_ppa.sh"; \
NODE_SHA256=4ef190086f051a5242b8f9e7dff891d94c72bd484672d4a962f7189556977994; \
curl -fsSL https://deb.nodesource.com/setup_lts.x -o "$NODE_PPA"; \
echo "$NODE_SHA256 $NODE_PPA" | sha256sum --check --status --strict - || (\
echo -e "\n\nNODE CHECKSUM FAILED! Run tool/fetch-node-ppa-sum.sh for updated values.\n\n" && \
rm "$NODE_PPA" && \
exit 1 \
); \
sh "$NODE_PPA" && rm "$NODE_PPA"; \
apt-get update -q && apt-get install -yq --no-install-recommends \
nodejs \
&& rm -rf /var/lib/apt/lists/*
# Ensure latest NPM
RUN npm install -g npm

RUN mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update -yq \
&& apt-get install nodejs -yq \
&& npm install -g npm # Ensure latest npm


# ============== DEV/JEKYLL SETUP ==============
Expand All @@ -106,7 +106,8 @@ RUN BUNDLE_WITHOUT="test production" bundle install --jobs=4 --retry=2

ENV NODE_ENV=development
COPY package.json package-lock.json ./
RUN npm install
RUN npm install -g [email protected]
RUN npm ci

COPY ./ ./

Expand Down Expand Up @@ -137,7 +138,7 @@ CMD ["make", "emulate"]


# ============== BUILD PROD JEKYLL SITE ==============
FROM node AS build
FROM node as build
WORKDIR /app

ENV JEKYLL_ENV=production
Expand All @@ -147,7 +148,7 @@ RUN BUNDLE_WITHOUT="test development" bundle install --jobs=4 --retry=2 --quiet

ENV NODE_ENV=production
COPY package.json package-lock.json ./
RUN npm install
RUN npm ci

COPY ./ ./

Expand All @@ -164,4 +165,10 @@ RUN tool/translator/build.sh

# ============== DEPLOY to FIREBASE ==============
FROM build as deploy
# RUN npm install -g [email protected]
# ARG FIREBASE_TOKEN
# ENV FIREBASE_TOKEN=$FIREBASE_TOKEN
# ARG FIREBASE_PROJECT=default
# ENV FIREBASE_PROJECT=$FIREBASE_PROJECT
# RUN [[ -z "$FIREBASE_TOKEN" ]] && echo "FIREBASE_TOKEN is required for container deploy!"
RUN make deploy-ci
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

gem 'activesupport', '~> 7.0.6'
gem 'activesupport', '~> 7.1.2'
gem 'jekyll', '4.3.2'
gem 'jekyll-sass-converter', '~> 3.0.0'
gem 'kramdown-parser-gfm'
Expand Down
Loading