Skip to content
This repository was archived by the owner on Aug 6, 2020. It is now read-only.

Commit ff8e86f

Browse files
committed
moved landing page, started updates on other pages
1 parent d391dc3 commit ff8e86f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3520
-117
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<%#encoding:UTF-8%><div<%= @id && %( id="#{@id}") %> class="<%= ['admonitionblock',(attr :name),role].compact * ' ' %>">
2+
<table>
3+
<tr>
4+
<td class="icon"><%
5+
if @document.attr? :icons, 'font' %>
6+
<i class="fa icon-<%= attr 'name' %>" title="<%= @caption %>"></i><%
7+
elsif @document.attr? :icons %>
8+
<img src="<%= icon_uri(attr :name) %>" alt="<%= @caption %>"><%
9+
else %>
10+
<div class="title label"><%= @caption %></div><%
11+
end %>
12+
</td>
13+
<td class="content"><%
14+
if title? %>
15+
<div class="title label"><%= title %></div><%
16+
end %>
17+
<%= content %>
18+
</td>
19+
</tr>
20+
</table>
21+
</div>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<%#encoding:UTF-8%><div<%= @id && %( id="#{@id}") %> class="<%= ['imageblock',@style,role].compact * ' ' %>"<%
2+
if (attr? :align) || (attr? :float)
3+
%> style="<%= [("text-align: #{attr :align};" if attr? :align),("float: #{attr :float};" if attr? :float)].compact * ' ' %>"<%
4+
end %>>
5+
<p class="content"><%
6+
if attr? :link %>
7+
<a class="image" href="<%= attr :link %>"><img src="<%= image_uri(attr :target) %>" alt="<%= attr :alt %>"<%= (attr? :width) ? %( width="#{attr :width}") : nil %><%= (attr? :height) ? %( height="#{attr :height}") : nil %>></a><%
8+
else %>
9+
<img src="<%= image_uri(attr :target) %>" alt="<%= attr :alt %>"<%= (attr? :width) ? %( width="#{attr :width}") : nil %><%= (attr? :height) ? %( height="#{attr :height}") : nil %>><%
10+
end %>
11+
</p><%
12+
if title? %>
13+
<div class="title"><%= captioned_title %></div><%
14+
end %>
15+
</div>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<%#encoding:UTF-8%><div<%= @id && %( id="#{@id}") %> class="<%= ['listingblock',role].compact * ' ' %>"><%
2+
if title? %>
3+
<div class="title"><%= captioned_title %></div><%
4+
end %>
5+
<div class="content code-panel" style="width: 100%; height: auto; border: medium 1px;"><%
6+
nowrap = !(@document.attr? :prewrap) || (option? :nowrap)
7+
if @style == 'source'
8+
language = attr :language
9+
code_class = language ? [language, %(language-#{language})] : []
10+
pre_class = ['highlight']
11+
pre_lang = nil
12+
case attr 'source-highlighter'
13+
when 'coderay'
14+
pre_class = ['CodeRay']
15+
when 'pygments'
16+
pre_class = ['pygments','highlight']
17+
when 'prettify'
18+
pre_class = ['prettyprint']
19+
pre_class << 'linenums' if attr? :linenums
20+
pre_class << language if language
21+
pre_class << %(language-#{language}) if language
22+
code_class = []
23+
when 'html-pipeline'
24+
pre_lang = language
25+
pre_class = code_class = []
26+
nowrap = false
27+
when 'codemirror'
28+
pre_lang = language
29+
pre_class = ["code programlisting cm-s-neo"]
30+
code_class = []
31+
nowrap = false
32+
end
33+
pre_class << 'nowrap' if nowrap %>
34+
<pre style="font-size: 16px; font-weight: 100;" <%= pre_class.empty? ? nil : %( class="#{pre_class * ' '}") %><%= pre_lang && %( data-lang="#{pre_lang}") %>><code<%= code_class.empty? ? nil : %( class="#{code_class * ' '}") %>><%= content %></code></pre><%
35+
else %>
36+
<pre<%= nowrap ? ' class="nowrap"' : nil %>><%= content %></pre><%
37+
end %>
38+
</div>
39+
</div>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<%#encoding:UTF-8%><div<%= @id && %( id="#{@id}") %> class="<%= ['olist',@style,role].compact * ' ' %>"><%
2+
if title? %>
3+
<div class="title"><%= title %></div><%
4+
end %>
5+
<ol style="margin-left: 2.4rem;" class="<%= @style %>"<%= (attr? :start) ? %( start="#{attr :start}") : nil %><%= (keyword = list_marker_keyword) && %( type="#{keyword}") %>><%
6+
items.each do |item| %>
7+
<li>
8+
<%= item.text %><%
9+
if item.blocks? %>
10+
<%= item.content %><%
11+
end %>
12+
</li><%
13+
end %>
14+
</ol>
15+
</div>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<%#encoding:UTF-8%><%
2+
if @style == 'abstract'
3+
if @parent == @document && @document.doctype == 'book'
4+
puts 'asciidoctor: WARNING: abstract block cannot be used in a document without a title when doctype is book. Excluding block content.'
5+
else
6+
%><div<%= @id && %( id="#{@id}") %> class="<%= ['quoteblock','abstract',role].compact * ' ' %>"><%
7+
if title? %>
8+
<div class="title"><%= title %></div><%
9+
end %>
10+
<blockquote style="padding-left: 0;">
11+
<%= content %>
12+
</blockquote>
13+
</div><%
14+
end
15+
elsif @style == 'partintro' && (@level != 0 || @parent.context != :section || @document.doctype != 'book')
16+
puts 'asciidoctor: ERROR: partintro block can only be used when doctype is book and it\'s a child of a book part. Excluding block content.'
17+
else
18+
%><div<%= @id && %( id="#{@id}") %> class="<%= ['openblock',(@style == 'open' ? nil : @style),role].compact * ' ' %>"><%
19+
if title? %>
20+
<div class="title"><%= title %></div><%
21+
end %>
22+
<div class="content">
23+
<%= content %>
24+
</div>
25+
</div><%
26+
end %>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<%#encoding:UTF-8%>
2+
<% if role == "expertise" %>
3+
<div class="label"><%= content %></div>
4+
<hr/>
5+
<% else %>
6+
<div<%= @id && %( id="#{@id}") %> class="<%= ['paragraph',role].compact * ' ' %>"><%
7+
if title? %>
8+
<div class="title"><%= title %></div><%
9+
end %>
10+
<p><%= content %></p>
11+
</div>
12+
<% end %>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<%#encoding:UTF-8%><div id="preamble columns medium-12">
2+
<div class="sectionbody">
3+
<%= content %>
4+
</div><%
5+
if (attr? :toc) && (attr? 'toc-placement', 'preamble') %>
6+
<div id="toc" class="<%= attr 'toc-class', 'toc' %>">
7+
<div id="toctitle"><%= attr 'toc-title' %></div>
8+
<%= converter.convert @document, 'outline' %>
9+
</div><%
10+
end %>
11+
</div>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<%#encoding:UTF-8%><div<%= @id && %( id="#{@id}") %> class="<%= ['quoteblock',role].compact * ' ' %>" style="margin: auto; width: 95%;">
2+
<div class="row text-center hide-for-small hr-style">
3+
<div class="medium-5 columns">
4+
<hr>
5+
</div>
6+
<div class="medium-2 columns"> <object width="100%" height="100%" type="image/svg+xml" data="http://www.neo4j.com/wp-content/themes/neo4jzurb/assets/images/hr-image.svg"></object> </div>
7+
<div class="medium-5 columns">
8+
<hr>
9+
</div>
10+
</div>
11+
<%
12+
if title? %>
13+
<div class="title"><%= title %></div><%
14+
end %>
15+
<blockquote>
16+
<%= content %>
17+
</blockquote><%
18+
if (attr? :attribution) or (attr? :citetitle) %>
19+
<div class="attribution"><%
20+
if attr? :citetitle %>
21+
<cite><%= attr :citetitle %></cite><%
22+
end
23+
if attr? :attribution
24+
if attr? :citetitle %><br><%
25+
end %>
26+
<%= "&#8212; #{attr :attribution}" %><%
27+
end %>
28+
</div><%
29+
end %>
30+
<div class="row text-center hide-for-small hr-style">
31+
<div class="medium-5 columns">
32+
<hr>
33+
</div>
34+
<div class="medium-2 columns"> <object width="100%" height="100%" type="image/svg+xml" data="http://www.neo4j.com/wp-content/themes/neo4jzurb/assets/images/hr-image.svg"></object> </div>
35+
<div class="medium-5 columns">
36+
<hr>
37+
</div>
38+
</div>
39+
</div>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<%#encoding:UTF-8%><%
2+
if @document.attr? :toc
3+
toc_id = @id
4+
toc_role = (attr :role, (@document.attr 'toc-class', 'toc'))
5+
toc_title_id = nil
6+
toc_title = title? ? title : (@document.attr 'toc-title')
7+
toc_levels = (attr? :levels) ? (attr :levels).to_i : (@document.attr :toclevels, 2).to_i
8+
if !toc_id && (@document.embedded? || !(@document.attr? 'toc-placement'))
9+
toc_id = 'toc'
10+
toc_title_id = 'toctitle'
11+
end
12+
%><div<%= toc_id && %( id="#{toc_id}") %> class="<%= toc_role %>"><%
13+
if toc_title %>
14+
<h3 class="title"<%= toc_title_id && %( id="#{toc_title_id}") %>><%= toc_title %></h3><%
15+
end %>
16+
<% toc = converter.convert_with_options @document, 'outline', :toclevels => toc_levels %>
17+
<%= toc %>
18+
<%
19+
end %>
20+
</div>
21+
<hr>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<%#encoding:UTF-8%><%
2+
slevel = @level.zero? && @special ? 1 : @level
3+
if (checklist = (option? :checklist) ? 'checklist' : nil)
4+
if option? :interactive
5+
marker_checked = '<input type="checkbox" data-item-complete="1" checked>'
6+
marker_unchecked = '<input type="checkbox" data-item-complete="0">'
7+
else
8+
if @document.attr? :icons, 'font'
9+
marker_checked = '<i class="icon-check"></i>'
10+
marker_unchecked = '<i class="icon-check-empty"></i>'
11+
else
12+
marker_checked = '&#10003;'
13+
marker_unchecked = '&#10063;'
14+
end
15+
end
16+
end %><div<%= @id && %( id="#{@id}") %> class="<%= ['ulist',checklist,@style,role].compact * ' ' %>"><%
17+
if title? %>
18+
<div class="title"><%= title %></div><%
19+
end %>
20+
<ul<%= (style_class = checklist || @style) ? %( class="#{style_class}") : nil %>><%
21+
items.each do |item| %>
22+
<li>
23+
<%
24+
if checklist && (item.attr? :checkbox) %><%= %(#{(item.attr? :checked) ? marker_checked : marker_unchecked} #{item.text}) %><%
25+
else %><%= item.text %><%
26+
end %><%
27+
if item.blocks? %>
28+
<%= item.content %><%
29+
end %>
30+
</li><%
31+
end %>
32+
</ul>
33+
</div>

0 commit comments

Comments
 (0)