refactor for common usage
This commit is contained in:
1 parent
d4dbc07c20
commit
49c891377b
36 files changed
+163
-40
No files matched your search
+160
@@ -0,0 +1,160 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Document</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="description" content="Yggdrasil is a collections of notes around IT, OT and other geeks stuff">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||
<link rel="icon" href="style/yggdrasil.ico">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css"
|
||||
title="docsify-darklight-theme"
|
||||
type="text/css"
|
||||
/>
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
||||
rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">Yggdrasil</div>
|
||||
<script>
|
||||
window.$docsify = {
|
||||
name: 'Yggdrasil',
|
||||
repo: 'https://github.com/Klagarge/Yggdrasil.git',
|
||||
maxLevel: 3,
|
||||
coverpage: 'style/_coverpage.md',
|
||||
loadNavbar: true, // Nav bar on top
|
||||
subMaxLevel: 3, // Add table of contents (TOC) in custom sidebar.
|
||||
auto2top: true, // Scrolls to the top of the screen when the route is changed.
|
||||
mergeNavbar: true, // Navbar will be merged with the sidebar on smaller screens.
|
||||
pagination: {
|
||||
previousText: {
|
||||
'/en/': 'PREV',
|
||||
'/' : 'PREC'
|
||||
},
|
||||
nextText: {
|
||||
'/en/': 'NEXT',
|
||||
'/': 'SUIV'
|
||||
},
|
||||
crossChapter: true,
|
||||
crossChapterText: true,
|
||||
},
|
||||
latex: {
|
||||
inlineMath : [['$', '$'], ['\\(', '\\)']], // default
|
||||
displayMath : [['$$', '$$']], // default
|
||||
customOptions: {} // default
|
||||
},
|
||||
select: {
|
||||
detectOperatingSystem: {
|
||||
enabled: false,
|
||||
menuId: "operating-system"
|
||||
}
|
||||
},
|
||||
flexibleAlerts: {
|
||||
style: 'callout'
|
||||
},
|
||||
markdown: {
|
||||
renderer: {
|
||||
|
||||
code: function (code, lang) {
|
||||
if (lang === 'drawio') {
|
||||
if (window.drawioConverter) {
|
||||
console.log('drawio')
|
||||
return window.drawioConverter(code)
|
||||
} else {
|
||||
return `<div class='drawio-code'>${code}</div>`
|
||||
}
|
||||
} else {
|
||||
return this.origin.code.apply(this, arguments);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
darklightTheme: {
|
||||
siteFont : "Ubuntu",
|
||||
defaultTheme : 'light',
|
||||
codeFontFamily : 'Roboto Mono, Monaco, courier, monospace',
|
||||
bodyFontSize : '17px',
|
||||
dark: {
|
||||
coverBackground : 'linear-gradient(to left bottom, hsl(118, 18%, 34%) 0%,hsl(207, 63%, 10%) 100%)',
|
||||
},
|
||||
light: {
|
||||
coverBackground : 'linear-gradient(to left bottom, hsl(118, 100%, 85%) 0%,hsl(181, 100%, 100%) 100%)',
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<!-- PWA -->
|
||||
<script>
|
||||
if (typeof navigator.serviceWorker !== 'undefined') {
|
||||
navigator.serviceWorker.register('scripts/sw.js')
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Docsify v4 -->
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
||||
|
||||
<!-- Render graph (UML/Mermaid/... -->
|
||||
<script src="//unpkg.com/docsify-kroki">
|
||||
kroki: {
|
||||
langs: [
|
||||
"actdiag",
|
||||
"blockdiag",
|
||||
"bpmn",
|
||||
"bytefield",
|
||||
"c4plantuml",
|
||||
"d2",
|
||||
"dbml",
|
||||
"ditaa",
|
||||
"erd",
|
||||
"excalidraw",
|
||||
"graphviz",
|
||||
"mermaid",
|
||||
"nomnoml",
|
||||
"nwdiag",
|
||||
"packetdiag",
|
||||
"pikchr",
|
||||
"plantuml",
|
||||
"rackdiag",
|
||||
"seqdiag",
|
||||
"structurizr",
|
||||
"svgbob",
|
||||
"symbolator",
|
||||
"tikz",
|
||||
"vega",
|
||||
"vegalite",
|
||||
"wavedrom",
|
||||
"wireviz",
|
||||
]
|
||||
</script>
|
||||
|
||||
<!-- Copy code button -->
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
|
||||
|
||||
<!-- Pagination -->
|
||||
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
|
||||
|
||||
<!-- LateX -->
|
||||
<script src="//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify-latex@0"></script>
|
||||
|
||||
<!-- Flexible alert -->
|
||||
<script src="https://unpkg.com/docsify-plugin-flexible-alerts"></script>
|
||||
|
||||
<!-- Code highlights -->
|
||||
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-armasm.js"></script>
|
||||
|
||||
<!-- Dark Theme -->
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js"> </script>
|
||||
|
||||
<!-- docsify-select (latest v1.x.x) -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsify-select@1"></script>
|
||||
|
||||
<!-- Draw.io -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsify-drawio/viewer.min.js"></script>
|
||||
<script src='https://cdn.jsdelivr.net/npm/docsify-drawio/drawio.js'></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user