Skip to content

Commit b529876

Browse files
committed
fetch base
1 parent c13e97e commit b529876

Some content is hidden

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

70 files changed

+15605
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
_site

Gemfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'uglifier'
4+
gem 'jekyll'
5+
gem 'jekyll-sitemap'
6+
gem 'jekyll-assets'
7+
gem 'github-markdown'
8+
gem 'html-pipeline'

Gemfile.lock

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (4.1.1)
5+
i18n (~> 0.6, >= 0.6.9)
6+
json (~> 1.7, >= 1.7.7)
7+
minitest (~> 5.1)
8+
thread_safe (~> 0.1)
9+
tzinfo (~> 1.1)
10+
blankslate (2.1.2.4)
11+
celluloid (0.15.2)
12+
timers (~> 1.1.0)
13+
classifier (1.3.4)
14+
fast-stemmer (>= 1.0.0)
15+
coffee-script (2.2.0)
16+
coffee-script-source
17+
execjs
18+
coffee-script-source (1.7.0)
19+
colorator (0.1)
20+
execjs (2.2.0)
21+
fast-stemmer (1.0.2)
22+
ffi (1.9.3)
23+
github-markdown (0.6.5)
24+
hike (1.2.3)
25+
html-pipeline (1.8.0)
26+
activesupport (>= 2)
27+
nokogiri (~> 1.4)
28+
i18n (0.6.9)
29+
jekyll (2.0.3)
30+
classifier (~> 1.3)
31+
colorator (~> 0.1)
32+
jekyll-coffeescript (~> 1.0)
33+
jekyll-sass-converter (~> 1.0)
34+
kramdown (~> 1.3)
35+
liquid (~> 2.5.5)
36+
listen (~> 2.5)
37+
mercenary (~> 0.3.3)
38+
pygments.rb (~> 0.5.0)
39+
redcarpet (~> 3.1)
40+
safe_yaml (~> 1.0)
41+
toml (~> 0.1.0)
42+
jekyll-assets (0.8.1)
43+
jekyll (>= 1.0.0, < 3.0.0)
44+
sass
45+
sprockets (~> 2.10)
46+
sprockets-helpers
47+
sprockets-sass
48+
jekyll-coffeescript (1.0.0)
49+
coffee-script (~> 2.2)
50+
jekyll-sass-converter (1.0.0)
51+
sass (~> 3.2)
52+
jekyll-sitemap (0.4.1)
53+
jekyll (~> 2.0)
54+
json (1.8.1)
55+
kramdown (1.4.0)
56+
liquid (2.5.5)
57+
listen (2.7.9)
58+
celluloid (>= 0.15.2)
59+
rb-fsevent (>= 0.9.3)
60+
rb-inotify (>= 0.9)
61+
mercenary (0.3.3)
62+
mini_portile (0.6.0)
63+
minitest (5.3.5)
64+
multi_json (1.10.1)
65+
nokogiri (1.6.2.1)
66+
mini_portile (= 0.6.0)
67+
parslet (1.5.0)
68+
blankslate (~> 2.0)
69+
posix-spawn (0.3.8)
70+
pygments.rb (0.5.4)
71+
posix-spawn (~> 0.3.6)
72+
yajl-ruby (~> 1.1.0)
73+
rack (1.5.2)
74+
rb-fsevent (0.9.4)
75+
rb-inotify (0.9.5)
76+
ffi (>= 0.5.0)
77+
redcarpet (3.1.2)
78+
safe_yaml (1.0.3)
79+
sass (3.3.8)
80+
sprockets (2.12.1)
81+
hike (~> 1.2)
82+
multi_json (~> 1.0)
83+
rack (~> 1.0)
84+
tilt (~> 1.1, != 1.3.0)
85+
sprockets-helpers (1.1.0)
86+
sprockets (~> 2.0)
87+
sprockets-sass (1.2.0)
88+
sprockets (~> 2.0)
89+
tilt (~> 1.1)
90+
thread_safe (0.3.4)
91+
tilt (1.4.1)
92+
timers (1.1.0)
93+
toml (0.1.1)
94+
parslet (~> 1.5.0)
95+
tzinfo (1.2.1)
96+
thread_safe (~> 0.1)
97+
uglifier (2.5.1)
98+
execjs (>= 0.3.0)
99+
json (>= 1.8.0)
100+
yajl-ruby (1.1.0)
101+
102+
PLATFORMS
103+
ruby
104+
105+
DEPENDENCIES
106+
github-markdown
107+
html-pipeline
108+
jekyll
109+
jekyll-assets
110+
jekyll-sitemap
111+
uglifier

