Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: chrome/common/extensions/docs/templates/intros/declarativeContent.html

Issue 219213007: Remove .html extension from links (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/templates/intros/declarativeContent.html
diff --git a/chrome/common/extensions/docs/templates/intros/declarativeContent.html b/chrome/common/extensions/docs/templates/intros/declarativeContent.html
index 17476cfbf699379b6f1d627f0bed1cd207478b51..187e7a8010fb2bb6eeea90e1313912e7c8b478e8 100644
--- a/chrome/common/extensions/docs/templates/intros/declarativeContent.html
+++ b/chrome/common/extensions/docs/templates/intros/declarativeContent.html
@@ -4,9 +4,9 @@
The Declarative Content API allows you to show your extension's
$(ref:pageAction page action) depending on the URL of a web page and
the CSS selectors its content matches, without needing to take a <a
-href="declare_permissions.html#host-permissions">host permission</a> or
-inject a <a href="content_scripts.html">content script</a>. Use the
-<a href="activeTab.html">activeTab</a> permission in order to be able
+href="declare_permissions#host-permissions">host permission</a> or
+inject a <a href="content_scripts">content script</a>. Use the
+<a href="activeTab">activeTab</a> permission in order to be able
to interact with a page after the user clicks on your page action.
</p>
@@ -18,7 +18,7 @@ user clicks on it, you'll have to keep using the $(ref:pageAction) API.
<h2 id="rules">Rules</h2>
-<p>As a <a href="events.html#declarative">declarative API</a>, this
+<p>As a <a href="events#declarative">declarative API</a>, this
API lets you register rules on the
<code>$(ref:onPageChanged)</code> $(ref:events.Event event) object which
take an action (currently just <code>$(ref:ShowPageAction)</code>) when
@@ -71,13 +71,13 @@ var rule2 = {
</pre>
<p>
-<a href="events.html#addingrules">Added rules</a> are saved across
+<a href="events#addingrules">Added rules</a> are saved across
browser restarts, so register them as follows:
</p>
<pre>
$(ref:runtime.onInstalled chrome.runtime.onInstalled).addListener(function(details) {
- $(ref:onPageChanged chrome.declarativeContent.onPageChanged).<a href="events.html#removingrules">removeRules</a>(undefined, function() {
- $(ref:onPageChanged chrome.declarativeContent.onPageChanged).<a href="events.html#addingrules">addRules</a>([rule2]);
+ $(ref:onPageChanged chrome.declarativeContent.onPageChanged).<a href="events#removingrules">removeRules</a>(undefined, function() {
+ $(ref:onPageChanged chrome.declarativeContent.onPageChanged).<a href="events#addingrules">addRules</a>([rule2]);
});
});
</pre>
@@ -90,7 +90,7 @@ a faster matching algorithm.
</p>
<p>
-Combine the above rule with the <a href="activeTab.html">activeTab</a>
+Combine the above rule with the <a href="activeTab">activeTab</a>
permission to create an extension that doesn't need any install-time
permissions but can invite the user to click its page action on
relevant pages and can run on those pages when the user clicks the

Powered by Google App Engine
This is Rietveld 408576698