Skip to content
Snippets Groups Projects
Commit 745d1f9d authored by bigbes's avatar bigbes
Browse files

Delete old templates and styles

parent b336994d
No related branches found
No related tags found
No related merge requests found
(function(){
var dOn = $(document);
dOn.on({
click: function(){
if (!($(this).hasClass('b-button_on'))){
$('.b-button_on').removeClass('b-button_on');
$(this).addClass('b-button_on');
switch ($(this).html()) {
case 'A_Read' : {
$('#picture2').renderChart('/ycsb/A_READ_latency.json');
break;
}
case 'A_Update' : {
$('#picture2').renderChart('/ycsb/A_UPDATE_latency.json');
break;
}
case 'B_Read' : {
$('#picture2').renderChart('/ycsb/B_READ_latency.json');
break;
}
case 'B_Update' : {
$('#picture2').renderChart('/ycsb/B_UPDATE_latency.json');
break;
}
case 'C_Read' : {
$('#picture2').renderChart('/ycsb/C_READ_latency.json');
break;
}
case 'D_Insert' : {
$('#picture2').renderChart('/ycsb/D_INSERT_latency.json');
break;
}
case 'D_Read' : {
$('#picture2').renderChart('/ycsb/D_READ_latency.json');
break;
}
case 'E_Insert' : {
$('#picture2').renderChart('/ycsb/E_INSERT_latency.json');
break;
}
case 'E_Scan' : {
$('#picture2').renderChart('/ycsb/E_SCAN_latency.json');
break;
}
case 'F_Read' : {
$('#picture2').renderChart('/ycsb/F_READ_latency.json');
break;
}
case 'F_Read-Modify-Write' : {
$('#picture2').renderChart('/ycsb/F_READ-MODIFY-WRITE_latency.json');
break;
}
case 'F_Update' : {
$('#picture2').renderChart('/ycsb/F_UPDATE_latency.json');
break;
}
case 'LOAD_Insert' : {
$('#picture2').renderChart('/ycsb/LOAD_INSERT_latency.json');
break;
}
}
}
}
}, '.b-button');
dOn.on({
click: function(){
if (!($(this).hasClass('b-tabs__li_on'))){
$('.b-tabs__li_on').removeClass('b-tabs__li_on');
$(this).addClass('b-tabs__li_on');
$('.b-button').remove();
var head = $('.b-tabs__header'), ul = $('.b-tabs__buttons'), li, desc = $('.b-tabs__description');
switch ($(this).html()) {
case 'A' : {
head.html('Workload A')
$('#picture1').renderChart('/ycsb/A_throughput.json');
$('#picture2').renderChart('/ycsb/A_READ_latency.json');
li = $('<li class="b-button b-button_on">A_Read</li>');
ul.append(li);
li = $('<li class="b-button">A_Update</li>');
ul.append(li);
desc.html('50/50 update/read ratio');
break;
}
case 'B' : {
head.html('Workload B')
$('#picture1').renderChart('/ycsb/B_throughput.json');
$('#picture2').renderChart('/ycsb/B_READ_latency.json');
li = $('<li class="b-button b-button_on">B_Read</li>');
ul.append(li);
li = $('<li class="b-button">B_Update</li>');
ul.append(li);
desc.html('5/95 update/read ratio');
break;
}
case 'C' : {
head.html('Workload C')
$('#picture1').renderChart('/ycsb/C_throughput.json');
$('#picture2').renderChart('/ycsb/C_READ_latency.json');
li = $('<li class="b-button b-button_on">C_Read</li>');
ul.append(li);
desc.html('100% read-only');
break;
}
case 'D' : {
head.html('Workload D')
$('#picture1').renderChart('/ycsb/D_throughput.json');
$('#picture2').renderChart('/ycsb/D_READ_latency.json');
li = $('<li class="b-button b-button_on">D_Read</li>');
ul.append(li);
li = $('<li class="b-button">D_Insert</li>');
ul.append(li);
desc.html('5/95 insert/read ratio, the read load is skewed towards the end of the key range');
break;
}
case 'E' : {
head.html('Workload E')
$('#picture1').renderChart('/ycsb/E_throughput.json');
$('#picture2').renderChart('/ycsb/E_INSERT_latency.json');
li = $('<li class="b-button b-button_on">E_Insert</li>');
ul.append(li);
li = $('<li class="b-button">E_Scan</li>');
ul.append(li);
desc.html('5/95 ratio of insert/reads over a range of 10 records');
break;
}
case 'F' : {
head.html('Workload F')
$('#picture1').renderChart('/ycsb/F_throughput.json');
$('#picture2').renderChart('/ycsb/F_READ_latency.json');
li = $('<li class="b-button b-button_on">F_Read</li>');
ul.append(li);
li = $('<li class="b-button">F_Read-Modify-Write</li>');
ul.append(li);
li = $('<li class="b-button">F_Update</li>');
ul.append(li);
desc.html('95% read/modify/write, 5% read');
break;
}
case 'LOAD' : {
head.html('Insert only')
$('#picture1').renderChart('/ycsb/LOAD_throughput.json');
$('#picture2').renderChart('/ycsb/LOAD_INSERT_latency.json');
li = $('<li class="b-button b-button_on">L_Insert</li>');
ul.append(li);
desc.html('');
break;
}
}
}
}
}, '.b-tabs__li');
})();
(function(){
var dOn = $(document);
dOn.ready(function() {
$('#picture1').renderChart('/ycsb/A_throughput.json');
$('#picture2').renderChart('/ycsb/A_READ_latency.json');
});
})();
---
title : "Tarantool - Documentation"
slug : "documentation"
save_as : "documentation.html"
template: "documentation"
blocks :
sections:
- name: "Introduction"
list:
- name: "What is Tarantool?"
link: "doc/introduction.html#what-is-tarantool"
- name: "An overview of the architecture"
link: "doc/introduction.html#an-overview-of-the-architecture"
- name: "Key features"
link: "doc/introduction.html#key-features"
- name: "How stable is the software?"
link: "doc/introduction.html#how-stable-is-the-software"
- name: "User Guide"
list:
- name: "Multi page HTML"
link: "doc/user_guide/"
- name: "Single page HTML"
link: "doc/user_guide.html"
- name: "FAQ"
link: "doc/faq.html"
- name: "Developer section"
list:
- name: "Developer Guide"
link: "doc/dev_guide.html"
- name: "IProto Protocol"
link: "doc/box-protocol.html"
...
.tntadmin {
font-family: monospace;
font-weight: bold;
text-transform: uppercase;
color: green;
}
.lua {
font-family: monospace;
font-weight: bold;
}
strong.hl-keyword {
color: green !important;
font-weight: bold;
}
em.hl-comment {
color: #3366FF !important;
font-weight: normal;
}
strong.hl-string em {
color: red !important;
font-weight: bold;
}
body {
min-width: 768px;
max-width: 1024px;
margin: auto;
}
.book {
margin: 2pt auto;
font-size: 100%
}
.book h1 {
font-size: 150%
}
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
text-decoration: none;
outline: 0;
padding: 5px;
background-color: rgba(0,0,0,0.1);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
div.toc dl{
margin-top: 0px;
}
div.itemizedlist ul li p{
margin: 4px;
}
div#header {
display: block;
}
div#content {
border-top: 1px dotted black;
}
div#headwrap {
width: 100%;
}
div.column {
display: inline-block;
}
div#headl {
float: left;
width: 30%;
}
div#headr {
float: right;
width: 69%;
text-align: right
}
/* This stylesheet heavily borrows from http://necolas.github.com/normalize.css */
/* =============================================================================
Base
========================================================================== */
/*
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
* http://clagnut.com/blog/348/#c790
* 2. Keeps page centred in all browsers regardless of content height
* 3. Prevents iOS text size adjust after orientation change, without disabling user zoom
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
*/
html {
font-size: 100%; /* 1 */
overflow-y: scroll; /* 2 */
-webkit-text-size-adjust: 100%; /* 3 */
-ms-text-size-adjust: 100%; /* 3 */
}
/*
* Addresses margins handled incorrectly in IE6/7
*/
body {
margin: 0;
}
/* =============================================================================
Typography
========================================================================== */
/*
* Neutralise smaller font-size in 'section' and 'article' in FF4+, Chrome, S5
*/
h1 {
font-size: 1.5em;
}
/*
* Addresses style set to 'bolder' in FF3+, S4/5, Chrome
*/
b, strong {
font-weight: bold;
}
blockquote {
margin: 1em 40px;
}
/*
* Corrects font family set oddly in IE6, S4/5, Chrome
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
*/
pre, code, kbd, samp {
font-family: monospace, serif;
_font-family: 'courier new', monospace;
font-size: 100%;
}
/*
* Improves readability of pre-formatted text in all browsers
*/
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
text-decoration: none;
outline: 0;
background-color: rgba(0,0,0,0.1);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
/*
* 1. Addresses CSS quotes not supported in IE6/7
* 2. Addresses quote property not supported in S4
*/
/* 1 */
q {
quotes: none;
}
/* 2 */
q:before,
q:after {
content: '';
content: none;
}
/*
* XXX
*/
small {
font-size: 75%;
}
/*
* Prevents sub and sup affecting line-height in all browsers
* gist.github.com/413930
*/
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* =============================================================================
Lists
========================================================================== */
ul, ol {
margin-left: 0;
padding: 0 0 0 40px;
}
dd {
margin: 0 0 0 40px;
}
/* =============================================================================
Embedded content
========================================================================== */
/*
* 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
* 2. Improves image quality when scaled in IE7
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
*/
img {
border: 0; /* 1 */
-ms-interpolation-mode: bicubic; /* 2 */
}
.ycsb {
width: 768px;
}
/* =============================================================================
Tables
========================================================================== */
/*
* Remove most spacing between table cells
*/
table {
border-collapse: collapse;
border-spacing: 0;
}
/* ==========================================================================
Grid
======================================================================== */
.grid {
width: 768px;
overflow: hidden;
margin-left: auto;
margin-right: auto;
padding: 0 10px 0 0;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
clear: both;
}
.span_1, .span_2, .span_3, .span_4, .span_5, .span_6,
.span_7, .span_8, .span_9, .span_10, .span_11, .span_12 {
float: left;
dsiplay: inline; /* IE workaround */
margin-left: 10px;
}
.span_1 { width: 70px; }
.span_2 { width: 150px; }
.span_3 { width: 230px; }
.span_4 { width: 303px; }
.span_5 { width: 390px; }
.span_6 { width: 470px; }
.span_7 { width: 550px; }
.span_8 { width: 630px; }
.span_9 { width: 710px; }
.span_10 { width: 790px; }
.span_11 { width: 870px; }
.span_12 { width: 950px; }
.lpad_1 { padding-left: 80px; }
.lpad_2 { padding-left: 160px; }
.lpad_3 { padding-left: 240px; }
.lpad_4 { padding-left: 320px; }
.lpad_5 { padding-left: 400px; }
.lpad_6 { padding-left: 480px; }
.lpad_7 { padding-left: 560px; }
.lpad_8 { padding-left: 640px; }
.lpad_9 { padding-left: 720px; }
.lpad_10 { padding-left: 800px; }
.lpad_11 { padding-left: 880px; }
.rpad_1 { padding-right: 80px; }
.rpad_2 { padding-right: 160px; }
.rpad_3 { padding-right: 240px; }
.rpad_4 { padding-right: 320px; }
.rpad_5 { padding-right: 400px; }
.rpad_6 { padding-right: 480px; }
.rpad_7 { padding-right: 560px; }
.rpad_8 { padding-right: 640px; }
.rpad_9 { padding-right: 720px; }
.rpad_10 { padding-right: 800px; }
.rpad_11 { padding-right: 880px; }
/* =============================================================================
Custom styles
========================================================================== */
html, body{
width: 768px;
margin: auto;
}
/* =============================================================================
Styles for tabs and buttons used in benchmark*.html
========================================================================== */
.b-schedule{
height: 100%;
width: 768px;
margin:0 auto;
padding: 0;
}
.header{
font-size: 2em;
line-height: 1;
text-align: center;
margin: 40 auto;
}
.b-tabs{
height: 100%;
}
.b-tabs__list{
padding: 0px;
list-style: none;
border: 1px solid #b2b2b2;
border-bottom: 0;
-webkit-border-radius: 5px 5px 0 0;
-moz-border-radius: 5px 5px 0 0;
border-radius: 5px 5px 0 0;
-webkit-user-select: none;
box-shadow: 0 2px 4px -3px #000;
-webkit-padding-start: 0;
background-color: #f5f5f5;
-webkit-padding-start: 0;
overflow: hidden;
margin: 0;
}
.b-tabs__li{
float: left;
padding: 10px;
cursor: pointer;
border-right: 1px solid #b2b2b2;
}
.b-tabs__li:last-child{
border-right: none;
}
.b-tabs__li_on, .b-tabs__li:active{
background-color: #fafafa;
padding: 11px 9px 9px 11px;
color: #3f3f3f;
}
.b-tabs__body{
position: relative;
padding: 20px;
height: 980px;
border: 2px solid black;
}
#picture1, #picture2{
min-width: 400px;
margin: 0 auto;
}
.b-tabs__buttons{
padding: 0;
right: 20px;
border: 2px solid #b2b2b2;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-user-select: none;
box-shadow: 0 2px 4px -3px #000;
-webkit-padding-start: 0;
background-color: #eaeaea;
outline: none;
cursor: pointer;
list-style: none;
float: right;
}
.b-button{
float: left;
margin: 0;
padding: 3px;
border-right: 1px solid #b2b2b2;
font-size: medium;
}
.b-button:last-child{
border: none;
}
.b-button_on, .b-button:active{
background-color: #fafafa;
padding: 4px 2px 3px 4px;
color: #3f3f3f;
}
h3 {
text-align:center;
}
/*
* Disable current link in header, when we are on current page
*/
body#tarantool.index #header #blurb h1 a.index,
body#tarantool.intro #header #blurb h3 a.intro,
body#tarantool.documentation #header #blurb h3 a.documentation,
body#tarantool.download #header #blurb h3 a.download,
body#tarantool.support #header #blurb h3 a.support {
pointer-events: none;
cursor: default;
text-decoration: none;
}
#header, #content{
background-color: #fff;
}
#content {
padding-bottom: 5px;
}
#blurb {
margin: 20px auto;
}
#blurb h1 {
font-size: 2em;
line-height: 1;
text-align: center;
margin: 15px;
}
#blurb h2 {
font-size: 1.2em;
font-weight: normal;
line-height: 1;
text-align: center;
margin: 5px;
}
#blurb h3 {
text-align: center;
margin: 5px;
}
/* ===========================================================================
Layout
======================================================================== */
/*
* Top-level page sections:
* body > #header #content
*/
#header, #content {
width: 100%;
margin: 0px auto;
padding: 0px;
overflow: hidden;
}
#header {
margin-bottom: 5px;
}
/*
* http://sonspring.com/journal/clearing-floats
*/
.clear {
clear: both;
display: block;
visibility: hidden;
width: 0;
height: 0;
}
/* -- relbar ---------------------------------------------------------------- */
div.related {
width: 100%;
font-size: 90%;
}
div.related h3 {
display: none;
}
div.related ul {
margin: 0;
padding: 0 0 0 10px;
list-style: none;
}
div.related li {
display: inline;
}
div.related li.right {
float: right;
margin-right: 5px;
}
div.related li.center {
float: center;
margin-right: 5px;
}
/* =============================================================================
Links
========================================================================== */
a {
color: #201e9e;
}
/*
* Addresses outline displayed oddly in Chrome
*/
a:focus {
outline: thin dotted;
}
/*
* Improves readability when focused and also mouse hovered in all browsers
* people.opera.com/patrickl/experiments/keyboard/test
*/
a:active {
outline: 0;
}
a:hover {
outline: 0;
background-color: rgba(0,0,0,0.1);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
a.imglink:hover {
border : 0;
background-color: inherit;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
a:visited {
color: #3f3f3f;
}
body {
margin-bottom: 100px;
}
{% extends "base" %}
{% block header_scripts %}
{% endblock header_scripts %}
{% block content %}
<section class="b-lightgray_block b-documentation_top b-clearbox">
<div class="b-block-wrapper">
<h2 class="b-section-title">Documentation</h2>
<!--div class="b-search">
<input class="b-search-text" data-placeholder="Search in documentation" />
<input class="b-search-but" type="submit" />
</div-->
</div>
</section>
<section class="b-block b-tcontents">
<div class="b-block-wrapper">
<ul class="b-tcontents-list">
{% for item in page.blocks.sections %}
<li class="b-tcontents-list-item">
<h2 class="b-tcontents-list-item-title">{{ item.name }}</h2>
<ul class="b-tcontents-sublist">
{% for itemli in item.list %}
<li class="b-tcontents-sublist-item">
<a href="{{ itemli.link }}">{{ itemli.name }}</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</section>
{% endblock content %}
{# vim: syntax=htmldjango ts=2 sts=2 sw=2 expandtab #}
{% extends "base" %}
{% block header_scripts %}
<script src="js/main.js"></script>
{% endblock header_scripts %}
{% block content %}
<section class="b-lightgray_block b-documentation_top b-clearbox p-documentation_in">
<div class="b-block-wrapper">
<h2 class="b-section-title">Documentation</h2>
<!--div class="b-search">
<input class="b-search-text" data-placeholder="Search in documentation" />
<input class="b-search-but" type="submit" />
</div-->
</div>
</section>
<div class="b-cols_content b-clearbox">
<!--div class="b-cols_content_left">
<ul class="b-tcontents_full-list">
<li class="b-tcontents_full-list-item p-active">
<h2 class="b-tcontents_full-list-item-title">
{# number #}<a href="{# link #}">{# name #}</a>
</h2>
<p class="b-tcontents_full-list-item-disc">{# text #}</p>
<ul class="b-tcontents_full-sublist">
<li class="b-tcontents_full-sublist-item">
{# number #}<a href="{# link #}">{# name #}</a>
</li>
</ul>
</li>
</ul>
</div-->
<div class="b-cols_content_left">
</div>
<div class="b-cols_content_right">
<div class="b-cols_content_right-slot">
<article class="b-article">
{{ page.content }}
</article>
</div>
</div>
</div>
{% endblock %}
{# vim: syntax=htmldjango ts=2 sts=2 sw=2 expandtab #}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{{ title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="/theme/favicon.ico" />
{% if not documentation %}
<link rel="stylesheet" type="text/css" href="/theme/old_global.css" />
<link rel="stylesheet" type="text/css" href="/theme/pygmentize.css" />
{% endif %}
<link rel="stylesheet" type="text/css" href="/theme/old_header.css">
{% include "script" ignore missing %}
</head>
<body id="tarantool" {% if page %} class ="{{ page.slug }}" {% endif %}>
<div id="content">
{% block content %}
{% endblock content %}
</div>
</body>
</html>
{# vim: syntax=htmldjango ts=2 sts=2 sw=2 expandtab #}
{% extends "old_base" %}
{% set title = page.title %}
{% block content %}
{{ page.content }}
{% endblock content %}
{# vim: syntax=htmldjango ts=2 sts=2 sw=2 expandtab #}
{% extends "old_base" %}
{% set title = page.title %}
{% block content %}
<section id="content" class="body">
{{ page.content }}
</section>
{% endblock %}
{# vim: syntax=htmldjango ts=2 sts=2 sw=2 expandtab #}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment