mirror of
https://github.com/placeholder-soft/prodigyapi.git
synced 2026-04-29 04:15:00 +08:00
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<!-- Always force latest IE rendering engine or request Chrome Frame -->
|
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
|
|
|
<!-- Use title if it's in the page YAML frontmatter -->
|
|
<title><%= current_page.data.title || "API Documentation" %></title>
|
|
|
|
<%= stylesheet_link_tag "normalize", "all", "syntax" %>
|
|
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
|
<%= javascript_include_tag "all" %>
|
|
|
|
<script>
|
|
$(function() {
|
|
$("#toc").tocify({
|
|
selectors: "h1,h2",
|
|
extendPage: false,
|
|
theme: "none",
|
|
smoothScroll: false,
|
|
showEffectSpeed: 180,
|
|
hideEffectSpeed: 180,
|
|
ignoreSelector: ".toc-ignore",
|
|
hashGenerator: 'pretty',
|
|
highlightOffset: 60,
|
|
scrollHistory: true
|
|
});
|
|
setupLanguages([
|
|
<% current_page.data.languages.each do |lang| %>
|
|
['<%= lang %>'],
|
|
<% end %>
|
|
]);
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body class="<%= page_classes %>">
|
|
<div id="toc">
|
|
<div class="toc-bottom">
|
|
<%= current_page.data.external_links %>
|
|
</div>
|
|
<!-- table of contents will be inserted here -->
|
|
</div>
|
|
<div class="page-wrapper">
|
|
<div class="content">
|
|
<h1 id="bigtitle" class="bigtitle toc-ignore"><%= current_page.data.title || "API Documentation" %></h1>
|
|
<%= yield %>
|
|
</div>
|
|
<div class="dark-box">
|
|
<div id="lang-selector">
|
|
<% current_page.data.languages.each do |lang| %>
|
|
<a href="#" data-language-name="<%= lang %>"><%= lang %></a>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |