mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-12 17:26:19 +00:00
Experiment with PDF generation
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
9
docs/extras/css/icons.css
Normal file
9
docs/extras/css/icons.css
Normal file
@@ -0,0 +1,9 @@
|
||||
.kubernetes {
|
||||
color: #3970e4;
|
||||
}
|
||||
.docker {
|
||||
color: #0db7ed;
|
||||
}
|
||||
.discord {
|
||||
color: #7289da;
|
||||
}
|
||||
11
docs/extras/javascript/feedback.js
Normal file
11
docs/extras/javascript/feedback.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var feedback = document.forms.feedback
|
||||
feedback.addEventListener("submit", function(ev) {
|
||||
ev.preventDefault()
|
||||
|
||||
/* Retrieve page and feedback value */
|
||||
var page = document.location.pathname
|
||||
var data = ev.submitter.getAttribute("data-md-value")
|
||||
|
||||
/* Send feedback value */
|
||||
console.log(page, data)
|
||||
})
|
||||
1
docs/extras/javascript/plausible.js
Normal file
1
docs/extras/javascript/plausible.js
Normal file
@@ -0,0 +1 @@
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
10
docs/extras/javascript/rightmessage.js
Normal file
10
docs/extras/javascript/rightmessage.js
Normal file
@@ -0,0 +1,10 @@
|
||||
<!-- RightMessage -->
|
||||
<script type="text/javascript">
|
||||
(function(p, a, n, d, o, b, c) {
|
||||
o = n.createElement('script'); o.type = 'text/javascript'; o.async = true; o.src = 'https://tb.rightmessage.com/'+p+'.js';
|
||||
b = n.getElementsByTagName('script')[0]; d = function(h, u, i) { var c = n.createElement('style'); c.id = 'rmcloak'+i;
|
||||
c.type = 'text/css'; c.appendChild(n.createTextNode('.rmcloak'+h+'{visibility:hidden}.rmcloak'+u+'{display:none}'));
|
||||
b.parentNode.insertBefore(c, b); return c; }; c = d('', '-hidden', ''); d('-stay-invisible', '-stay-hidden', '-stay');
|
||||
setTimeout(o.onerror = function() { c.parentNode && c.parentNode.removeChild(c); }, a); b.parentNode.insertBefore(o, b);
|
||||
})('1802694484', 20000, document);
|
||||
</script>
|
||||
6
docs/extras/javascript/tablesort.js
Normal file
6
docs/extras/javascript/tablesort.js
Normal file
@@ -0,0 +1,6 @@
|
||||
document$.subscribe(function() {
|
||||
var tables = document.querySelectorAll("article table:not([class])")
|
||||
tables.forEach(function(table) {
|
||||
new Tablesort(table)
|
||||
})
|
||||
})
|
||||
27
docs/extras/javascript/widgetbot.js
Normal file
27
docs/extras/javascript/widgetbot.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// Display for 10 seconds + custom avatar
|
||||
// crate.notify({
|
||||
// content: 'Need a 🤚? Hot, sweaty geeks are waiting to chat to you! Click 👇',
|
||||
// timeout: 5000,
|
||||
// avatar: 'https://avatars2.githubusercontent.com/u/1524686?s=400&v=4'
|
||||
// })
|
||||
|
||||
|
||||
// This file should _not_ be routinely included, it's here to make tweaking of the widgetbot settings
|
||||
// faster, since making changes doesn't require restarting mkdocs serve
|
||||
<script src="https://cdn.jsdelivr.net/npm/@widgetbot/crate@3"></script>
|
||||
|
||||
<script>
|
||||
const devbutton = new Crate({
|
||||
server: '396055506072109067',
|
||||
channel: '456689991326760973' // Cookbook channel
|
||||
color: '#000',
|
||||
indicator: false,
|
||||
notifications: true,
|
||||
indicator: true,
|
||||
timeout: 5000,
|
||||
glyph: 'https://avatars2.githubusercontent.com/u/1524686?s=400&v=4'
|
||||
})
|
||||
|
||||
devbutton.notify('Hello __world__\n```js\n// This is Sync!\n```')
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user