From e1f72b7701458391aeef6e1c6a71d2d8bb90d1b7 Mon Sep 17 00:00:00 2001
From: Claudio Cherubino <ccherubino@google.com>
Date: Mon, 25 Mar 2019 04:05:39 +0000
Subject: [PATCH] [docs] Fix broken links.

Change-Id: Ib45e99305583294bcd761a31a3369b21c407f3cd
---
 docs/development/build/overview.md              |  2 +-
 docs/development/build/products.md              | 17 +++++------------
 docs/development/languages/dart/README.md       |  2 +-
 docs/development/languages/dart/mods.md         |  8 +++-----
 .../languages/fidl/reference/ftp/ftp-013.md     |  2 +-
 docs/development/languages/rust/README.md       |  4 ++--
 docs/development/languages/rust/unstable.md     |  2 +-
 docs/getting_started.md                         |  2 +-
 docs/the-book/README.md                         |  2 +-
 docs/the-book/bluetooth_source_layout.md        |  3 +--
 10 files changed, 17 insertions(+), 27 deletions(-)

diff --git a/docs/development/build/overview.md b/docs/development/build/overview.md
index c36c77f48d8..12d36efae4a 100644
--- a/docs/development/build/overview.md
+++ b/docs/development/build/overview.md
@@ -221,7 +221,7 @@ You likely forgot to run **A** before running **B**.
 
 > TODO(pylaligand): .gn, default target, mkbootfs, GN labels insertion
 
-[gn-main]: https://chromium.googlesource.com/chromium/src/tools/gn/+/HEAD/README.md
+[gn-main]: https://gn.googlesource.com/gn/
 [gn-preso]: https://docs.google.com/presentation/d/15Zwb53JcncHfEwHpnG_PoIbbzQ3GQi_cpujYwbpcbZo/
 [ninja-main]: https://ninja-build.org/
 [gn-reference]: https://gn.googlesource.com/gn/+/master/docs/reference.md
diff --git a/docs/development/build/products.md b/docs/development/build/products.md
index ddbd6b55a96..4a458863dc4 100644
--- a/docs/development/build/products.md
+++ b/docs/development/build/products.md
@@ -1,14 +1,9 @@
 # Products
 
-**Products** are defined in JSON files which can be found at:
-
-* Garnet Layer Products: [`//garnet/products/`][garnet-products-source].
-* Peridot Layer Products: [`//peridot/products/`][peridot-products-source].
-* Topaz Layer Products: [`//topaz/products/`][topaz-products-source].
-
-Products are a Fuchsia-specific feature built on top of GN to help customize
-Fuchsia builds. Products reference [packages](packages.md) and coarsely
-define which build artifacts the packages are added to.
+[**Products**][products-source] are a Fuchsia-specific feature built on
+top of GN to help customize Fuchsia builds. Products reference
+[packages](packages.md) and coarsely define which build artifacts the
+packages are added to.
 
 ## Package Sets
 
@@ -68,7 +63,5 @@ produces this for the build and can be run by hand:
 $ python build/gn/preprocess_products.py --products '["garnet/products/default"]'
 ```
 
-[garnet-products-source]: https://fuchsia.googlesource.com/fuchsia/+/master/garnet/products/
-[peridot-products-source]: https://fuchsia.googlesource.com/fuchsia/+/master/peridot/products/
-[topaz-products-source]: https://fuchsia.googlesource.com/topaz/+/master/products/
+[products-source]: https://fuchsia.googlesource.com/fuchsia/+/master/products/
 [preprocess-products-py]: https://fuchsia.googlesource.com/fuchsia/+/master/build/gn/preprocess_products.py
diff --git a/docs/development/languages/dart/README.md b/docs/development/languages/dart/README.md
index 334d09bdbae..42a1c17865c 100644
--- a/docs/development/languages/dart/README.md
+++ b/docs/development/languages/dart/README.md
@@ -62,5 +62,5 @@ my_package/
 [target-app]: https://fuchsia.googlesource.com/topaz/+/master/runtime/dart_runner/dart_app.gni "dart_app target"
 [target-tool]: https://fuchsia.googlesource.com/fuchsia/+/master/build/dart/dart_tool.gni "dart_tool target"
 [target-flutter]: https://fuchsia.googlesource.com/topaz/+/master/runtime/flutter_runner/flutter_app.gni "flutter_app target"
-[target-test]: https://fuchsia.googlesource.com/topaz/+/master/build/dart/test.gni "dart_test target"
+[target-test]: https://fuchsia.googlesource.com/fuchsia/+/master/build/dart/dart.gni "dart_test target"
 [flutter]: https://flutter.io/ "Flutter"
diff --git a/docs/development/languages/dart/mods.md b/docs/development/languages/dart/mods.md
index de0a17516c0..a01da86e63d 100644
--- a/docs/development/languages/dart/mods.md
+++ b/docs/development/languages/dart/mods.md
@@ -8,7 +8,7 @@ fuchsia build and included in the bootfs.
 
 ## Hello
 
-(located in `//topaz/examples/ui/hello_mod/`)
+(More samples located in `//topaz/examples/ui/`)
 
 This example demonstrates how to create a minimal flutter module and implement
 the `Module` interface. It shows a simple flutter text widget displaying "hello"
