diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards-analysis.yml deleted file mode 100644 index bcef843963..0000000000 --- a/.github/workflows/scorecards-analysis.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Scorecards supply-chain security -on: - # Only the default branch is supported. - branch_protection_rule: - push: - branches: [ main ] - -# Declare default permissions as read only. -permissions: read-all - -jobs: - analysis: - name: Scorecards analysis - runs-on: ubuntu-latest - if: ${{ github.repository == 'flutter/website' }} - permissions: - # Needed to upload the results to code-scanning dashboard. - security-events: write - actions: read - contents: read - id-token: write - - steps: - - name: "Checkout code" - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - with: - persist-credentials: false - - - name: "Run analysis" - uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 - with: - results_file: results.sarif - results_format: sarif - # Read-only PAT token. To create it, - # follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation. - repo_token: ${{ secrets.SCORECARD_READ_TOKEN }} - # Publish the results to enable scorecard badges. For more details, see - # https://github.com/ossf/scorecard-action#publishing-results. - # For private repositories, `publish_results` will automatically be set to `false`, - # regardless of the value entered here. - publish_results: true - - # Upload the results as artifacts (optional). - - name: "Upload artifact" - uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 - 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@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a - with: - sarif_file: results.sarif diff --git a/src/_data/sidenav.yml b/src/_data/sidenav.yml index 107499fdca..2bf423e2a9 100644 --- a/src/_data/sidenav.yml +++ b/src/_data/sidenav.yml @@ -512,7 +512,7 @@ permalink: /packages-and-plugins/using-packages - title: 开发 Package 和插件 permalink: /packages-and-plugins/developing-packages - - title: Swift Package 管理器 + - title: Swift Package Manager permalink: /packages-and-plugins/swift-package-manager children: - title: 针对应用开发者 diff --git a/src/_includes/docs/install/compiler/android.md b/src/_includes/docs/install/compiler/android.md index fafbffdf1e..15ea574886 100644 --- a/src/_includes/docs/install/compiler/android.md +++ b/src/_includes/docs/install/compiler/android.md @@ -179,6 +179,8 @@ Otherwise, you can skip to the [next section][check-dev]. ### Configure your target Android device +### 配置目标 Android 设备 + {% tabs "android-emulator-or-not" %} {% tab "虚拟设备" %} diff --git a/src/_includes/page-github-links.html b/src/_includes/page-github-links.html index 33df61abac..836a1ba0d2 100644 --- a/src/_includes/page-github-links.html +++ b/src/_includes/page-github-links.html @@ -5,9 +5,10 @@ diff --git a/src/content/assets/js/page/install-current.js b/src/content/assets/js/page/install-current.js index 0e45fee876..b7b2813cdf 100644 --- a/src/content/assets/js/page/install-current.js +++ b/src/content/assets/js/page/install-current.js @@ -14,7 +14,7 @@ document.addEventListener("DOMContentLoaded", function(_) { const header = osButton.querySelector('.card-title'); if (!header) return; const currentSubtitle = document.createElement('div'); - currentSubtitle.textContent = 'Current device'; + currentSubtitle.textContent = '当前设备'; currentSubtitle.classList.add('card-subtitle'); header.appendChild(currentSubtitle); });