forked from plume/documentation
Update README Fix a typo Prepend bundle exec to middleman command Use link_to_lang helper Use relative path for links Append solidus to links to directory index Update Bundler Install Webrick Add Webrick to dependencies Remove Crowdin related code from template Co-authored-by: Kitaiti Makoto <KitaitiMakoto@gmail.com> Reviewed-on: plume/documentation#113
56 lines
2.2 KiB
Text
56 lines
2.2 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<!-- Use the title from a page's frontmatter if it has one -->
|
|
<title><%= current_page.data.title || "…" %> ⋅ Plume documentation</title>
|
|
|
|
<%= stylesheet_link_tag "site" %>
|
|
<script src="https://unpkg.com/feather-icons"></script>
|
|
<link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@3.12.1/swagger-ui.css">
|
|
<style><%= Rouge::Themes::Github.render(:scope => '.highlight') %></style>
|
|
<link rel="shortcut icon" href="/images/favicon.png">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1><%= current_page.data.title %></h1>
|
|
<p><%= current_page.data.summary %></p>
|
|
<div class="language-switcher">
|
|
<button aria-controls="languages" aria-haspopup="true" aria-expanded="false"><img src="/images/LanguageIcon.png" alt="switch language"></button>
|
|
<ul id="languages" class="languages" aria-hidden="true">
|
|
<% data.languages.each_pair do |code, name| %>
|
|
<li lang="<%=h code %>" translate="no" class="language"><%= link_to_lang name, code %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</header>
|
|
<aside>
|
|
<i id="menu" data-feather="menu"></i>
|
|
<nav>
|
|
<% link_to "/index.html" do %><span>Plume documentation</span><img src="/images/logo.svg" alt="Plume logo"><% end %>
|
|
<% resources = sitemap.resources
|
|
.select{ |p| p.path =~ /\.html/ && p.path != "index.html" }
|
|
.sort { |a, b| a.path <=> b.path }
|
|
%>
|
|
<%= partial :nav_item, :locals => { :items => resources.select { |r| r.url.chomp('/').split('/').size == 2 }, :resources => resources } %>
|
|
</nav>
|
|
</aside>
|
|
<main>
|
|
<% if current_page.data.show_links %>
|
|
<%= partial 'nav' %>
|
|
<% end %>
|
|
<article>
|
|
<%= yield %>
|
|
</article>
|
|
</main>
|
|
<footer>
|
|
Website and documentation under the AGPL 3.0 license.
|
|
—
|
|
<a href="https://git.joinplu.me/Plume/documentation">Source code of this website</a>
|
|
</footer>
|
|
<script>feather.replace()</script>
|
|
<%= javascript_include_tag "site" %>
|
|
</body>
|
|
</html>
|