1[38;2;249;38;114mlocal[0m[38;2;248;248;242m html = [0m[3;38;2;102;217;239mimport[0m[38;2;248;248;242m [0m[38;2;230;219;116m'html.libsonnet'[0m[38;2;248;248;242m;[0m
2[38;2;249;38;114mlocal[0m[38;2;248;248;242m jekyll = [0m[3;38;2;102;217;239mimport[0m[38;2;248;248;242m [0m[38;2;230;219;116m'jekyll.libsonnet'[0m[38;2;248;248;242m;[0m
3[38;2;249;38;114mlocal[0m[38;2;248;248;242m content = [0m[3;38;2;102;217;239mimport[0m[38;2;248;248;242m [0m[38;2;230;219;116m'stdlib-content.jsonnet'[0m[38;2;248;248;242m;[0m
5[38;2;249;38;114mlocal[0m
6[38;2;248;248;242m h1 = html.h1,[0m
7[38;2;248;248;242m p = html.p;[0m
9[38;2;249;38;114mlocal[0m[38;2;248;248;242m manifestJsonSingleLine(val) = [0m[38;2;102;217;239mstd.strReplace[0m[38;2;248;248;242m([0m[38;2;102;217;239mstd.manifestJsonEx[0m[38;2;248;248;242m(val, [0m[38;2;230;219;116m''[0m[38;2;248;248;242m), [0m[38;2;230;219;116m'[0m[38;2;190;132;255m\n[0m[38;2;230;219;116m'[0m[38;2;248;248;242m, [0m[38;2;230;219;116m' '[0m[38;2;248;248;242m);[0m
11[38;2;249;38;114mlocal[0m[38;2;248;248;242m exampleDoc(ex) =[0m
12[38;2;248;248;242m [0m[38;2;249;38;114mlocal[0m[38;2;248;248;242m exRep =[0m
13[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;102;217;239mstd.isString[0m[38;2;248;248;242m(ex) [0m[38;2;249;38;114mthen[0m
14[38;2;248;248;242m ex[0m
15[38;2;248;248;242m [0m[38;2;249;38;114melse[0m
16[38;2;248;248;242m html.spaceless([html.code({}, ex.input), [0m[38;2;230;219;116m' yields '[0m[38;2;248;248;242m, html.code({}, manifestJsonSingleLine(ex.output))])[0m
17[38;2;248;248;242m ;[0m
18[38;2;248;248;242m html.p({}, html.spaceless([[0m[38;2;230;219;116m'Example: '[0m[38;2;248;248;242m, exRep, [0m[38;2;230;219;116m'.'[0m[38;2;248;248;242m]))[0m
21[38;2;249;38;114mlocal[0m[38;2;248;248;242m hgroup(body) = html.div({ [0m[38;2;166;226;46mclass:[0m[38;2;248;248;242m [0m[38;2;230;219;116m'hgroup'[0m[38;2;248;248;242m }, body);[0m
22[38;2;249;38;114mlocal[0m[38;2;248;248;242m hgroup_inline(body) = html.div({ [0m[38;2;166;226;46mclass:[0m[38;2;248;248;242m [0m[38;2;230;219;116m'hgroup-inline'[0m[38;2;248;248;242m }, [body, [0m[38;2;230;219;116m'<div style="clear: both"></div>'[0m[38;2;248;248;242m]);[0m
23[38;2;249;38;114mlocal[0m[38;2;248;248;242m panel(body) = html.div({ [0m[38;2;166;226;46mclass:[0m[38;2;248;248;242m [0m[38;2;230;219;116m'panel'[0m[38;2;248;248;242m }, body);[0m
25[38;2;249;38;114mlocal[0m[38;2;248;248;242m in_panel(body) = hgroup(hgroup_inline(panel(body)));[0m
27[38;2;249;38;114mlocal[0m[38;2;248;248;242m fieldParams(f) =[0m
28[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;102;217;239mstd.objectHas[0m[38;2;248;248;242m(f, [0m[38;2;230;219;116m'params'[0m[38;2;248;248;242m) [0m[38;2;249;38;114mthen[0m
29[38;2;248;248;242m [0m[38;2;230;219;116m'('[0m[38;2;248;248;242m + [0m[38;2;102;217;239mstd.join[0m[38;2;248;248;242m([0m[38;2;230;219;116m', '[0m[38;2;248;248;242m, f.params) + [0m[38;2;230;219;116m')'[0m
30[38;2;248;248;242m [0m[38;2;249;38;114melse[0m
31[38;2;248;248;242m [0m[38;2;230;219;116m''[0m
34[38;2;249;38;114mlocal[0m[38;2;248;248;242m fieldDescription(f) =[0m
35[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;102;217;239mstd.isString[0m[38;2;248;248;242m(f.description) [0m[38;2;249;38;114mthen[0m
36[38;2;248;248;242m html.p({}, f.description)[0m
37[38;2;248;248;242m [0m[38;2;249;38;114melse[0m
38[38;2;248;248;242m f.description[0m
41[38;2;249;38;114mlocal[0m[38;2;248;248;242m fieldDoc(f, prefix) =[0m
42[38;2;248;248;242m [[0m
43[38;2;248;248;242m in_panel(html.h4({ [0m[38;2;166;226;46mid:[0m[38;2;248;248;242m f.name }, prefix + [0m[38;2;230;219;116m'.'[0m[38;2;248;248;242m + f.name + fieldParams(f))),[0m
44[38;2;248;248;242m in_panel([[0m
45[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;102;217;239mstd.objectHas[0m[38;2;248;248;242m(f, [0m[38;2;230;219;116m'availableSince'[0m[38;2;248;248;242m) [0m[38;2;249;38;114mthen[0m[38;2;248;248;242m ([0m
46[38;2;248;248;242m html.p([0m
47[38;2;248;248;242m {},[0m
48[38;2;248;248;242m html.em([0m
49[38;2;248;248;242m {},[0m
50[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m f.availableSince == [0m[38;2;230;219;116m'upcoming'[0m[38;2;248;248;242m [0m[38;2;249;38;114mthen[0m
51[38;2;248;248;242m [0m[38;2;230;219;116m'Available in upcoming release.'[0m
52[38;2;248;248;242m [0m[38;2;249;38;114melse[0m
53[38;2;248;248;242m [0m[38;2;230;219;116m'Available since version '[0m[38;2;248;248;242m + f.availableSince + [0m[38;2;230;219;116m'.'[0m
54[38;2;248;248;242m )[0m
55[38;2;248;248;242m )[0m
56[38;2;248;248;242m ),[0m
57[38;2;248;248;242m fieldDescription(f),[0m
58[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;102;217;239mstd.objectHas[0m[38;2;248;248;242m(f, [0m[38;2;230;219;116m'examples'[0m[38;2;248;248;242m) [0m[38;2;249;38;114mthen[0m[38;2;248;248;242m [[0m
59[38;2;248;248;242m exampleDoc(ex)[0m
60[38;2;248;248;242m [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m ex [0m[38;2;249;38;114min[0m[38;2;248;248;242m f.examples[0m
61[38;2;248;248;242m ] [0m[38;2;249;38;114melse[0m[38;2;248;248;242m [],[0m
62[38;2;248;248;242m ]),[0m
63[38;2;248;248;242m [0m[38;2;230;219;116m''[0m[38;2;248;248;242m,[0m
64[38;2;248;248;242m ];[0m
66[38;2;249;38;114mlocal[0m[38;2;248;248;242m group(group_spec, prefix) =[0m
67[38;2;248;248;242m [[0m
68[38;2;248;248;242m in_panel(html.h3({ [0m[38;2;166;226;46mid:[0m[38;2;248;248;242m group_spec.id }, group_spec.name)),[0m
69[38;2;248;248;242m [0m[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;102;217;239mstd.objectHas[0m[38;2;248;248;242m(group_spec, [0m[38;2;230;219;116m'intro'[0m[38;2;248;248;242m) [0m[38;2;249;38;114mthen[0m[38;2;248;248;242m in_panel(group_spec.intro),[0m
70[38;2;248;248;242m [0m[38;2;230;219;116m''[0m[38;2;248;248;242m,[0m
71[38;2;248;248;242m [fieldDoc(f, prefix) [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m f [0m[38;2;249;38;114min[0m[38;2;248;248;242m group_spec.fields],[0m
72[38;2;248;248;242m [0m[38;2;230;219;116m''[0m[38;2;248;248;242m,[0m
73[38;2;248;248;242m ];[0m
75[38;2;249;38;114mlocal[0m[38;2;248;248;242m stdlibPage = [[0m
76[38;2;248;248;242m in_panel(html.h1({[0m[38;2;166;226;46mid:[0m[38;2;248;248;242m [0m[38;2;230;219;116m'standard_library'[0m[38;2;248;248;242m}, [0m[38;2;230;219;116m'Standard Library'[0m[38;2;248;248;242m)),[0m
77[38;2;248;248;242m [0m[38;2;230;219;116m''[0m[38;2;248;248;242m,[0m
78[38;2;248;248;242m in_panel(content.intro),[0m
79[38;2;248;248;242m [0m[38;2;230;219;116m''[0m[38;2;248;248;242m,[0m
80[38;2;248;248;242m [group(g, content.prefix) [0m[38;2;249;38;114mfor[0m[38;2;248;248;242m g [0m[38;2;249;38;114min[0m[38;2;248;248;242m content.groups],[0m
81[38;2;248;248;242m];[0m
83[38;2;249;38;114mlocal[0m[38;2;248;248;242m stdlibFrontMatter = {[0m
84[38;2;248;248;242m [0m[38;2;166;226;46mlayout:[0m[38;2;248;248;242m [0m[38;2;230;219;116m'default'[0m[38;2;248;248;242m,[0m
85[38;2;248;248;242m [0m[38;2;166;226;46mtitle:[0m[38;2;248;248;242m [0m[38;2;230;219;116m'Standard Library'[0m[38;2;248;248;242m,[0m
86[38;2;248;248;242m};[0m
88[38;2;248;248;242mjekyll.renderWithFrontMatter(stdlibFrontMatter, stdlibPage)[0m
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list