Browse Source

Add Crowdin script

stable
Baptiste Gelez 2 years ago
parent
commit
05540eaa54
2 changed files with 13 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +12
    -0
      source/layouts/layout.erb

+ 1
- 0
.gitignore View File

@@ -3,3 +3,4 @@
.DS_Store
.sass-cache
build/
crowdin.yml

+ 12
- 0
source/layouts/layout.erb View File

@@ -6,6 +6,18 @@
<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>

<% if ENV['CROWDIN'] == 'on' %>
<script type="text/javascript">
var _jipt = [];
_jipt.push(['project', 'plume-docs']);
_jipt.push(['escape', function() {
window.location.href = 'https://docs.joinplu.me';
}]);
</script>
<script type="text/javascript" src="//cdn.crowdin.com/jipt/jipt.js"></script>
<% end %>

<%= 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">


Loading…
Cancel
Save