Commit 381a0de6 authored by lazyboy's avatar lazyboy Committed by Commit bot

docs: Fix some broken links to samples where the #hash-word is supposed to be a search term.

BUG=486488
Test=Check some link that has search term, e.g.
https://developer.chrome.com/extensions/browsingData#samples
click on the "on the samples page" link.

Review URL: https://codereview.chromium.org/1124343004

Cr-Commit-Position: refs/heads/master@{#329264}
parent e8280f3a
...@@ -455,7 +455,7 @@ document.getElementById("someImage").src = imgURL; ...@@ -455,7 +455,7 @@ document.getElementById("someImage").src = imgURL;
<p> <p>
You can find many You can find many
<a href="samples#script">examples that use content scripts</a>. <a href="samples#search:script">examples that use content scripts</a>.
A simple example of communication via messages is in the A simple example of communication via messages is in the
<a href="samples#message-timer">Message Timer</a>. <a href="samples#message-timer">Message Timer</a>.
See <a href="samples#page-redder">Page Redder</a> and See <a href="samples#page-redder">Page Redder</a> and
......
...@@ -20,7 +20,7 @@ which we expect to finalize soon: ...@@ -20,7 +20,7 @@ which we expect to finalize soon:
<b>devtools</b>, <b>devtools</b>,
<b>permissions</b>, <b>permissions</b>,
For examples of using the experimental APIs, see For examples of using the experimental APIs, see
<a href="samples#experimental">Samples</a>. <a href="samples#search:experimental">Samples</a>.
</p> </p>
{{/is_apps}} {{/is_apps}}
......
...@@ -182,5 +182,6 @@ For an effective override page, follow these guidelines: ...@@ -182,5 +182,6 @@ For an effective override page, follow these guidelines:
<p> <p>
See the See the
<a href="samples#chrome_url_overrides">override samples</a>. <!-- TODO(vasilii): Fix broken link. -->
<a href="samples#search:chrome_url_overrides">override samples</a>.
</p> </p>
...@@ -151,5 +151,5 @@ chrome.browsingData.remove({ ...@@ -151,5 +151,5 @@ chrome.browsingData.remove({
<h2 id="samples">Examples</h2> <h2 id="samples">Examples</h2>
<p> <p>
Samples for the <code>browsingData</code> API are available Samples for the <code>browsingData</code> API are available
<a href="samples#browsingData">on the samples page</a>. <a href="samples#search:browsingData">on the samples page</a>.
</p> </p>
...@@ -137,5 +137,5 @@ tries to keep the identifiers stable across plugin updates. ...@@ -137,5 +137,5 @@ tries to keep the identifiers stable across plugin updates.
<p> <p>
You can find samples of this API on the You can find samples of this API on the
<a href="samples#contentSettings">sample page</a>. <a href="samples#search:contentSettings">sample page</a>.
</p> </p>
...@@ -50,4 +50,4 @@ For example: ...@@ -50,4 +50,4 @@ For example:
<p> <p>
You can find samples of this API on the You can find samples of this API on the
<a href="samples#contextMenus">sample page</a>. <a href="samples#search:contextMenus">sample page</a>.
...@@ -30,5 +30,5 @@ to use this API. ...@@ -30,5 +30,5 @@ to use this API.
<p> <p>
You can find samples of this API in You can find samples of this API in
<a href="samples#debugger">Samples</a>. <a href="samples#search:debugger">Samples</a>.
</p> </p>
...@@ -119,5 +119,5 @@ chrome.devtools.inspectedWindow.eval( ...@@ -119,5 +119,5 @@ chrome.devtools.inspectedWindow.eval(
<p> <p>
You can find more examples that use Developer Tools APIs in You can find more examples that use Developer Tools APIs in
<a href="samples#devtools">Samples</a>. <a href="samples#search:devtools">Samples</a>.
</p> </p>
...@@ -45,5 +45,5 @@ chrome.devtools.network.onRequestFinished.addListener( ...@@ -45,5 +45,5 @@ chrome.devtools.network.onRequestFinished.addListener(
<p> <p>
You can find more examples that use this API in You can find more examples that use this API in
<a href="samples#devtools.network">Samples</a>. <a href="samples#search:devtools.network">Samples</a>.
</p> </p>
...@@ -65,5 +65,5 @@ category.onAuditStarted.addListener(function(results) { ...@@ -65,5 +65,5 @@ category.onAuditStarted.addListener(function(results) {
<p> <p>
You can find more examples that use this API in You can find more examples that use this API in
<a href="samples#devtools.audits">Samples</a>. <a href="samples#search:devtools.audits">Samples</a>.
</p> </p>
...@@ -68,4 +68,4 @@ icon, but it is displayed in color. ...@@ -68,4 +68,4 @@ icon, but it is displayed in color.
<p> <p>
You can find samples of this API on the You can find samples of this API on the
<a href="samples#omnibox">sample page</a>. <a href="samples#search:omnibox">sample page</a>.
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
<h2 id="examples">Examples</h2> <h2 id="examples">Examples</h2>
<p> <p>
For example code, see the For example code, see the
<a href="samples#privacy">Privacy API samples</a>. <!-- TODO(mkwst): Fix broken link. -->
<a href="samples#search:privacy">Privacy API samples</a>.
</p> </p>
...@@ -21,5 +21,5 @@ to use this API. ...@@ -21,5 +21,5 @@ to use this API.
<p> <p>
You can find samples of this API in You can find samples of this API in
<a href="samples#topsites">Samples</a>. <a href="samples#search:topsites">Samples</a>.
</p> </p>
...@@ -310,5 +310,5 @@ chrome.webRequest.onBeforeSendHeaders.addListener( ...@@ -310,5 +310,5 @@ chrome.webRequest.onBeforeSendHeaders.addListener(
["blocking", "requestHeaders"]); ["blocking", "requestHeaders"]);
</pre> </pre>
<p> For more example code, see the <a href="samples#webrequest">web request <p> For more example code, see the <a href="samples#search:webrequest">web request
samples</a>.</p> samples</a>.</p>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<h2 id="samples">Sample {{platformTitle}}</h2> <h2 id="samples">Sample {{platformTitle}}</h2>
<ul> <ul>
{{#sample:samplesForApi}} {{#sample:samplesForApi}}
<li><strong><a href="samples#{{sample.id}}">{{sample.name}}</a></strong> <li><strong><a href="samples#search:{{sample.id}}">{{sample.name}}</a></strong>
{{?sample.description}} {{?sample.description}}
&ndash; {{sample.description}} &ndash; {{sample.description}}
{{/sample.description}}</li> {{/sample.description}}</li>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment