diff --git a/docs/.nojekyll b/.nojekyll similarity index 100% rename from docs/.nojekyll rename to .nojekyll diff --git a/docs/CNAME b/CNAME similarity index 100% rename from docs/CNAME rename to CNAME diff --git a/docs/README.md b/README.md similarity index 100% rename from docs/README.md rename to README.md diff --git a/docs/STM32/README.md b/STM32/README.md similarity index 100% rename from docs/STM32/README.md rename to STM32/README.md diff --git a/docs/_navbar.md b/_navbar.md similarity index 100% rename from docs/_navbar.md rename to _navbar.md diff --git a/docs/divers/README.md b/divers/README.md similarity index 99% rename from docs/divers/README.md rename to divers/README.md index 23899a7..9e61e2a 100644 --- a/docs/divers/README.md +++ b/divers/README.md @@ -3,6 +3,8 @@ $$ E=mc^2 $$ +![example4_v3.png](example4_v3.png) + [transmission_process.md](../infotro/SDi/transmission_process.md) ## embedding it directly diff --git a/divers/example4_v3.png b/divers/example4_v3.png new file mode 100644 index 0000000..ecf3e39 Binary files /dev/null and b/divers/example4_v3.png differ diff --git a/docs/divers/excalidraw.json b/divers/excalidraw.json similarity index 100% rename from docs/divers/excalidraw.json rename to divers/excalidraw.json diff --git a/docs/index.html b/index.html similarity index 70% rename from docs/index.html rename to index.html index 301c102..f31414e 100644 --- a/docs/index.html +++ b/index.html @@ -4,29 +4,31 @@ Document - + + + -
+
Yggdrasil
+ + + + - - - diff --git a/docs/infotro/Eln/ADDA.md b/infotro/Eln/ADDA.md similarity index 100% rename from docs/infotro/Eln/ADDA.md rename to infotro/Eln/ADDA.md diff --git a/docs/infotro/Eln/README.md b/infotro/Eln/README.md similarity index 100% rename from docs/infotro/Eln/README.md rename to infotro/Eln/README.md diff --git a/docs/infotro/Eln/Sigma-Delta.md b/infotro/Eln/Sigma-Delta.md similarity index 100% rename from docs/infotro/Eln/Sigma-Delta.md rename to infotro/Eln/Sigma-Delta.md diff --git a/docs/infotro/Eln/comptage-graph.png b/infotro/Eln/comptage-graph.png similarity index 100% rename from docs/infotro/Eln/comptage-graph.png rename to infotro/Eln/comptage-graph.png diff --git a/docs/infotro/Eln/comptage.png b/infotro/Eln/comptage.png similarity index 100% rename from docs/infotro/Eln/comptage.png rename to infotro/Eln/comptage.png diff --git a/docs/infotro/Eln/parallele.png b/infotro/Eln/parallele.png similarity index 100% rename from docs/infotro/Eln/parallele.png rename to infotro/Eln/parallele.png diff --git a/docs/infotro/Eln/pesee.png b/infotro/Eln/pesee.png similarity index 100% rename from docs/infotro/Eln/pesee.png rename to infotro/Eln/pesee.png diff --git a/docs/infotro/Eln/sigma-delta.drawio b/infotro/Eln/sigma-delta.drawio similarity index 100% rename from docs/infotro/Eln/sigma-delta.drawio rename to infotro/Eln/sigma-delta.drawio diff --git a/docs/infotro/Eln/snr_by_osr.png b/infotro/Eln/snr_by_osr.png similarity index 100% rename from docs/infotro/Eln/snr_by_osr.png rename to infotro/Eln/snr_by_osr.png diff --git a/docs/infotro/PTR/XF.md b/infotro/PTR/XF.md similarity index 100% rename from docs/infotro/PTR/XF.md rename to infotro/PTR/XF.md diff --git a/docs/infotro/README.md b/infotro/README.md similarity index 100% rename from docs/infotro/README.md rename to infotro/README.md diff --git a/docs/infotro/SDi/img.png b/infotro/SDi/img.png similarity index 100% rename from docs/infotro/SDi/img.png rename to infotro/SDi/img.png diff --git a/docs/infotro/SDi/img_1.png b/infotro/SDi/img_1.png similarity index 100% rename from docs/infotro/SDi/img_1.png rename to infotro/SDi/img_1.png diff --git a/docs/infotro/SDi/paper_exercise.md b/infotro/SDi/paper_exercise.md similarity index 100% rename from docs/infotro/SDi/paper_exercise.md rename to infotro/SDi/paper_exercise.md diff --git a/docs/infotro/SDi/transmission_process.md b/infotro/SDi/transmission_process.md similarity index 100% rename from docs/infotro/SDi/transmission_process.md rename to infotro/SDi/transmission_process.md diff --git a/docs/infotro/SEm/ASM.md b/infotro/SEm/ASM.md similarity index 100% rename from docs/infotro/SEm/ASM.md rename to infotro/SEm/ASM.md diff --git a/docs/infotro/SEm/PLA.md b/infotro/SEm/PLA.md similarity index 100% rename from docs/infotro/SEm/PLA.md rename to infotro/SEm/PLA.md diff --git a/docs/infotro/SEm/README.md b/infotro/SEm/README.md similarity index 100% rename from docs/infotro/SEm/README.md rename to infotro/SEm/README.md diff --git a/docs/infotro/SEm/img/Pasted image 20231116153738.png b/infotro/SEm/img/Pasted image 20231116153738.png similarity index 100% rename from docs/infotro/SEm/img/Pasted image 20231116153738.png rename to infotro/SEm/img/Pasted image 20231116153738.png diff --git a/docs/infotro/SEm/img/Pasted image 20231116154303.png b/infotro/SEm/img/Pasted image 20231116154303.png similarity index 100% rename from docs/infotro/SEm/img/Pasted image 20231116154303.png rename to infotro/SEm/img/Pasted image 20231116154303.png diff --git a/docs/infotro/SEm/img/Pasted image 20231116154853.png b/infotro/SEm/img/Pasted image 20231116154853.png similarity index 100% rename from docs/infotro/SEm/img/Pasted image 20231116154853.png rename to infotro/SEm/img/Pasted image 20231116154853.png diff --git a/docs/infotro/SEm/img/Pasted image 20231116155200.png b/infotro/SEm/img/Pasted image 20231116155200.png similarity index 100% rename from docs/infotro/SEm/img/Pasted image 20231116155200.png rename to infotro/SEm/img/Pasted image 20231116155200.png diff --git a/docs/infotro/_navbar.md b/infotro/_navbar.md similarity index 100% rename from docs/infotro/_navbar.md rename to infotro/_navbar.md diff --git a/scripts/sw.js b/scripts/sw.js new file mode 100644 index 0000000..4a94652 --- /dev/null +++ b/scripts/sw.js @@ -0,0 +1,83 @@ +/* =========================================================== + * docsify sw.js + * =========================================================== + * Copyright 2016 @huxpro + * Licensed under Apache 2.0 + * Register service worker. + * ========================================================== */ + +const RUNTIME = 'docsify' +const HOSTNAME_WHITELIST = [ + self.location.hostname, + 'fonts.gstatic.com', + 'fonts.googleapis.com', + 'cdn.jsdelivr.net' +] + +// The Util Function to hack URLs of intercepted requests +const getFixedUrl = (req) => { + var now = Date.now() + var url = new URL(req.url) + + // 1. fixed http URL + // Just keep syncing with location.protocol + // fetch(httpURL) belongs to active mixed content. + // And fetch(httpRequest) is not supported yet. + url.protocol = self.location.protocol + + // 2. add query for caching-busting. + // Github Pages served with Cache-Control: max-age=600 + // max-age on mutable content is error-prone, with SW life of bugs can even extend. + // Until cache mode of Fetch API landed, we have to workaround cache-busting with query string. + // Cache-Control-Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=453190 + if (url.hostname === self.location.hostname) { + url.search += (url.search ? '&' : '?') + 'cache-bust=' + now + } + return url.href +} + +/** + * @Lifecycle Activate + * New one activated when old isnt being used. + * + * waitUntil(): activating ====> activated + */ +self.addEventListener('activate', event => { + event.waitUntil(self.clients.claim()) +}) + +/** + * @Functional Fetch + * All network requests are being intercepted here. + * + * void respondWith(Promise r) + */ +self.addEventListener('fetch', event => { + // Skip some of cross-origin requests, like those for Google Analytics. + if (HOSTNAME_WHITELIST.indexOf(new URL(event.request.url).hostname) > -1) { + // Stale-while-revalidate + // similar to HTTP's stale-while-revalidate: https://www.mnot.net/blog/2007/12/12/stale + // Upgrade from Jake's to Surma's: https://gist.github.com/surma/eb441223daaedf880801ad80006389f1 + const cached = caches.match(event.request) + const fixedUrl = getFixedUrl(event.request) + const fetched = fetch(fixedUrl, { cache: 'no-store' }) + const fetchedCopy = fetched.then(resp => resp.clone()) + + // Call respondWith() with whatever we get first. + // If the fetch fails (e.g disconnected), wait for the cache. + // If there’s nothing in cache, wait for the fetch. + // If neither yields a response, return offline pages. + event.respondWith( + Promise.race([fetched.catch(_ => cached), cached]) + .then(resp => resp || fetched) + .catch(_ => { /* eat any errors */ }) + ) + + // Update the cache with the version we fetched (only for ok status) + event.waitUntil( + Promise.all([fetchedCopy, caches.open(RUNTIME)]) + .then(([response, cache]) => response.ok && cache.put(event.request, response)) + .catch(_ => { /* eat any errors */ }) + ) + } +}) \ No newline at end of file diff --git a/style/_coverpage.md b/style/_coverpage.md new file mode 100644 index 0000000..576ac9e --- /dev/null +++ b/style/_coverpage.md @@ -0,0 +1,10 @@ + + +# Yggdrasil +## Collections of notes around IT, OT and other geeks stuff +
+
+
+
+
+Made by @Klagarge \ No newline at end of file diff --git a/style/yggdrasil.ico b/style/yggdrasil.ico new file mode 100644 index 0000000..6c33aea Binary files /dev/null and b/style/yggdrasil.ico differ diff --git a/style/yggdrasil.svg b/style/yggdrasil.svg new file mode 100644 index 0000000..e94266f --- /dev/null +++ b/style/yggdrasil.svg @@ -0,0 +1,43 @@ + + + +