Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-05-14 19:14:37 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-05-14 19:14:37 +0300
commit06f9f044db22afb891181ccfcd44d5705afdfb0a (patch)
tree3ad73da1976c4a619cecca3d1c68837bcb7d7d3d /content
parentcf95b8b98681d9981b42cad0a2bfa0a9ed94806e (diff)
Merge hardcoded paths into products logic
Diffstat (limited to 'content')
-rw-r--r--content/index.erb63
1 files changed, 16 insertions, 47 deletions
diff --git a/content/index.erb b/content/index.erb
index 20e5e483..c05ef128 100644
--- a/content/index.erb
+++ b/content/index.erb
@@ -2,15 +2,18 @@
title: GitLab Documentation
---
<div class="row">
- <ul class="topics" itemscope itemtype="http://www.schema.org/SiteNavigationElement">
+ <ul class="main-topics" itemscope itemtype="http://www.schema.org/SiteNavigationElement">
<% if ENV['NANOC_ENV'] == 'production' %>
<% @config[:products].each do |name, product| %>
<% if product[:expose] == true %>
- <li class="topic topic-<%= product[:slug] %>">
+ <li>
<a itemprop="url" href="<%= @items["/#{product[:slug]}/#{product[:index_file]}"].path %>">
- <div class="wrapper">
- <h2 itemprop="name"><%= product[:short_name] %></h2>
- <p><%= product[:description] %></p>
+ <div class="wrapper flex-container flex-column">
+ <img src="<%= product[:img] %>" alt="<%= product[:short_name] %> line logo">
+ <div class="topic-info">
+ <h2 itemprop="name"><%= product[:short_name] %></h2>
+ <p><%= product[:description] %></p>
+ </div>
</div>
</a>
</li>
@@ -19,11 +22,14 @@ title: GitLab Documentation
<% else %>
<% @config[:products].each do |name, product| %>
<% if Dir.exist?("#{@config[:content_dir]}/#{product[:slug]}")%>
- <li class="topic topic-<%= product[:slug] %>">
- <a href="<%= @items["/#{product[:slug]}/#{product[:index_file]}"].path %>">
- <div class="wrapper">
- <h2><%= product[:short_name] %></h2>
- <p><%= product[:description] %></p>
+ <li>
+ <a itemprop="url" href="<%= @items["/#{product[:slug]}/#{product[:index_file]}"].path %>">
+ <div class="wrapper flex-container flex-column">
+ <img src="<%= product[:img] %>" alt="<%= product[:short_name] %> line logo">
+ <div class="topic-info">
+ <h2 itemprop="name"><%= product[:short_name] %></h2>
+ <p><%= product[:description] %></p>
+ </div>
</div>
</a>
</li>
@@ -32,43 +38,6 @@ title: GitLab Documentation
<% end %>
</ul>
</div>
-<div class="row">
- <ul class="main-topics">
- <li>
- <a href="/ee">
- <div class="wrapper flex-container flex-column">
- <img src="/assets/images/docs-gitlab.svg" alt="gitlab line logo">
- <div class="topic-info">
- <h2 itemprop="name">GitLab</h2>
- <p>Browse user and administration documentation and guides for GitLab Community Edition, Enterprise Edition, and GitLab.com.</p>
- </div>
- </div>
- </a>
- </li>
- <li>
- <a href="/omnibus">
- <div class="wrapper flex-container flex-column">
- <img src="/assets/images/docs-omnibus.svg" alt="gitlab omnibus icon">
- <div class="topic-info">
- <h2 itemprop="name">Omnibus</h2>
- <p>Browse installation, configuration, maintenance, and troubleshooting documentation for Omnibus GitLab.</p>
- </div>
- </div>
- </a>
- </li>
- <li>
- <a href="/runner">
- <div class="wrapper flex-container flex-column">
- <img src="/assets/images/docs-runner.svg" alt="gitlab runner icon">
- <div class="topic-info">
- <h2 itemprop="name">Runner</h2>
- <p>Browse installation, configuration, maintenance, and troubleshooting documentation for GitLab Runner.</p>
- </div>
- </div>
- </a>
- </li>
- </ul>
-</div>
<div class="popular-topics">
<h1>Most popular topics</h1>
<div class="topics-container flex-container">