Skip to content

Commit

Permalink
Fix: links
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Mar 7, 2024
1 parent 441f98d commit 6e95f7b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/content/effective-dart/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Using a doc comment instead of a regular comment enables
[`dart doc`][] to find it
and generate documentation for it.

使用文档注释可以让 [dartdoc][] 来为你生成代码 API 文档。
使用文档注释可以让 [`dart doc`][] 来为你生成代码 API 文档。

<?code-excerpt "docs_good.dart (use-doc-comments)"?>
```dart tag=good
Expand Down
2 changes: 1 addition & 1 deletion src/content/guides/language/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The Dart 2 language specification is available in PDF format:

* [Formal specification (Dart 2.10)][2-10 formal spec]

[正式的规范文档 (Dart 2.10 版本)][formal spec]
[正式的规范文档 (Dart 2.10 版本)][2-10 formal spec]

[2-10 formal spec]: /guides/language/specifications/DartLangSpec-v2.10.pdf

Expand Down
2 changes: 1 addition & 1 deletion src/content/guides/libraries/create-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ the [`dart doc`][] tool.
[documentation comments](/effective-dart/documentation#doc-comments),
which use the `///` syntax:

使用 [dartdoc][] 可以为 Library 生成 API 文档。
使用 [`dart doc`][] 可以为 Library 生成 API 文档。
dartdoc 解析源文件去查找使用 `///` 语法标注的
[文档注释](/effective-dart/documentation#doc-comments)

Expand Down
4 changes: 0 additions & 4 deletions src/content/tools/dartpad/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ DartPad 尚不支持使用其他在 pub.dev 上的 package。
[multi-platform]: /libraries#multi-platform-libraries
[currently supported packages]: https://github.com/dart-lang/dart-pad/wiki/Package-and-plugin-support#currently-supported-packages

DartPad 不支持 [延迟加载][deferred loading] 以及其他三方库。
例如,DartPad 不支持使用 [pub.dev]({{site.pub}}) 仓库中的 package。
(对于 Package 的支持之后可能会有所变化,详情请关注[issue 901][]。)

## Getting started

## 开始体验
Expand Down
2 changes: 1 addition & 1 deletion src/content/tools/pub/cmd/pub-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ expected to work with a range of dependency versions.

`dart pub get` 命令获取新依赖项后会写入一个 [lockfile](/tools/pub/glossary#lockfile) 文件
以确保下次执行该命令时会使用相同的依赖项版本。
[应用型的 package][Application package] 应该总是签入该 lockfile 文件以控制来源;
[应用型的 package][Application packages] 应该总是签入该 lockfile 文件以控制来源;
从而确保在将 package 部署到生产环境时所有的依赖项对于所有开发者而言都是相同的版本。
库类型的 package 则不需要签入 lockfile 文件,因为它们可能需要使用到不同的依赖项版本。

Expand Down
2 changes: 1 addition & 1 deletion src/content/tools/pub/cmd/pub-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ because packages are expected to work with a range of dependency versions.

`dart pub upgrade` 命令会在更新依赖的版本时写入一个 lockfile 文件以确保后续使用
[`dart pub get`](/tools/pub/cmd/pub-get) 命令时使用的是相同的依赖版本。
[应用 Package][application package] 而言,签入 lockfile 文件以控制来源;
[应用 Package][application packages] 而言,签入 lockfile 文件以控制来源;
此操作可以确保当你将应用部署到生产环境时,
所有的开发者使用的依赖项都是完全相同的版本以避免冲突。
而对库 Package 而言,则不要签入 lockfile 文件,
Expand Down

0 comments on commit 6e95f7b

Please sign in to comment.