OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- This page is a placeholder for generated extensions api doc. Note: | 2 <!-- This page is a placeholder for generated extensions api doc. Note: |
3 1) The <head> information in this page is significant, should be uniform | 3 1) The <head> information in this page is significant, should be uniform |
4 across api docs and should be edited only with knowledge of the | 4 across api docs and should be edited only with knowledge of the |
5 templating mechanism. | 5 templating mechanism. |
6 2) The <body> tag *must* retain id="body" | 6 2) The <body> tag *must* retain id="body" |
7 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 7 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
8 browser, it will be re-generated from the template, json schema and | 8 browser, it will be re-generated from the template, json schema and |
9 authored overview content. | 9 authored overview content. |
10 4) The <body>.innerHTML is also generated by an offline step so that this | 10 4) The <body>.innerHTML is also generated by an offline step so that this |
11 page may easily be indexed by search engines. | 11 page may easily be indexed by search engines. |
12 | 12 |
13 TODO(rafaelw): Abstract this into a "pageshell" that becomes the single | 13 TODO(rafaelw): Abstract this into a "pageshell" that becomes the single |
14 version of page template shell and the "instance" pages (bookmarks.html, | 14 version of page template shell and the "instance" pages (bookmarks.html, |
15 etc...) can be generated with a build step. | 15 etc...) can be generated with a build step. |
16 --> | 16 --> |
17 <!-- <html> must retain id="template --> | 17 <!-- <html> must retain id="template --> |
18 <html xmlns="http://www.w3.org/1999/xhtml"> | 18 <html xmlns="http://www.w3.org/1999/xhtml"> |
19 <!-- <head> data is significant and loads the needed libraries and styles --> | 19 <!-- <head> data is significant and loads the needed libraries and styles --> |
20 <head> | 20 <head> |
21 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | 21 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
22 <title jscontent="pageTitle">pageTitle</title> | 22 <title jscontent="pageTitle">pageTitle</title> |
23 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css"> | 23 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css"> |
24 <script type="text/javascript" | 24 <script type="text/javascript" |
25 src="../../../third_party/jstemplate/jstemplate_compiled.js"> | 25 src="../../../third_party/jstemplate/jstemplate_compiled.js"> |
26 </script> | 26 </script> |
27 <script type="text/javascript" src="js/api_page_generator.js"></script> | 27 <script type="text/javascript" src="js/api_page_generator.js"></script> |
28 <script> | 28 <script type="text/javascript" src="js/bootstrap.js"></script> |
29 // Re-render the page if the user-agent is chrome and it is being served as | |
30 // a file:/// scheme. This allows both the initial render to static as well | |
31 // as dynamic re-rendering for developers/doc-writers working on local changes. | |
32 window.onload = function() { | |
33 var chrome = navigator.userAgent.indexOf("Chrome") > -1; | |
34 var fileScheme = location.protocol == "file:"; | |
35 var regenerate = chrome && fileScheme; | |
36 //if (regenerate) { | |
37 window.renderPage(); | |
38 //} | |
39 } | |
40 </script> | |
41 </head> | 29 </head> |
42 <!-- <body> content is completely generated. Do not edit, as it will be | 30 <!-- <body> content is completely generated. Do not edit, as it will be |
43 and rewritten. --> | 31 and rewritten. --> |
44 <body class="hidden"> | 32 <body class="hidden"> |
45 </body> | 33 </body> |
46 </html> | 34 </html> |
OLD | NEW |