forked from googleforgames/agones
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the doscy theme (googleforgames#2123)
* Update docsy to f82dd5efa0eb5a03086498686f9e60f7bd2bb5f3. * Update docsy dependency bootstrap to https://github.com/twbs/bootstrap/tree/6ffb0b48e455430f8a5359ed689ad64c1143fac2 * Update docsy vendor dependency Font-Awesome to https://github.com/FortAwesome/Font-Awesome/tree/fcec2d1b01ff069ac10500ac42e4478d20d21f4c * Rename master -> main for our default github branch. * Re-enable rounded buttons and search boxes. * Fix the color for the left tree nav header so that it isn't the same as the background color.
- Loading branch information
1 parent
addfaf4
commit 16196ec
Showing
4,230 changed files
with
89,828 additions
and
40,513 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ resources/ | |
node_modules/ | ||
tech-doc-hugo | ||
|
||
# vim temporary files | ||
*~ | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{ with .Site.Params.mermaid }} | ||
{{ if .enable }} | ||
(function($) { | ||
var needMermaid = false; | ||
$('.language-mermaid').parent().replaceWith(function() { | ||
needMermaid = true; | ||
return $('<pre class="mermaid">').text($(this).text()); | ||
}); | ||
|
||
if (!needMermaid) { | ||
mermaid.initialize({startOnLoad: false}); | ||
return; | ||
} | ||
|
||
var params = {{ . | jsonify | safeJS }}; | ||
|
||
// site params are stored with lowercase keys; lookup correct casing | ||
// from Mermaid default config. | ||
var norm = function(defaultConfig, params) { | ||
var result = {}; | ||
for (const key in defaultConfig) { | ||
const keyLower = key.toLowerCase(); | ||
if (defaultConfig.hasOwnProperty(key) && params.hasOwnProperty(keyLower)) { | ||
if (typeof defaultConfig[key] === "object") { | ||
result[key] = norm(defaultConfig[key], params[keyLower]); | ||
} else { | ||
result[key] = params[keyLower]; | ||
} | ||
} | ||
} | ||
return result; | ||
}; | ||
var settings = norm(mermaid.mermaidAPI.defaultConfig, params); | ||
settings.startOnLoad = true; | ||
mermaid.initialize(settings); | ||
})(jQuery); | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{{ with .Site.Params.plantuml }} | ||
{{ if .enable }} | ||
(function($) { | ||
|
||
function encode64(data) { | ||
r = ""; | ||
for (i = 0; i < data.length; i += 3) { | ||
if (i + 2 == data.length) { | ||
r += append3bytes(data.charCodeAt(i), data.charCodeAt(i + 1), 0); | ||
} else if (i + 1 == data.length) { | ||
r += append3bytes(data.charCodeAt(i), 0, 0); | ||
} else { | ||
r += append3bytes(data.charCodeAt(i), data.charCodeAt(i + 1), | ||
data.charCodeAt(i + 2)); | ||
} | ||
} | ||
return r; | ||
} | ||
|
||
function append3bytes(b1, b2, b3) { | ||
c1 = b1 >> 2; | ||
c2 = ((b1 & 0x3) << 4) | (b2 >> 4); | ||
c3 = ((b2 & 0xF) << 2) | (b3 >> 6); | ||
c4 = b3 & 0x3F; | ||
r = ""; | ||
r += encode6bit(c1 & 0x3F); | ||
r += encode6bit(c2 & 0x3F); | ||
r += encode6bit(c3 & 0x3F); | ||
r += encode6bit(c4 & 0x3F); | ||
return r; | ||
} | ||
|
||
function encode6bit(b) { | ||
if (b < 10) { | ||
return String.fromCharCode(48 + b); | ||
} | ||
b -= 10; | ||
if (b < 26) { | ||
return String.fromCharCode(65 + b); | ||
} | ||
b -= 26; | ||
if (b < 26) { | ||
return String.fromCharCode(97 + b); | ||
} | ||
b -= 26; | ||
if (b == 0) { | ||
return '-'; | ||
} | ||
if (b == 1) { | ||
return '_'; | ||
} | ||
return '?'; | ||
} | ||
|
||
var needPlantuml = false; | ||
$('.language-plantuml').parent().replaceWith(function() { | ||
let s = unescape(encodeURIComponent($(this).text())); | ||
return $('<img src="{{.svg_image_url | default "http://www.plantuml.com/plantuml/svg/"}}' + encode64(deflate(s, 9)) + '">') | ||
}); | ||
})(jQuery); | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.