_assets/javascripts/app.js

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
function expandNavigation(url) {
2+
return function() {
3+
var segments = url.split("/");
4+
var page = segments[segments.length - 1];
5+
var treeview = this;
6+
7+
var dataSource = this.dataSource;
8+
var node;
9+
10+
for (var idx = 0; idx < segments.length; idx++) {
11+
node = dataSource.get(segments[idx]);
12+
node.set("expanded", true);
13+
dataSource = node.children;
14+
}
15+
16+
node.set("selected", true);
17+
18+
this.unbind("dataBound", arguments.callee);
19+
}
20+
}
21+
22+
function navigationTemplate(root) {
23+
return function(data) {
24+
var item = data.item;
25+
var text = item.text;
26+
27+
if (item.hasChildren) {
28+
return text;
29+
}
30+
31+
var url = item.path;
32+
33+
if (location.pathname.indexOf(".html") < 0) {
34+
url = url.replace(".html", "");
35+
}
36+
37+
while (item = item.parentNode()) {
38+
url = item.path + "/" + url;
39+
}
40+
41+
return '<a href="' + root + url + '">' + text + "</a>";
42+
}
43+
}
44+
45+
function preventParentSelection(e) {
46+
if (this.dataItem(e.node).hasChildren) {
47+
e.preventDefault();
48+
this.toggle(e.node);
49+
}
50+
}
51+
52+
$(function(){
53+
54+
$("pre[lang]").each(function() {
55+
if (this.parentNode.className.indexOf("k-content") >= 0) {
56+
return;
57+
}
58+
59+
var langs = $(this).nextUntil(":not(pre)", "pre").add(this);
60+
61+
var tabs = $.map(langs, function(item) {
62+
return $("<li>").text($(item).attr("lang"));
63+
});
64+
65+
tabs[0].addClass("k-state-active");
66+
67+
var tabstrip = $("<div>")
68+
.insertBefore(this)
69+
.append($("<ul>").append(tabs))
70+
.append(langs);
71+
72+
langs.wrap("<div>");
73+
74+
tabstrip.kendoTabStrip({
75+
animation: false
76+
});
77+
});
78+
79+
var codeSampleMapper = {
80+
'C#': 'cs',
81+
'VB.NET' : 'vb',
82+
'AppBuilder' : 'js',
83+
'JavaScript' : 'js',
84+
'C++' : 'cpp',
85+
'C' : 'c',
86+
'Objective-C' : 'm',
87+
'Java' : 'java',
88+
}
89+
90+
// Enable prettyprint support. We need to map lang="JavaScript" to class="lang-js" in order to start proper pretty print lexer.
91+
$("pre").each(function(index){
92+
var langExtension = codeSampleMapper[$(this).attr('lang')];
93+
$(this).addClass('lang-' + langExtension).addClass("prettyprint");
94+
});
95+
96+
prettyPrint();
97+
98+
$("#markdown-toc").each(function() {
99+
var ul = $("<ul>");
100+
101+
$("#page-article h2").each(function() {
102+
var h2 = $(this);
103+
104+
if (!/fields|configuration|properties|events|methods/i.test(h2.text())) {
105+
return;
106+
}
107+
108+
$("<li>")
109+
.addClass("section")
110+
.append(h2.children().clone())
111+
.appendTo(ul)
112+
.mouseenter(function() {
113+
var children = $(this).children("ul");
114+
115+
if (!children.length) {
116+
children = $("<ul>");
117+
118+
h2.nextUntil("h2").filter("h3").each(function(){
119+
$("<li>").append($(this).children().clone()).appendTo(children);
120+
});
121+
122+
if (children.children().length) {
123+
children.appendTo(this);
124+
}
125+
}
126+
127+
children.show();
128+
})
129+
.mouseleave(function() {
130+
$(this).children("ul").hide();
131+
});
132+
});
133+
134+
ul.appendTo(this);
135+
});
136+
});

0 commit comments

Comments
 (0)