| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 1 | // Copyright 2015 Google Inc. All Rights Reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| Sven Selberg | d99004c | 2022-01-31 10:24:08 +0100 | [diff] [blame] | 14 | {namespace com.google.gitiles.templates.Doc} |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 15 | |
| Jesse Costello-Good | 6f62c5d | 2021-02-02 12:05:06 -0800 | [diff] [blame] | 16 | import * as common from 'com/google/gitiles/templates/Common.soy'; |
| 17 | |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 18 | /** |
| Patrick Hiesel | 564ab4b | 2018-06-06 13:13:49 +0200 | [diff] [blame] | 19 | * Default Doc Footer |
| Patrick Hiesel | 564ab4b | 2018-06-06 13:13:49 +0200 | [diff] [blame] | 20 | */ |
| Tim Zhou | 3cc3548 | 2023-10-23 23:22:51 +0000 | [diff] [blame] | 21 | {template customDocFooter modifiable="true" legacydeltemplatenamespace="gitiles.customDocFooter" usevarianttype="string"} |
| Jakub Vrana | c396233 | 2019-03-04 11:21:52 +0100 | [diff] [blame] | 22 | {@param? sourceUrl: ?} /** url for source view of the page. */ |
| 23 | {@param? logUrl: ?} /** url for log history of page. */ |
| 24 | {@param? blameUrl: ?} /** url for blame of page source. */ |
| Patrick Hiesel | 564ab4b | 2018-06-06 13:13:49 +0200 | [diff] [blame] | 25 | <!-- default customDocFooter --> |
| 26 | <footer class="Site-footer"> |
| 27 | <div class="Footer"> |
| Tim Zhou | 3cc3548 | 2023-10-23 23:22:51 +0000 | [diff] [blame] | 28 | {call common.footerPoweredBy /} |
| Patrick Hiesel | 564ab4b | 2018-06-06 13:13:49 +0200 | [diff] [blame] | 29 | <div class="Footer-links"> |
| 30 | {if $sourceUrl}<a class="Footer-link" href="{$sourceUrl}">{msg desc="text for the source link"}source{/msg}</a>{/if} |
| 31 | {if $logUrl}<a class="Footer-link" href="{$logUrl}">{msg desc="text for the log link"}log{/msg}</a>{/if} |
| 32 | {if $blameUrl}<a class="Footer-link" href="{$blameUrl}">{msg desc="text for the blame link"}blame{/msg}</a>{/if} |
| 33 | </div> |
| 34 | </div> |
| 35 | </footer> |
| Tim Zhou | 3cc3548 | 2023-10-23 23:22:51 +0000 | [diff] [blame] | 36 | {/template} |
| Patrick Hiesel | 564ab4b | 2018-06-06 13:13:49 +0200 | [diff] [blame] | 37 | |
| 38 | /** |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 39 | * Documentation page rendered from markdown. |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 40 | */ |
| Jesse Costello-Good | 6f62c5d | 2021-02-02 12:05:06 -0800 | [diff] [blame] | 41 | {template markdownDoc} |
| Jakub Vrana | c396233 | 2019-03-04 11:21:52 +0100 | [diff] [blame] | 42 | {@param? siteTitle: ?} /** h1 title from navbar.md. */ |
| 43 | {@param pageTitle: ?} /** h1 title from specific page. */ |
| 44 | {@param? logoUrl: ?} /** url of image logo. */ |
| 45 | {@param? homeUrl: ?} /** url to jump to top of site. */ |
| 46 | {@param? analyticsId: ?} /** Google Analytics Property ID. */ |
| 47 | {@param? navbarHtml: ?} /** navar.md converted to SafeHtml. */ |
| 48 | {@param? customVariant: ?} /** variant name for custom styling. */ |
| Jakub Vrana | 21e70b7 | 2019-05-20 16:33:54 +0200 | [diff] [blame] | 49 | {@inject staticUrls: ?} |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 50 | <!DOCTYPE html> |
| 51 | <html lang="en"> |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 52 | <head> |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 53 | <meta charset="utf-8"> |
| Adrià Vilanova MartÃnez | 9b8a1eb | 2021-12-27 02:36:06 +0100 | [diff] [blame] | 54 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| Shawn Pearce | 99cdbce | 2015-02-10 12:05:45 -0800 | [diff] [blame] | 55 | <title> |
| 56 | {if $siteTitle}{$siteTitle} -{sp}{/if} |
| 57 | {$pageTitle} |
| 58 | </title> |
| Jakub Vrana | 21e70b7 | 2019-05-20 16:33:54 +0200 | [diff] [blame] | 59 | <link rel="stylesheet" type="text/css" href="{$staticUrls.BASE_CSS_URL}" /> |
| 60 | <link rel="stylesheet" type="text/css" href="{$staticUrls.DOC_CSS_URL}" /> |
| 61 | <link rel="stylesheet" type="text/css" href="{$staticUrls.PRETTIFY_CSS_URL}" /> |
| Tim Zhou | 3cc3548 | 2023-10-23 23:22:51 +0000 | [diff] [blame] | 62 | {call common.customHeadTagPart variant="'' + ($customVariant ?? '')" /} |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 63 | </head> |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 64 | <body class="Site"> |
| Andrew Bonventre | 88a4828 | 2015-09-16 14:53:33 -0400 | [diff] [blame] | 65 | <header class="Site-header {if $navbarHtml}Site-header--withNavbar{/if}"> |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 66 | <div class="Header"> |
| 67 | <div class="Header-title"> |
| Andrew Bonventre | 88a4828 | 2015-09-16 14:53:33 -0400 | [diff] [blame] | 68 | {if $homeUrl}<a class="Header-anchor" href="{$homeUrl}">{/if} |
| 69 | {if $logoUrl}<img class="Header-anchorLogo" src="{$logoUrl}" alt="project logo" />{/if} |
| 70 | {if $siteTitle}<span class="Header-anchorTitle">{$siteTitle}</span>{/if} |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 71 | {if $homeUrl}</a>{/if} |
| Shawn Pearce | 99cdbce | 2015-02-10 12:05:45 -0800 | [diff] [blame] | 72 | </div> |
| 73 | </div> |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 74 | {if $navbarHtml} |
| Andrew Bonventre | 88a4828 | 2015-09-16 14:53:33 -0400 | [diff] [blame] | 75 | <nav class="Header-nav" role="navigation"> |
| 76 | {$navbarHtml} |
| Shawn Pearce | 2e63c4e | 2017-09-01 14:03:58 -0700 | [diff] [blame] | 77 | </nav> |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 78 | {/if} |
| 79 | </header> |
| 80 | <div class="Site-content Site-Content--markdown"> |
| 81 | <div class="Container"> |
| 82 | <div class="doc"> |
| Jesse Costello-Good | 6f62c5d | 2021-02-02 12:05:06 -0800 | [diff] [blame] | 83 | {call common.streamingPlaceholder /} |
| Andrew Bonventre | b33426e | 2015-09-09 18:28:28 -0400 | [diff] [blame] | 84 | </div> |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 85 | </div> |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 86 | </div> |
| Tim Zhou | 3cc3548 | 2023-10-23 23:22:51 +0000 | [diff] [blame] | 87 | {call customDocFooter variant="'' + ($customVariant ?? '')" /} |
| Shawn Pearce | bc381a4 | 2015-06-22 12:17:43 -0700 | [diff] [blame] | 88 | {if $analyticsId} |
| 89 | /* From https://developers.google.com/analytics/devguides/collection/analyticsjs/ */ |
| 90 | <script> |
| Jakub Vrana | a3ec654 | 2020-12-14 11:06:05 +0100 | [diff] [blame] | 91 | window.ga=window.ga||function(){lb}(ga.q=ga.q||[]).push(arguments){rb};ga.l=+new Date; |
| Shawn Pearce | bc381a4 | 2015-06-22 12:17:43 -0700 | [diff] [blame] | 92 | |
| 93 | ga('create', '{$analyticsId}', 'auto'); |
| 94 | ga('send', 'pageview', {lb}title: '{$pageTitle}'{rb}); |
| 95 | </script> |
| Jakub Vrana | a3ec654 | 2020-12-14 11:06:05 +0100 | [diff] [blame] | 96 | <script async src="https://www.google-analytics.com/analytics.js"></script> |
| Shawn Pearce | bc381a4 | 2015-06-22 12:17:43 -0700 | [diff] [blame] | 97 | {/if} |
| Shawn Pearce | 374f184 | 2015-02-10 15:36:54 -0800 | [diff] [blame] | 98 | </body> |
| 99 | </html> |
| 100 | {/template} |