0

Move more WebUI docs under docs/webui/ folder, fix broken links.

Bug: None
Change-Id: I5d5589951e383176893e0947fd72201b7a665d6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6192917
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1410389}
This commit is contained in:
dpapad
2025-01-23 08:59:50 -08:00
committed by Chromium LUCI CQ
parent 911c1781c6
commit 0993479170
6 changed files with 13 additions and 15 deletions

@ -167,11 +167,6 @@ used when committed.
* [Guidelines for considering branch dates in project planning](release_branch_guidance.md) -
What to do (and not to do) around branch dates when scheduling your project
work.
* [WebUI Explainer](webui_explainer.md) - An explanation of C++ and JavaScript
infrastructural code for Chrome UIs implemented with web technologies (i.e.
chrome:// URLs).
* [Optimizing Chrome Web UIs](optimizing_web_uis.md) - Notes on making webuis
more performant
* [Watchlists](infra/watchlists.md) - Use watchlists to get notified of CLs
you are interested in.
* [Shutdown](shutdown.md) - Explains the steps of Chrome shutdown, to make it
@ -337,12 +332,15 @@ used when committed.
* [Debugging tips](testing/chromeos_debugging_tips.md)
### Misc WebUI-Specific Docs
* [Creating WebUI Interfaces in components/](webui_in_components.md) - How to
create a new WebUI component in the `components/` directory.
* [Trusted Types on WebUI](trusted_types_on_webui.md) - Tips for coding in
WebUI with Trusted Types in mind.
* [chrome-untrusted:// FAQ](chrome_untrusted.md) - Explainer on the usage of
the `chrome-untrusted://` scheme for hosting WebUIs that handle
* [WebUI Explainer](webui/webui_explainer.md) - An explanation of C++ and
TypeScript infrastructural code for Chrome UIs implemented with web
technologies (i.e. chrome:// URLs).
* [Optimizing Chrome Web UIs](webui/optimizing_web_uis.md) - Notes on making
WebUIs more performant
* [Trusted Types on WebUI](webui/trusted_types_on_webui.md) - Tips for coding
in WebUI with Trusted Types in mind.
* [chrome-untrusted:// FAQ](webui/chrome_untrusted.md) - Explainer on the
usage of the `chrome-untrusted://` scheme for hosting WebUIs that handle
untrustworthy content.
### Media

@ -1334,9 +1334,9 @@ e.g. chrome-untrusted:// and chrome-extension:// are not supported either.
## See also
* WebUI's C++ code follows the [Chromium C++ styleguide](../styleguide/c++/c++.md).
* WebUI's C++ code follows the [Chromium C++ styleguide](../../styleguide/c++/c++.md).
* WebUI's HTML/CSS/JS code follows the [Chromium Web
Development Style Guide](../styleguide/web/web.md)
Development Style Guide](../../styleguide/web/web.md)
* Adding tests for WebUI pages: [Testing WebUI](./testing_webui.md)
* Demo WebUI widgets at `chrome://webui-gallery` (and source at
[chrome/browser/resources/webui_gallery/](https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/resources/webui_gallery/))

@ -32,7 +32,7 @@ shared infrastructure and utilities.
In this example, we can start by creating folders for the new page in
`chrome/browser/[resources|ui/webui]/hello_world`. When creating WebUI
resources, follow the
[Web Development Style Guide](https://chromium.googlesource.com/chromium/src/+/main/styleguide/web/web.md).
[Web Development Style Guide](../../styleguide/web/web.md).
## Making a basic WebUI page
@ -453,7 +453,7 @@ Any code that is located in `ui/webui/resources` and served from
`chrome://resources` and `chrome-untrusted://resources` can be used from any
WebUI page. If you want to share some additional code from another WebUI page
that is not in the shared resources, first see
[Sharing Code in WebUI](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/webui/webui_code_sharing.md) to determine the best approach.
[Sharing Code in WebUI](./webui_code_sharing.md) to determine the best approach.
If you determine that the code should be narrowly shared, the following
explains how to add the narrowly shared resources to your WebUI data source.