diff --git a/documentation/.eleventy.js b/documentation/.eleventy.js index 0a01c74..c0da709 100644 --- a/documentation/.eleventy.js +++ b/documentation/.eleventy.js @@ -23,9 +23,6 @@ export default function (eleventyConfig) { eleventyConfig.addPlugin(embedEverything); eleventyConfig.addPlugin(EleventyHtmlBasePlugin); eleventyConfig.addPlugin(syntaxHighlight); - eleventyConfig.addShortcode("version", function () { - return String(Date.now()); - }); // Responsive image shortcode eleventyConfig.addLiquidShortcode("image", async function (src, alt, sizes = "100vw") { @@ -73,8 +70,8 @@ export default function (eleventyConfig) { // tokens pass through eleventyConfig.addPassthroughCopy({ - "./../dist/variables.light.css": "./variables.light.css", - "./../dist/variables.dark.css": "./variables.dark.css", + "../dist/variables.light.css": "./variables.light.css", + "../dist/variables.dark.css": "./variables.dark.css", }); // Eleventy Navigation https://www.11ty.dev/docs/plugins/navigation/ @@ -95,15 +92,6 @@ export default function (eleventyConfig) { return collection.getFilteredByGlob("pages/*.md"); }); - // Creates custom collection "menuItems" - eleventyConfig.addCollection("menuItems", collection => - collection - .getFilteredByTag("pg") - .sort((a, b) => { - return (a.data.pg_order || 0) - (b.data.pg_order || 0); - }) - ); - function readableDate(dateObj) { return DateTime.fromJSDate(dateObj).toFormat("LLL dd, yyyy"); } diff --git a/documentation/loader.js b/documentation/loader.js deleted file mode 100644 index 2279fa1..0000000 --- a/documentation/loader.js +++ /dev/null @@ -1,8 +0,0 @@ -if (localStorage.getItem('password')) { - insertPlainHTML(atob(localStorage.getItem('password'))) -} else { - document.getElementById('staticrypt-form').addEventListener('submit', function(e) { - e.preventDefault(); - insertPlainHTML(document.getElementById('staticrypt-password').value); - }); -} \ No newline at end of file diff --git a/documentation/netlify.toml b/documentation/netlify.toml deleted file mode 100644 index ab0196e..0000000 --- a/documentation/netlify.toml +++ /dev/null @@ -1,34 +0,0 @@ -[build] - publish = "_site" - command = "npm run build" - #command = "npm run build && set -e && find ./_site -type f -name '*.html' -exec staticrypt -f password_template.html {} $PASSWORD -o {} \\;" - functions = "functions" - -# REDIRECT and HEADERS examples - -# Redirect rule example -# For more information see:- https://www.netlify.com/docs/netlify-toml-reference/ - -#[[redirects]] -# from = "/*" -# to = "/blog/:splat" - -# The default HTTP status code is 301, but you can define a different one e.g. -# status = 302 - -# Headers rule example -# For more information see:- https://www.netlify.com/docs/netlify-toml-reference/ - -#[[headers]] -# Define which paths this specific [[headers]] block will cover. -# for = "/*" - -#[headers.values] -# X-Frame-Options = "DENY" -# X-XSS-Protection = "1; mode=block" -# Content-Security-Policy = "frame-ancestors https://www.facebook.com" - -# Redirects and headers are GLOBAL for all builds – they do not get scoped to -# contexts no matter where you define them in the file. -# For context-specific rules, use _headers or _redirects files, which are -# applied on a PER-DEPLOY basis. diff --git a/documentation/styles/tailwind.config.js b/documentation/styles/tailwind.config.js index bfcfc49..7756870 100644 --- a/documentation/styles/tailwind.config.js +++ b/documentation/styles/tailwind.config.js @@ -3,7 +3,7 @@ const tailwindConfig = require("../../dist/tailwind.config.cjs"); module.exports = { content: [ - "_site/**/*.html" + "_includes/**/*.njk" ], darkMode: 'media', variants: {}, diff --git a/documentation/uploads/uws2.png b/documentation/uploads/uws2.png deleted file mode 100644 index 4e54c5f..0000000 Binary files a/documentation/uploads/uws2.png and /dev/null differ