@@ -17,7 +17,7 @@ on the screen.
 ## Running the Examples on Fuchsia
 
 You can run an example module without going through the full-blown session shell.
-The available URLs for for flutter module examples are:
+The available URLs for flutter module examples are:
 
 *   `hello_mod`
 
@@ -33,9 +33,7 @@ basemgr --session_shell=dev_session_shell --session_shell_args=--root_module=hel
 
 A flutter module is a flutter app which use [ModuleDriver](
 https://fuchsia.googlesource.com/topaz/+/master/public/lib/app_driver/dart/lib/src/module_driver.dart)
-. An example of a minimal
-flutter module is available in [//topaz/examples/ui/hello_mod/](
-https://fuchsia.googlesource.com/topaz/+/master/examples/ui/hello_mod/).
+.
 
 Below we reproduce the contents of `main()` from that example:
 
diff --git a/docs/development/languages/fidl/reference/ftp/ftp-013.md b/docs/development/languages/fidl/reference/ftp/ftp-013.md
index 476a54da829..9d4a5b2a78c 100644
--- a/docs/development/languages/fidl/reference/ftp/ftp-013.md
+++ b/docs/development/languages/fidl/reference/ftp/ftp-013.md
@@ -222,6 +222,6 @@ for this field anymore, code should stop using this data."
 [rust-deny-warnings]: https://doc.rust-lang.org/reference/attributes.html#lint-check-attributes
 [rust-allow-deprecated]: https://doc.rust-lang.org/reference/attributes.html#lint-check-attributes
 [go-doc-comments]: https://fuchsia.googlesource.com/fuchsia/+/master/docs/development/languages/fidl/reference/ftp/ftp-009.md
-[go-staticcheck]: https://staticcheck.io/docs/staticcheck#checks
+[go-staticcheck]: https://staticcheck.io/docs/checks#checks
 [protobufs-only-on-fields]: https://developers.google.com/protocol-buffers/docs/proto3
 [flatbuffers-only-on-fields]: https://google.github.io/flatbuffers/md__schemas.html
diff --git a/docs/development/languages/rust/README.md b/docs/development/languages/rust/README.md
index b2b9fae6e76..b666e0f3a8d 100644
--- a/docs/development/languages/rust/README.md
+++ b/docs/development/languages/rust/README.md
@@ -94,7 +94,7 @@ Googler-only channels, see [go/fuchsia-rust-googlers].
 [rust-examples]: https://fuchsia.googlesource.com/fuchsia/+/master/garnet/examples/rust/
 [fargo]: https://fuchsia.googlesource.com/fargo
 [rustfmt-install]: https://github.com/rust-lang-nursery/rustfmt#quick-start
-[rustfmt-toml]: https://fuchsia.googlesource.com/fuchsia/+/master/garnet/rustfmt.toml
+[rustfmt-toml]: https://fuchsia.googlesource.com/build/+/refs/heads/master/rustfmt.toml
 [fidl-tutorial]: ../fidl/tutorial/tutorial-rust.md
 [rust@fuchsia.com]: https://groups.google.com/a/fuchsia.com/forum/#!forum/rust-fuchsia
-[go/fuchsia-rust-googlers]: https://goto.google.com/fuchsia-rust-googlers
\ No newline at end of file
+[go/fuchsia-rust-googlers]: https://goto.google.com/fuchsia-rust-googlers
diff --git a/docs/development/languages/rust/unstable.md b/docs/development/languages/rust/unstable.md
index 34f3de09942..d6d38abfb6f 100644
--- a/docs/development/languages/rust/unstable.md
+++ b/docs/development/languages/rust/unstable.md
@@ -103,7 +103,7 @@ This list includes all of the unstable features currently used in Fuchsia.
 [Rust 2018: an early preview]: https://internals.rust-lang.org/t/rust-2018-an-early-preview/7776
 [Rust 2018: the home stretch]: https://internals.rust-lang.org/t/rust-2018-the-home-stretch/7810
 
-[buildtools]: https://fuchsia.googlesource.com/fuchsia/+/master/buildtools/fuchsia.ensure#46
+[buildtools]: https://fuchsia.googlesource.com/buildtools/+/master/fuchsia.ensure#42
 [rust builder]: https://ci.chromium.org/p/fuchsia/g/rust/console
 [third_party/rust]: https://fuchsia.googlesource.com/third_party/rust/
 [tracking issues]: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AC-tracking-issue
diff --git a/docs/getting_started.md b/docs/getting_started.md
index 2f268915802..394d002c827 100644
--- a/docs/getting_started.md
+++ b/docs/getting_started.md
@@ -240,7 +240,7 @@ launch spinning_square_view
 Source code for Mozart example apps is [here](/garnet/examples/ui).
 
 When you launch something that uses Mozart, uses hardware-accelerated graphics, or if you build
-the [default](https://fuchsia.googlesource.com/topaz/+/master/packages/default) package (which will
+the [default](https://fuchsia.googlesource.com/topaz/+/master/packages) package (which will
 boot into the Fuchsia System UI), Fuchsia will enter "graphics mode", which will not display any
 of the text shells. In order to use the text shell, you will need to enter "console mode" by
 pressing Alt-Escape. In console mode, Alt-Tab will have the behavior described in the previous
diff --git a/docs/the-book/README.md b/docs/the-book/README.md
index de13933200b..3dd246501cc 100644
--- a/docs/the-book/README.md
+++ b/docs/the-book/README.md
@@ -103,7 +103,7 @@ also provides core drivers and Fuchsia's libc implementation.
 [framework-agent]: https://fuchsia.googlesource.com/fuchsia/+/master/peridot/docs/modular/agent.md
 [ledger]: https://fuchsia.googlesource.com/fuchsia/+/master/src/ledger/docs/README.md
 [bluetooth]: https://fuchsia.googlesource.com/fuchsia/+/master/garnet/bin/bluetooth/README.md
-[telephony]: https://fuchsia.googlesource.com/fuchsia/+/master/garnet/bin/telephony/README.md
+[telephony]: https://fuchsia.googlesource.com/fuchsia/+/master/src/connectivity/telephony/
 [magma]: https://fuchsia.googlesource.com/fuchsia/+/master/garnet/lib/magma/
 [escher]: https://fuchsia.googlesource.com/fuchsia/+/master/garnet/public/lib/escher/
 [scenic]: https://fuchsia.googlesource.com/fuchsia/+/master/garnet/docs/ui/scenic.md
diff --git a/docs/the-book/bluetooth_source_layout.md b/docs/the-book/bluetooth_source_layout.md
index 5e0df317c6c..aee120112ed 100644
--- a/docs/the-book/bluetooth_source_layout.md
+++ b/docs/the-book/bluetooth_source_layout.md
@@ -1,7 +1,6 @@
 # Bluetooth Source Layout
 
-The [Bluetooth
-System](https://fuchsia.googlesource.com/fuchsia/+/master/garnet/docs/bluetooth_architecture.md)
+The [Bluetooth System](bluetooth_architecture.md)
 comprises many components, such as drivers, profiles, and client
 applications. This document provides an overview of where the various components
 live in the source tree.
-- 
GitLab