From 669e0ef96c00c827a0fe5f5f4d7c6d25238079c9 Mon Sep 17 00:00:00 2001 From: saji Date: Sat, 3 May 2025 22:43:41 -0500 Subject: [PATCH] formatting --- .prettierignore | 1 + _includes/base16-prism.css | 113 ++++++++++---------- content/blog/wy-60-repairs/wy-60-repairs.md | 4 - eleventy.config.js | 8 +- 4 files changed, 63 insertions(+), 63 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..f15ca4d --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +_includes/ diff --git a/_includes/base16-prism.css b/_includes/base16-prism.css index 19f7c9e..3bac9b5 100644 --- a/_includes/base16-prism.css +++ b/_includes/base16-prism.css @@ -8,89 +8,93 @@ code[class*="language-"], pre[class*="language-"] { - color: var(--color-fg); /* base05 */ - background: var(--color-black); - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; - font-size: 1em; - text-align: left; - white-space: pre; - word-spacing: normal; - word-break: normal; - word-wrap: normal; - line-height: 1.5; + color: var(--color-fg); /* base05 */ + background: var(--color-black); + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; } -pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, -code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { - color: inherit; - text-shadow: none; - background: var(--color-black-bright); /* base02 */ +pre[class*="language-"]::-moz-selection, +pre[class*="language-"] ::-moz-selection, +code[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection { + color: inherit; + text-shadow: none; + background: var(--color-black-bright); /* base02 */ } -pre[class*="language-"]::selection, pre[class*="language-"] ::selection, -code[class*="language-"]::selection, code[class*="language-"] ::selection { - color: inherit; - text-shadow: none; - background: var(--color-black-bright); /* base02 */ +pre[class*="language-"]::selection, +pre[class*="language-"] ::selection, +code[class*="language-"]::selection, +code[class*="language-"] ::selection { + color: inherit; + text-shadow: none; + background: var(--color-black-bright); /* base02 */ } @media print { - code[class*="language-"], - pre[class*="language-"] { - text-shadow: none; - } + code[class*="language-"], + pre[class*="language-"] { + text-shadow: none; + } } /* Code blocks */ pre[class*="language-"] { - padding: 1em; - margin: .5em 0; - overflow: auto; + padding: 1em; + margin: 0.5em 0; + overflow: auto; } :not(pre) > code[class*="language-"], pre[class*="language-"] { - background: #{{base00-hex}}; /* base00 */ + background: var(--color-bg); /* base00 */ } /* Inline code */ :not(pre) > code[class*="language-"] { - padding: .1em; - border-radius: .3em; - white-space: normal; + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; } .token.comment, .token.prolog, .token.cdata { - color: #{{base03-hex}}; /* base03 */ + color: var(--color-white); /* base03 */ } .token.entity, .language-css .token.string, .style .token.string { - color: #{{base04-hex}}; /* base04 */ - background: #{{base01-hex}}; /* base01 */ + color: var(--color-white-bright); /* base04 */ + background: var(--color-black); /* base01 */ } .token.punctuation { - color: #{{base05-hex}}; /* base05 */ + color: var(--color-fg); /* base05 */ } .token.variable, .token.tag, .token.operator, .token.deleted { - color: var(--color-blue); /* base08 */ + color: var(--color-blue-bright); /* base08 */ } .token.property, @@ -98,12 +102,12 @@ pre[class*="language-"] { .token.boolean, .token.constant, .token.url { - color: var(--color-red); /* base09 */ + color: var(--color-red); /* base09 */ } .token.class-name, .token.bold { - color: var(--color-yellow); /* base0A */ + color: var(--color-yellow); /* base0A */ } .token.string, @@ -111,17 +115,17 @@ pre[class*="language-"] { .token.attr-value, .token.inserted, .token.atrule { - color: var(--color-cyan); /* base0B */ + color: var(--color-cyan); /* base0B */ } .token.regex, .token.important { - color: var(--color-cyan-bright); /* base0C */ + color: var(--color-cyan-bright); /* base0C */ } .token.function, .token.attr-name { - color: var(--color-magenta); /* base0D */ + color: var(--color-magenta); /* base0D */ } .token.keyword, @@ -129,26 +133,25 @@ pre[class*="language-"] { .token.italic, .token.char, .token.builtin { - color: var(--color-green); /* base0E */ + color: var(--color-green); /* base0E */ } .token.doctype { - color: var(--color-magenta-bright); /* base0F */ + color: var(--color-magenta-bright); /* base0F */ } .token.important, .token.bold { - font-weight: bold; + font-weight: bold; } .token.italic { - font-style: italic; + font-style: italic; } .token.entity { - cursor: help; + cursor: help; } .namespace { - opacity: .7; + opacity: 0.7; } - diff --git a/content/blog/wy-60-repairs/wy-60-repairs.md b/content/blog/wy-60-repairs/wy-60-repairs.md index 516c4ab..d5e278f 100644 --- a/content/blog/wy-60-repairs/wy-60-repairs.md +++ b/content/blog/wy-60-repairs/wy-60-repairs.md @@ -42,7 +42,6 @@ At this point we needed to test them out. And this is where I realized that, despite picking the unit with the least yellowing, mine didn't work. I saw the cursor, and a line for the status bar, but no characters in sight: - Thankfully, the scuffed one worked, so I was able to confirm that I could interact with it. However, the geometry was bad and there seemed to be some shaking in the text, meaning a power supply wasn't being stable @@ -81,7 +80,6 @@ alongside the character itself, or in a separate "Attribute RAM", which is read ![Functional block diagram, showing the attribute and character data pipelines](bus_architecture.png) - With my new test setup, I was able to find and probe pins from the underside of the board. One of the challenges here is that there are multiple busses, each with potentially multiple masters. Not only do you need to probe a data line, you also need to have a probe for whatever makes the chip @@ -98,13 +96,11 @@ Uh, guys? ![Image of more cold joints on a different chip](cold_joints_2.jpg) - It can't possibly be this, right? U17 and U15 are part of character storage, and I did see the font RAM output non-zero, meaning it had to have rendered something! I quickly cleaned up the joints and powered it on. I couldn't see it at first, but it worked. Thankfully I found this before starting to replace other chips. - # Takeaway This highlights the two styles of troubleshooting: diff --git a/eleventy.config.js b/eleventy.config.js index 5cd6b4d..226433b8 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -27,10 +27,10 @@ export default async function (eleventyConfig) { // App plugins eleventyConfig.addPreprocessor("drafts", "*", (data, _content) => { - if(data.draft && process.env.ELEVENTY_RUN_MODE === "build") { - return false; - } - }); + if (data.draft && process.env.ELEVENTY_RUN_MODE === "build") { + return false; + } + }); // eleventyConfig.addPlugin(pluginFonts); // Official plugins let mkFeed = function (type, path) {