Skip to content

Commit ff049f6

Browse files
committed
Adding versions page to docs.
1 parent 6d58fb9 commit ff049f6

File tree

13 files changed

+1725
-1
lines changed

13 files changed

+1725
-1
lines changed

_landing-page-static/css/docs-main.css

Lines changed: 1405 additions & 0 deletions
Large diffs are not rendered by default.

_landing-page-static/css/github.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 16 additions & 0 deletions
Loading
966 Bytes
Loading
Lines changed: 25 additions & 0 deletions
Loading

_landing-page-static/js/main.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
$('.nav-current').click(function(){
2+
$('.main-nav').toggleClass('open');
3+
});
4+
5+
$('.faq-btn').click(function(){
6+
$(this).toggleClass('open');
7+
});
8+
9+
$('.headerlink').parent().each(function() {
10+
$(this).hover(
11+
function() { $(this).children('.headerlink').show(); },
12+
function() { $(this).children('.headerlink').hide(); }
13+
);
14+
});
15+
16+
$('.side-nav').children('ul:nth-child(2)').children().each(function() {
17+
var itemName = $(this).text();
18+
if (itemName !== 'Datastore' && itemName !== 'Storage') {
19+
$(this).css('padding-left','2em');
20+
}
21+
});
22+
23+
var apiQsSection;
24+
// don't even ask me why
25+
if ($('#cloud-datastore-in-10-seconds').length)
26+
apiQsSection = $('#cloud-datastore-in-10-seconds');
27+
else if ($('#cloud-storage-in-10-seconds').length)
28+
apiQsSection = $('#cloud-storage-in-10-seconds');
29+
30+
if(apiQsSection) {
31+
var apiQsSubSections = apiQsSection.children('div');
32+
var showToggle = $('<span></span>')
33+
.text('▹')
34+
.addClass('toggle');
35+
var hideToggle = $('<span></span>')
36+
.text('▿')
37+
.addClass('toggle')
38+
.hide();
39+
showToggle.click(function() {
40+
showToggle.hide();
41+
hideToggle.show();
42+
apiQsSubSections.each(function() {
43+
$(this).show();
44+
})
45+
});
46+
hideToggle.click(function() {
47+
hideToggle.hide();
48+
showToggle.show();
49+
apiQsSubSections.each(function() {
50+
$(this).hide();
51+
})
52+
});
53+
var toggler = $('<div></div>')
54+
.addClass('toggler')
55+
.append(showToggle)
56+
.append(hideToggle);
57+
58+
apiQsSubSections.each(function() {
59+
$(this).hide();
60+
});
61+
$(apiQsSection).children('h2').first().prepend(toggler);
62+
}

_landing-page-static/js/plugins.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Avoid `console` errors in browsers that lack a console.
2+
(function() {
3+
var method;
4+
var noop = function () {};
5+
var methods = [
6+
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
7+
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
8+
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
9+
'timeStamp', 'trace', 'warn'
10+
];
11+
var length = methods.length;
12+
var console = (window.console = window.console || {});
13+
14+
while (length--) {
15+
method = methods[length];
16+
17+
// Only stub undefined methods.
18+
if (!console[method]) {
19+
console[method] = noop;
20+
}
21+
}
22+
}());
23+
24+
// Place any jQuery/helper plugins in here.

_landing-page-static/js/vendor/jquery-1.10.2.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)