Merge "VisibilityCache/Checker: Use streams for the reachability starters"
diff --git a/Documentation/config.md b/Documentation/config.md
index 65727e5..6c5eac3 100644
--- a/Documentation/config.md
+++ b/Documentation/config.md
@@ -23,10 +23,15 @@
`baseGitUrl` the base URL for git repositories.
-`gerritUrl`, URL prefix to linkify Gerrit `Change-Id` headers in commit
-messages. If you are using the Gerrit Gitiles plugin, this is set based on
-Gerrit's configuration.
-Default: `null`, do not link `Change-Id`.
+`gerritUrl`, URL prefix that when set is used to create:
+* Links from the `Change-Id` headers in commit messages to the corresponding
+ Gerrit change.
+* An edit link in file views that opens a new change in Gerrit in online edit
+ mode for that file. The link will only appear when you are browsing the file
+ at a branch, so the commitish must start with `refs/heads/`.
+
+> If you are using the Gerrit Gitiles plugin, this is set based on Gerrit's configuration.
+> Default: `null`, do not link `Change-Id` or show edit links.
```
[gitiles]
diff --git a/resources/com/google/gitiles/templates/Doc.soy b/resources/com/google/gitiles/templates/Doc.soy
index ac32006..861acb7 100644
--- a/resources/com/google/gitiles/templates/Doc.soy
+++ b/resources/com/google/gitiles/templates/Doc.soy
@@ -46,6 +46,9 @@
{@param? analyticsId: ?} /** Google Analytics Property ID. */
{@param? navbarHtml: ?} /** navar.md converted to SafeHtml. */
{@param? customVariant: ?} /** variant name for custom styling. */
+ {@param? sourceUrl: ?} /** url for source view of the page. */
+ {@param? logUrl: ?} /** url for log history of page. */
+ {@param? blameUrl: ?} /** url for blame of page source. */
{@inject staticUrls: ?}
<!DOCTYPE html>
<html lang="en">
@@ -84,7 +87,11 @@
</div>
</div>
</div>
- {call customDocFooter variant="'' + ($customVariant ?? '')" /}
+ {call customDocFooter variant="'' + ($customVariant ?? '')"}
+ {param sourceUrl: $sourceUrl /}
+ {param logUrl: $logUrl /}
+ {param blameUrl: $blameUrl /}
+ {/call}
{if $analyticsId}
/* From https://developers.google.com/analytics/devguides/collection/analyticsjs/ */
<script>