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

Unified Diff: chrome/common/extensions/docs/templates/private/site.html

Issue 92143003: Docserver: Reorganise the site templates into a single site.html file which (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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/private/site.html
diff --git a/chrome/common/extensions/docs/templates/private/site.html b/chrome/common/extensions/docs/templates/private/site.html
new file mode 100644
index 0000000000000000000000000000000000000000..66441c16bcce4127093a06163a6a8f807d660e08
--- /dev/null
+++ b/chrome/common/extensions/docs/templates/private/site.html
@@ -0,0 +1,124 @@
+{{- This is the template for every page on the site.
+ - |platform| The platform.
+ - |platformTitle| The title of the platform ("Extensions" or "Apps").
+ - |sidenav| The navigation content on the left of the page.
+ - |content| The main content of the page.
+ -}}
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>$(title) - Google Chrome</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link href="{{static}}/css/site.css" rel="stylesheet" type="text/css">
+ <link href="{{static}}/css/print.css" rel="stylesheet" type="text/css" media="print">
+ <link href="{{static}}/css/prettify.css" rel="stylesheet" type="text/css">
+ <link href='//fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ ga('create', 'UA-41980257-1');
+ ga('send', 'pageview');
+ </script>
+ </head>
+
+ <body>
+ <div id="gc-topnav">
+ <table><tr>
+ <td id="chrome-logo">
+ <a href="{{base_path}}{{platform}}s/" title="Google Chrome {{platformTitle}}">
+ <img src="{{static}}/images/chrome-logo.png" alt=""> chrome
+ </a>
+ <div id="platform-chooser">
+ <button id="platform-chooser-toggle" data-menu="platform-chooser-popup">
+ {{platform}}s &#x25be;&#x202F;
+ </button>
+ <div id="platform-chooser-popup">
+ <button class="apps" data-href="/apps/about_apps.html">apps</button>
+ <button class="extensions" data-href="/extensions">extensions</button>
+ </div>
+ </div>
+ </td>
+ <td>
+ <ul>
+ <li>
+ <a href="{{base_path}}{{platform}}s/samples.html"
+ title="Sample {{platformTitle}} (with source code)">Samples</a>
+ </li>
+ <li>
+ <a href="http://groups.google.com/a/chromium.org/group/chromium-{{platform}}s"
+ title="Google Chrome {{platformTitle}} developer forum"
+ target="_blank">Group</a>
+ </li>
+ <li>
+ <a href="http://stackoverflow.com/tags/google-chrome-{{platform}}/info"
+ title="[google-chrome-{{platform}}] tag on Stack Overflow"
+ target="_blank">Stack overflow</a>
+ </li>
+ </ul>
+ </td>
+ </tr></table>
+ </div>
+ <div id="gc-topnav-space"></div>
+ <div id="gc-container">
+ <div id="gc-sidebar">
+ {{+partials.sidenav_items items:sidenav /}}
+ </div>
+ <div id="gc-pagecontent">
+{{- This is unindented because it may contain whitespace-sensitive tags. -}}
+{{+content /}}
+ </div>
+ </div>
+ </body>
+
+ <div id="gc-footer">
+ <button class="google-button" id="scroll-to-top">↑</button>
+ <button class="google-button" id="send-feedback">Send Feedback</button>
+ <div class="text">
+ <p>
+ Except as otherwise <a href="http://code.google.com/policies.html#restrictions">noted</a>,
+ the content of this page is licensed under the <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons
+ Attribution 3.0 License</a>, and code samples are licensed under the
+ <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD License</a>.
+ </p>
+ <p>
+ ©2013 Google
+ </p>
+ <script src="{{static}}/js/platform_chooser.js" type="text/javascript"></script>
+ <script src="{{static}}/js/popup.js" type="text/javascript"></script>
+ <script src="{{static}}/js/prettify.js" type="text/javascript"></script>
+ <script src="{{static}}/js/scroll.js" type="text/javascript"></script>
+ <script src="{{static}}/js/sidebar.js" type="text/javascript"></script>
+ <script src="{{static}}/js/tabs.js" type="text/javascript"></script>
+ <script>
+ (function() {
+ // Auto syntax highlight all pre tags.
+ var preElements = document.getElementsByTagName('pre');
+ for (var i = 0; i < preElements.length; i++) {
+ var preElement = preElements[i];
+ preElement.classList.add('prettyprint');
+ var datasetFilename = preElement.getAttribute('data-filename');
+ if (datasetFilename) {
+ var filename = document.createElement('div');
+ filename.className = 'filename nocode';
+ filename.textContent = datasetFilename;
+ preElement.insertBefore(filename, preElement.firstChild);
+ }
+ }
+ prettyPrint();
+ })();
+ </script>
+
+ <!-- Feedback. -->
+ <script type="text/javascript" src="//www.gstatic.com/feedback/api.js"></script>
+ <script type="text/javascript">
+ (function() {
+ document.getElementById('send-feedback').addEventListener('click', function() {
+ userfeedback.api.startFeedback({ productId: 86265 });
+ });
+ })();
+ </script>
+ </div>
+ </div>
+</html>

Powered by Google App Engine
This is Rietveld 408576698