layout.tmpl 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <?js if (!env.conf.docdash) { env.conf.docdash = {};} ?>
  5. <meta charset="utf-8">
  6. <title><?js= title ?> - <?js= ((env.conf.docdash.meta && env.conf.docdash.meta.title) || "Documentation") ?></title>
  7. <?js if (env.conf.docdash.meta) { ?>
  8. <?js if (env.conf.docdash.meta.description) { ?><meta name="description" content="<?js= env.conf.docdash.meta.description ?>" /><?js } ?>
  9. <?js if (env.conf.docdash.meta.keyword) { ?>
  10. <meta name="keywords" content="<?js= env.conf.docdash.meta.keyword ?>" />
  11. <meta name="keyword" content="<?js= env.conf.docdash.meta.keyword ?>" />
  12. <?js } ?>
  13. <?js } ?>
  14. <?js if (env.conf.docdash.openGraph) { ?>
  15. <meta property="og:title" content="<?js= env.conf.docdash.openGraph.title ?>"/>
  16. <meta property="og:type" content="<?js= env.conf.docdash.openGraph.type ?>"/>
  17. <meta property="og:image" content="<?js= env.conf.docdash.openGraph.image ?>"/>
  18. <?js if (env.conf.docdash.openGraph.site_name) { ?><meta property="og:site_name" content="<?js= env.conf.docdash.openGraph.site_name ?>"/><?js } ?>
  19. <meta property="og:url" content="<?js= env.conf.docdash.openGraph.url ?>"/>
  20. <?js } ?>
  21. <script src="scripts/prettify/prettify.js"></script>
  22. <script src="scripts/prettify/lang-css.js"></script>
  23. <!--[if lt IE 9]>
  24. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  25. <![endif]-->
  26. <link type="text/css" rel="stylesheet" href="styles/prettify.css">
  27. <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
  28. <script src="scripts/nav.js" defer></script>
  29. <?js if (env.conf.docdash.commonNav) { ?>
  30. <script src="scripts/commonNav.js" defer></script>
  31. <?js } ?>
  32. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  33. </head>
  34. <body>
  35. <input type="checkbox" id="nav-trigger" class="nav-trigger" />
  36. <label for="nav-trigger" class="navicon-button x">
  37. <div class="navicon"></div>
  38. </label>
  39. <label for="nav-trigger" class="overlay"></label>
  40. <nav <?js if (env.conf.docdash.wrap) { ?>class="wrap"<?js } ?>>
  41. <?js if (env.conf.docdash.search) { ?>
  42. <input type="text" id="nav-search" placeholder="Search" />
  43. <?js } ?>
  44. <?js if (!env.conf.docdash.commonNav) { ?>
  45. <?js= this.nav ?>
  46. <?js } ?>
  47. </nav>
  48. <div id="main">
  49. <?js if (title != 'Home') { ?>
  50. <h1 class="page-title"><?js= title ?></h1>
  51. <?js } ?>
  52. <?js= content ?>
  53. <?js if (env.conf.docdash.disqus) { ?>
  54. <div id="disqus_thread"></div>
  55. <script>
  56. (function() { // DON'T EDIT BELOW THIS LINE
  57. var d = document, s = d.createElement('script');
  58. s.src = '//<?js= env.conf.docdash.disqus ?>.disqus.com/embed.js';
  59. s.setAttribute('data-timestamp', +new Date());
  60. (d.head || d.body).appendChild(s);
  61. })();
  62. </script>
  63. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  64. <?js } ?>
  65. </div>
  66. <br class="clear">
  67. <footer>
  68. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc <?js= env.version.number ?></a><?js if(env.conf.templates && env.conf.templates.default && env.conf.templates.default.includeDate !== false) { ?> on <?js= (new Date()) ?><?js } ?> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
  69. </footer>
  70. <script>prettyPrint();</script>
  71. <script src="scripts/polyfill.js"></script>
  72. <script src="scripts/linenumber.js"></script>
  73. <?js if (env.conf.docdash.search) { ?>
  74. <script src="scripts/search.js" defer></script>
  75. <?js } ?>
  76. <?js if (env.conf.docdash.collapse) { ?>
  77. <script src="scripts/collapse.js" defer></script>
  78. <?js } ?>
  79. <?js if (env.conf.docdash.scripts && env.conf.docdash.scripts.length) {
  80. for(var i = 0; i < env.conf.docdash.scripts.length; i++){
  81. if (env.conf.docdash.scripts[i].indexOf(".css") != -1) {
  82. ?>
  83. <link type="text/css" rel="stylesheet" href="<?js= env.conf.docdash.scripts[i] ?>">
  84. <?js
  85. } else {
  86. ?>
  87. <script src="<?js= env.conf.docdash.scripts[i] ?>"></script>
  88. <?js
  89. }
  90. }
  91. } ?>
  92. </body>
  93. </html>