article.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <!-- Documentation licensed under CC BY 4.0 -->
  3. <!-- License available at https://creativecommons.org/licenses/by/4.0/ -->
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. {% include favicon.html %}
  7. <link rel="stylesheet" type="text/css"
  8. href="https://fonts.googleapis.com/css?family=Roboto:500,400,300,100">
  9. <link rel="stylesheet" type="text/css" href="{{site.baseurl}}/css/article.css">
  10. <link rel="stylesheet" type="text/css" href="{{site.baseurl}}/css/syntax.css">
  11. <title>{{page.title}}</title>
  12. <body>
  13. <header>
  14. <a href="{{site.baseurl}}" class="closurelogo"><div></div></a>
  15. <h1><a href="{{site.baseurl}}">
  16. {{page.product_name}}
  17. </a></h1>
  18. <nav>
  19. {% capture navbar %}{% include navbar.md %}{% endcapture %}
  20. {{navbar|markdownify}}
  21. </nav>
  22. </header>
  23. <div>
  24. <nav class="side vertical">
  25. {% if page.section %}
  26. {% capture sidenav %}{% include {{page.section}}/sitemap.md %}{% endcapture %}
  27. {{sidenav|markdownify}}
  28. {% endif %}
  29. </nav>
  30. <nav class="toc vertical float">
  31. <ul>
  32. <li class="heading"><a href="#top_of_page">Contents</a>
  33. </ul>
  34. </nav>
  35. <div id="_toc">
  36. <p>[TOC]</p>
  37. </div>
  38. <article>
  39. <h1 id="top_of_page">{{page.heading}}</h1>
  40. <nav class="toc vertical inline">
  41. <ul>
  42. <li class="heading"><a href="#top_of_page">Contents</a>
  43. </ul>
  44. </nav>
  45. {{content}}
  46. </article>
  47. </div>
  48. <footer>
  49. <!-- TODO(user): abstract this out if we add more buttons. -->
  50. <a class="edit">
  51. <div><div></div><div><div>Edit on GitHub</div></div></div>
  52. </a>
  53. </footer>
  54. <script>
  55. window['_JEKYLL_DATA'] = {
  56. 'page.ga': '{{page.ga}}',
  57. 'page.section': '{{page.section}}',
  58. {% if page.toc.max %}'page.toc.max': {{page.toc.max}},{% endif %}
  59. {% if page.toc.min %}'page.toc.min': {{page.toc.min}},{% endif %}
  60. 'site.baseurl': '{{site.baseurl}}',
  61. '': ''
  62. };
  63. </script>
  64. <script src="{{site.baseurl}}/js/article.js"></script>
  65. <script>closure.docs.initialize();</script>
  66. </body>