Skip to content

Commit 805c1dd

Browse files
authored
Merge pull request #70 from nils-a/feature/GH-65
(#65) updated documentation
2 parents cd1f5e8 + 5294e60 commit 805c1dd

19 files changed

+698
-202
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,14 @@ healthchecksdb
338338

339339
# Cake
340340
tools/**
341-
!tools/packages.config
342341

343342
# Build Related
344343
BuildArtifacts/*
345344

345+
# Wyam
346+
config.wyam.dll
347+
config.wyam.hash
348+
config.wyam.packages.xml
349+
350+
346351
.DS_Store

docs/input/_Bottom.cshtml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<a class="github-button" href="https://github.com/cake-contrib/Cake.Chocolatey.Module" target="_blank">
2+
<i class="fa fa-github"></i>
3+
GitHub
4+
</a>
5+
<a class="discussion-button" href="https://github.com/cake-build/cake/discussions" target="_blank">
6+
<i class="fa fa-github"></i>
7+
Discussion
8+
</a>
9+
10+
<script type="text/javascript" src="@Context.GetLink("/assets/js/anchor.min.js")"></script>
11+
<script type="text/javascript" src="@Context.GetLink("/assets/js/clipboard.min.js")"></script>
12+
<script type="text/javascript">
13+
anchors.options.placement = 'left';
14+
anchors.add('#content h1:not(.no-anchor), #content h2:not(.no-anchor), #content h3:not(.no-anchor), #content h4:not(.no-anchor)');
15+
16+
var snippets = document.querySelectorAll("pre > code");
17+
[].forEach.call(snippets, function(snippet) {
18+
snippet.insertAdjacentHTML("beforebegin", "<button class='btn-copy' data-clipboard-snippet><img class='clippy' width=13 src='@Context.GetLink("/assets/images/clippy.svg")' alt='Copy to clipboard'></button>");
19+
});
20+
var clipboardSnippets = new Clipboard('[data-clipboard-snippet]', {
21+
target: function(trigger) {
22+
return trigger.nextElementSibling;
23+
}
24+
});
25+
clipboardSnippets.on('success', function(e) {
26+
e.clearSelection();
27+
showTooltip(e.trigger, "Copied!");
28+
});
29+
clipboardSnippets.on('error', function(e) {
30+
showTooltip(e.trigger, fallbackMessage(e.action));
31+
});
32+
var btns = document.querySelectorAll('.btn-copy');
33+
for (var i = 0; i < btns.length; i++) {
34+
btns[i].addEventListener('mouseleave', function(e) {
35+
e.currentTarget.setAttribute('class', 'btn-copy');
36+
e.currentTarget.removeAttribute('aria-label');
37+
});
38+
}
39+
function showTooltip(elem, msg) {
40+
elem.setAttribute('class', 'btn-copy tooltipped tooltipped-s');
41+
elem.setAttribute('aria-label', msg);
42+
}
43+
function fallbackMessage(action) {
44+
var actionMsg = '';
45+
var actionKey = (action === 'cut' ? 'X' : 'C');
46+
if (/iPhone|iPad/i.test(navigator.userAgent)) {
47+
actionMsg = 'No support :(';
48+
} else if (/Mac/i.test(navigator.userAgent)) {
49+
actionMsg = 'Press ⌘-' + actionKey + ' to ' + action;
50+
} else {
51+
actionMsg = 'Press Ctrl-' + actionKey + ' to ' + action;
52+
}
53+
return actionMsg;
54+
}
55+
</script>

docs/input/_Footer.cshtml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<p class="text-muted">
2+
Copyright &copy; <a href="http://github.com/cake-contrib" target="_blank">Cake Contributions</a> and <a href="https://github.com/cake-contrib/Cake.Chocolatey.Module/graphs/contributors" target="_blank">contributors</a>.
3+
<br/>
4+
Website generated by <a href="https://github.com/Wyamio/Wyam" target="_blank">Wyam</a>
5+
</p>

docs/input/_Head.cshtml

Whitespace-only changes.
19.7 KB
Binary file not shown.

docs/input/assets/css/fonts/glyphicons-halflings-regular.svg

Lines changed: 288 additions & 0 deletions
Loading
44.3 KB
Binary file not shown.
22.9 KB
Binary file not shown.
17.6 KB
Binary file not shown.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
3+
github.com style (c) Vasily Polovnyov <[email protected]>
4+
5+
*/
6+
7+
.hljs {
8+
display: block;
9+
overflow-x: auto;
10+
padding: 0.5em;
11+
color: #333;
12+
background: #f8f8f8;
13+
}
14+
15+
.hljs-comment,
16+
.hljs-quote {
17+
color: #998;
18+
font-style: italic;
19+
}
20+
21+
.hljs-keyword,
22+
.hljs-selector-tag,
23+
.hljs-subst {
24+
color: #333;
25+
font-weight: bold;
26+
}
27+
28+
.hljs-number,
29+
.hljs-literal,
30+
.hljs-variable,
31+
.hljs-template-variable,
32+
.hljs-tag .hljs-attr {
33+
color: #008080;
34+
}
35+
36+
.hljs-string,
37+
.hljs-doctag {
38+
color: #d14;
39+
}
40+
41+
.hljs-title,
42+
.hljs-section,
43+
.hljs-selector-id {
44+
color: #900;
45+
font-weight: bold;
46+
}
47+
48+
.hljs-subst {
49+
font-weight: normal;
50+
}
51+
52+
.hljs-type,
53+
.hljs-class .hljs-title {
54+
color: #458;
55+
font-weight: bold;
56+
}
57+
58+
.hljs-tag,
59+
.hljs-name,
60+
.hljs-attribute {
61+
color: #000080;
62+
font-weight: normal;
63+
}
64+
65+
.hljs-regexp,
66+
.hljs-link {
67+
color: #009926;
68+
}
69+
70+
.hljs-symbol,
71+
.hljs-bullet {
72+
color: #990073;
73+
}
74+
75+
.hljs-built_in,
76+
.hljs-builtin-name {
77+
color: #0086b3;
78+
}
79+
80+
.hljs-meta {
81+
color: #999;
82+
font-weight: bold;
83+
}
84+
85+
.hljs-deletion {
86+
background: #fdd;
87+
}
88+
89+
.hljs-addition {
90+
background: #dfd;
91+
}
92+
93+
.hljs-emphasis {
94+
font-style: italic;
95+
}
96+
97+
.hljs-strong {
98+
font-weight: bold;
99+
}

0 commit comments

Comments
 (0)