The documentation for Plume.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.3 KiB

3 years ago
10 months ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="x-ua-compatible" content="ie=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- Use the title from a page's frontmatter if it has one -->
  8. <title><%= current_page.data.title || "…" %> ⋅ Plume documentation</title>
  9. <%= stylesheet_link_tag "site" %>
  10. <script src="https://unpkg.com/feather-icons"></script>
  11. <link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@3.12.1/swagger-ui.css">
  12. <style><%= Rouge::Themes::Github.render(:scope => '.highlight') %></style>
  13. <link rel="shortcut icon" href="/images/favicon.png">
  14. <meta property="og:image" content="https://docs.joinplu.me/images/logo.svg">
  15. </head>
  16. <body>
  17. <header>
  18. <h1><%= current_page.data.title %></h1>
  19. <p><%= current_page.data.summary %></p>
  20. <div class="language-switcher">
  21. <button aria-controls="languages" aria-haspopup="true" aria-expanded="false"><img src="/images/LanguageIcon.png" alt="switch language"></button>
  22. <ul id="languages" class="languages" aria-hidden="true">
  23. <% data.languages.each_pair do |code, name| %>
  24. <li lang="<%=h code %>" translate="no" class="language"><%= link_to_lang name, code %></li>
  25. <% end %>
  26. </ul>
  27. </div>
  28. </header>
  29. <aside>
  30. <i id="menu" data-feather="menu"></i>
  31. <nav>
  32. <% link_to "/index.html" do %><span>Plume documentation</span><img src="/images/logo.svg" alt="Plume logo"><% end %>
  33. <% resources = sitemap.resources
  34. .select{ |p| p.path =~ /\.html/ && p.path != "index.html" }
  35. .sort { |a, b| a.path <=> b.path }
  36. %>
  37. <%= partial :nav_item, :locals => { :items => resources.select { |r| r.url.chomp('/').split('/').size == 2 }, :resources => resources } %>
  38. </nav>
  39. </aside>
  40. <main>
  41. <% if current_page.data.show_links %>
  42. <%= partial 'nav' %>
  43. <% end %>
  44. <article>
  45. <%= yield %>
  46. </article>
  47. </main>
  48. <footer>
  49. Website and documentation under the AGPL 3.0 license.
  50. &mdash;
  51. <a href="https://git.joinplu.me/Plume/documentation">Source code of this website</a>
  52. </footer>
  53. <script>feather.replace()</script>
  54. <%= javascript_include_tag "site" %>
  55. </body>
  56. </html>