blob: 4304d11da98ae33cb5c8864aaeb12536164eb04a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<%= render '/head.*' %>
<%= render '/canonical_urls.*' %>
</head>
<body itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target="#doc-nav" data-offset="200">
<%= render '/gtm.*' %>
<%= render '/header.*' %>
<div class="wrapper">
<aside id="global-nav" class="global-nav">
<% if ENV['CI_PROJECT_NAME'] == 'gitlab-docs' or ENV['CI_PROJECT_NAME'].nil? %>
<%= render '/global_nav.*' %>
<% end %>
</aside>
<div class="main class js-main-wrapper">
<% if @config[:breadcrumbs] %>
<% ancestor_array = ancestor_path_array(@item) unless ancestor_path_array(@item).empty? %>
<% if ancestor_array %>
<ul class="breadcrumbs">
<% ancestor_array.reverse_each do |item| %>
<li class="breadcrumb"><%= link_to item.key?(:title) ? "#{item[:title]}" : "Breadcrumb", item %></li>
<% end %>
<li class="breadcrumb"><%= @item.key?(:title) ? "#{@item[:title]}" : "Current page" %></li>
</ul>
<div id="doc-nav" class="doc-nav">
<a class="toc-collapse" data-toggle="collapse" href="#markdown-toc" aria-expanded="true" aria-controls="markdown-toc"></a>
</div>
<% else %>
<div id="doc-nav" class="doc-nav toc-no-breadcrumbs">
<a class="toc-collapse" role="button" data-toggle="collapse" href="#markdown-toc" aria-expanded="true" aria-controls="markdown-toc"></a>
</div>
<% end %>
<% end %>
<% if @item[:title] %>
<h1 class="article-title" itemprop="name">
<%= @item[:title] %><%= @item[:title_badge] %>
</h1>
<% end %>
<% if @item[:author] %>
<div class="article-metadata">
Article written by <a href="https://gitlab.com/<%= @item[:author_gitlab] %>" target="_blank"><%= @item[:author] %></a>
on <%= @item[:date] %>
•
<% if @item[:last_updated] %>
Last updated: <%= @item[:last_updated] %>
•
<% end %>
Type: <%= @item[:article_type] %>
•
Level: <%= @item[:level] %>
</div>
<% end %>
<div class="article-content js-article-content" role="main" itemscope itemprop="mainContentOfPage">
<%= yield %>
</div>
<% if @item[:last_updated] %>
<hr>
<p class="last-updated">
<em>Last updated <%= @item[:last_updated] %></em>
</p>
<% end %>
<%= render '/feedback.*' %>
</div>
<div class="clear"></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
<script type="application/javascript" src="<%= @items['/assets/javascripts/clipboardjs.*'].path %>"></script>
<script type="application/javascript" src="<%= @items['/assets/javascripts/badges.*'].path %>"></script>
<%= render '/docsearch.*' %>
<%= render '/https_redirect.*' %>
<% if ENV['NANOC_ENV'] == 'production' %>
<%# Add analytics only in production %>
<%= render '/analytics.*' %>
<% end %>
<% if @item[:table_display_block] %>
<script type="application/javascript" src="<%= @items['/assets/javascripts/table-display-block.*'].path %>"></script>
<% end %>
<%= render '/footer.*' %>
<script src="<%= @items['/assets/javascripts/docs.*'].path %>"></script>
</body>
</html>
|