deploy: fido-node/org@7d6ccd9389
This commit is contained in:
parent
2ccb411702
commit
b72a094d31
24
index.html
24
index.html
@ -3,9 +3,9 @@
|
||||
<p><img src="./resources/images/index/avatar.jpg" alt="avatar.jpg" />
|
||||
</p>
|
||||
</div>
|
||||
<div id="outline-container-orgf286f24" class="outline-2">
|
||||
<h2 id="orgf286f24"> </h2>
|
||||
<div class="outline-text-2" id="text-orgf286f24">
|
||||
<div id="outline-container-org8d3b630" class="outline-2">
|
||||
<h2 id="org8d3b630"> </h2>
|
||||
<div class="outline-text-2" id="text-org8d3b630">
|
||||
<p>
|
||||
Full stack engineer
|
||||
FP-curious | λ-affected
|
||||
@ -13,9 +13,9 @@ Wanna be rustacean 🦀 and/or secops guy 🔒
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgecca66c" class="outline-2">
|
||||
<h2 id="orgecca66c">Experience</h2>
|
||||
<div class="outline-text-2" id="text-orgecca66c">
|
||||
<div id="outline-container-orga10a7c0" class="outline-2">
|
||||
<h2 id="orga10a7c0">Experience</h2>
|
||||
<div class="outline-text-2" id="text-orga10a7c0">
|
||||
<ul class="org-ul">
|
||||
<li>Current position <a href="https://www.samsungfood.com/">@SamsungFood</a>.
|
||||
Internal tools engineer for data platform ➡ Internal tools engineer for developers.</li>
|
||||
@ -24,9 +24,9 @@ Fullstack engineer.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org87aa0da" class="outline-2">
|
||||
<h2 id="org87aa0da">Technologies</h2>
|
||||
<div class="outline-text-2" id="text-org87aa0da">
|
||||
<div id="outline-container-org86a2f81" class="outline-2">
|
||||
<h2 id="org86a2f81">Technologies</h2>
|
||||
<div class="outline-text-2" id="text-org86a2f81">
|
||||
<p>
|
||||
Work with:
|
||||
</p>
|
||||
@ -43,9 +43,9 @@ Work with:
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org3bb9bea" class="outline-2">
|
||||
<h2 id="org3bb9bea">Contacts</h2>
|
||||
<div class="outline-text-2" id="text-org3bb9bea">
|
||||
<div id="outline-container-orgc8943a2" class="outline-2">
|
||||
<h2 id="orgc8943a2">Contacts</h2>
|
||||
<div class="outline-text-2" id="text-orgc8943a2">
|
||||
<p>
|
||||
Contact me via:
|
||||
</p>
|
||||
|
@ -1,11 +1,12 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta author="Alex Mikhailov"/><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/><meta name="color-scheme" content="light dark"/><meta http-equiv="content-language" content="en-us"/><meta name="description" content="Index page for my blog"/><meta name="og:description" content="Index page for my blog"/><meta name="twitter:description" content="Index page for my blog"/><meta name="og:image" content="https://fidonode.me/resources/images/posts.org.png"/><meta name="twitter:image" content="https://fidonode.me/resources/images/posts.org.png"/><meta name="og:title" content="Alex Mikhailov - Blog"/><meta name="twitter:title" content="Alex Mikhailov - Blog"/><meta name="twitter:card" content="summary_large_image"/><link rel="icon" type="image/x-icon" href="/resources/favicon.ico"/><link rel="stylesheet" type="text/css" href="/resources/css/pico.sand.min.css"/><script defer="true" src="https://umami.dokutsu.xyz/script.js" data-website-id="d52d9af1-0c7d-4531-84c6-0b9c2850011f"></script><title>Alex Mikhailov - Blog</title></head><body><main class="container"><header class="header"><nav><ul><li><strong>Alex Mikhailov - Blog</strong></li></ul><ul><li><a href="/index.html">About</a></li><li><a href="/posts.html">Blog</a></li><li><a href="/rss.xml">RSS</a></li></ul></nav></header>
|
||||
<div id="outline-container-orgca1f0da" class="outline-2">
|
||||
<h2 id="orgca1f0da">Posts</h2>
|
||||
<div class="outline-text-2" id="text-orgca1f0da">
|
||||
<div id="outline-container-org340d118" class="outline-2">
|
||||
<h2 id="org340d118">Posts</h2>
|
||||
<div class="outline-text-2" id="text-org340d118">
|
||||
<ul class="org-ul">
|
||||
<li><a href="./posts/keeb.html">Keyboard journey</a></li>
|
||||
<li><a href="./posts/about_blog.html">Org to HTML and back</a></li>
|
||||
<li><a href="./posts/add_rss_to_blog.html">Add RSS feed to blog</a></li>
|
||||
<li><a href="./posts/improve_code_blocks.html">Improve code blocks</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,44 +2,44 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orge2d9a8f">Disclaimer</a></li>
|
||||
<li><a href="#orgfa64efa">What is Org?</a></li>
|
||||
<li><a href="#org833356c">Why Org Mode?</a></li>
|
||||
<li><a href="#org5fe0620">Render Org to blog or whatever</a>
|
||||
<li><a href="#orgc2373d5">Disclaimer</a></li>
|
||||
<li><a href="#orgaafa168">What is Org?</a></li>
|
||||
<li><a href="#org2989ffd">Why Org Mode?</a></li>
|
||||
<li><a href="#org225f78b">Render Org to blog or whatever</a>
|
||||
<ul>
|
||||
<li><a href="#orga0df592">Render HTML</a></li>
|
||||
<li><a href="#org97d3eeb">Static files</a></li>
|
||||
<li><a href="#org8c17fc5">Whole build script</a></li>
|
||||
<li><a href="#orge431bd6">Render HTML</a></li>
|
||||
<li><a href="#org3cee6ca">Static files</a></li>
|
||||
<li><a href="#orge0ca483">Whole build script</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2ced1ef">Publish through GitHub Action</a>
|
||||
<li><a href="#org7c124f7">Publish through GitHub Action</a>
|
||||
<ul>
|
||||
<li><a href="#org04285d2">Install Emacs</a></li>
|
||||
<li><a href="#org2d0af99">Just bring everything</a></li>
|
||||
<li><a href="#org2ad5512">BTW I use GNU Emacs</a></li>
|
||||
<li><a href="#org9fd7143">Install Emacs</a></li>
|
||||
<li><a href="#orge30487d">Just bring everything</a></li>
|
||||
<li><a href="#orgf0b57aa">BTW I use GNU Emacs</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9df4250">What is next</a>
|
||||
<li><a href="#org808a7c1">What is next</a>
|
||||
<ul>
|
||||
<li><a href="#org7e8fa0b">RSS Feed</a></li>
|
||||
<li><a href="#org22534a3">Open Graph</a></li>
|
||||
<li><a href="#orgebf2b85">Code highlighting</a></li>
|
||||
<li><a href="#org8b7149f">RSS Feed</a></li>
|
||||
<li><a href="#org0997bc3">Open Graph</a></li>
|
||||
<li><a href="#orgdcdcceb">Code highlighting</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge2d9a8f" class="outline-2">
|
||||
<h2 id="orge2d9a8f">Disclaimer</h2>
|
||||
<div class="outline-text-2" id="text-orge2d9a8f">
|
||||
<div id="outline-container-orgc2373d5" class="outline-2">
|
||||
<h2 id="orgc2373d5">Disclaimer</h2>
|
||||
<div class="outline-text-2" id="text-orgc2373d5">
|
||||
<p>
|
||||
I'm neither proficient in Org Mode (further on "Org"), nor a good front-end engineer. I think that a simple solution is better than no solution. If you see a mistake, you can contact me via <a href="mailto:iam@fidonode.me">iam@fidonode.me</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgfa64efa" class="outline-2">
|
||||
<h2 id="orgfa64efa">What is Org?</h2>
|
||||
<div class="outline-text-2" id="text-orgfa64efa">
|
||||
<div id="outline-container-orgaafa168" class="outline-2">
|
||||
<h2 id="orgaafa168">What is Org?</h2>
|
||||
<div class="outline-text-2" id="text-orgaafa168">
|
||||
<blockquote>
|
||||
<p>
|
||||
Your life in plain text
|
||||
@ -55,9 +55,9 @@ Everything you can do in Org is to write a text. With a special markup, of cours
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org833356c" class="outline-2">
|
||||
<h2 id="org833356c">Why Org Mode?</h2>
|
||||
<div class="outline-text-2" id="text-org833356c">
|
||||
<div id="outline-container-org2989ffd" class="outline-2">
|
||||
<h2 id="org2989ffd">Why Org Mode?</h2>
|
||||
<div class="outline-text-2" id="text-org2989ffd">
|
||||
<ol class="org-ol">
|
||||
<li>Plain text.
|
||||
Plain text as a data source offers significant versatility. You can read and understand what happens in org files without needing Emacs.</li>
|
||||
@ -69,16 +69,16 @@ I do not have a habit of collecting and keeping information. I believe that disc
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5fe0620" class="outline-2">
|
||||
<h2 id="org5fe0620">Render Org to blog or whatever</h2>
|
||||
<div class="outline-text-2" id="text-org5fe0620">
|
||||
<div id="outline-container-org225f78b" class="outline-2">
|
||||
<h2 id="org225f78b">Render Org to blog or whatever</h2>
|
||||
<div class="outline-text-2" id="text-org225f78b">
|
||||
<p>
|
||||
Org already has a way to render files into HTML, allowing you to create simple HTML files with minimal styling. I'm not interesting in styling from org, so I decide to use <a href="https://picocss.com">picocss</a> framework.
|
||||
</p>
|
||||
</div>
|
||||
<div id="outline-container-orga0df592" class="outline-3">
|
||||
<h3 id="orga0df592">Render HTML</h3>
|
||||
<div class="outline-text-3" id="text-orga0df592">
|
||||
<div id="outline-container-orge431bd6" class="outline-3">
|
||||
<h3 id="orge431bd6">Render HTML</h3>
|
||||
<div class="outline-text-3" id="text-orge431bd6">
|
||||
<p>
|
||||
I want to change some templates here and there. I've found <code>esxml</code> package. It is a decent DSL for writing XML/HTML.
|
||||
Here is how page header and footer look in this DSL.
|
||||
@ -183,9 +183,9 @@ So everything is almost done. Time to use our custom publishing function in proj
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org97d3eeb" class="outline-3">
|
||||
<h3 id="org97d3eeb">Static files</h3>
|
||||
<div class="outline-text-3" id="text-org97d3eeb">
|
||||
<div id="outline-container-org3cee6ca" class="outline-3">
|
||||
<h3 id="org3cee6ca">Static files</h3>
|
||||
<div class="outline-text-3" id="text-org3cee6ca">
|
||||
<p>
|
||||
Yep, you may want to publish some photos with your blog or any other static files.
|
||||
</p>
|
||||
@ -205,9 +205,9 @@ Looks self explanatory.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org8c17fc5" class="outline-3">
|
||||
<h3 id="org8c17fc5">Whole build script</h3>
|
||||
<div class="outline-text-3" id="text-org8c17fc5">
|
||||
<div id="outline-container-orge0ca483" class="outline-3">
|
||||
<h3 id="orge0ca483">Whole build script</h3>
|
||||
<div class="outline-text-3" id="text-orge0ca483">
|
||||
<p>
|
||||
Here is the whole elisp script which I use to publish my blog. It have some additional quirks to work with <code class="src src-sh">doomscript ./build-site.el</code>.
|
||||
</p>
|
||||
@ -365,9 +365,9 @@ Here is the whole elisp script which I use to publish my blog. It have some addi
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ced1ef" class="outline-2">
|
||||
<h2 id="org2ced1ef">Publish through GitHub Action</h2>
|
||||
<div class="outline-text-2" id="text-org2ced1ef">
|
||||
<div id="outline-container-org7c124f7" class="outline-2">
|
||||
<h2 id="org7c124f7">Publish through GitHub Action</h2>
|
||||
<div class="outline-text-2" id="text-org7c124f7">
|
||||
<p>
|
||||
With all previous preparations, this step sounds simple like: <code class="src src-sh">emacs -Q --script ./build-site.el</code>
|
||||
I've chosen a pretty standard way to publish static sites through GitHub Pages. Since I keep my Org files in a private repo, I need some additional steps to address it. I use the <code>peaceiris/actions-gh-pages@v3</code> action to publish from my Org repo to the Pages repo.
|
||||
@ -375,9 +375,9 @@ However, since I use <code>Doom Emacs</code> as my configuration framework, we n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04285d2" class="outline-3">
|
||||
<h3 id="org04285d2">Install Emacs</h3>
|
||||
<div class="outline-text-3" id="text-org04285d2">
|
||||
<div id="outline-container-org9fd7143" class="outline-3">
|
||||
<h3 id="org9fd7143">Install Emacs</h3>
|
||||
<div class="outline-text-3" id="text-org9fd7143">
|
||||
<p>
|
||||
If you want to run <code>Emacs Lisp</code>, you need the whole Emacs, at least without GUI. In a GitHub Action, you can simply run:
|
||||
</p>
|
||||
@ -388,9 +388,9 @@ This way has a downside - you will install Emacs on each action run since the sy
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2d0af99" class="outline-3">
|
||||
<h3 id="org2d0af99">Just bring everything</h3>
|
||||
<div class="outline-text-3" id="text-org2d0af99">
|
||||
<div id="outline-container-orge30487d" class="outline-3">
|
||||
<h3 id="orge30487d">Just bring everything</h3>
|
||||
<div class="outline-text-3" id="text-orge30487d">
|
||||
<p>
|
||||
I need to take extra steps since I use Doom Emacs and have my configs in Org. You may also need to install dependencies for your configuration.
|
||||
</p>
|
||||
@ -426,9 +426,9 @@ Of course, I use a caching step to make the whole process faster:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ad5512" class="outline-3">
|
||||
<h3 id="org2ad5512">BTW I use GNU Emacs</h3>
|
||||
<div class="outline-text-3" id="text-org2ad5512">
|
||||
<div id="outline-container-orgf0b57aa" class="outline-3">
|
||||
<h3 id="orgf0b57aa">BTW I use GNU Emacs</h3>
|
||||
<div class="outline-text-3" id="text-orgf0b57aa">
|
||||
<p>
|
||||
Here's the whole publishing workflow.
|
||||
</p>
|
||||
@ -507,31 +507,26 @@ jobs:
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org9df4250" class="outline-2">
|
||||
<h2 id="org9df4250">What is next</h2>
|
||||
<div class="outline-text-2" id="text-org9df4250">
|
||||
<div id="outline-container-org808a7c1" class="outline-2">
|
||||
<h2 id="org808a7c1">What is next</h2>
|
||||
<div class="outline-text-2" id="text-org808a7c1">
|
||||
<p>
|
||||
I have a plans to make posts about next features:
|
||||
</p>
|
||||
</div>
|
||||
<div id="outline-container-org7e8fa0b" class="outline-3">
|
||||
<h3 id="org7e8fa0b"><a href="./add_rss_to_blog.html">RSS Feed</a></h3>
|
||||
<div id="outline-container-org8b7149f" class="outline-3">
|
||||
<h3 id="org8b7149f"><a href="./add_rss_to_blog.html">RSS Feed</a></h3>
|
||||
</div>
|
||||
<div id="outline-container-org22534a3" class="outline-3">
|
||||
<h3 id="org22534a3">Open Graph</h3>
|
||||
<div class="outline-text-3" id="text-org22534a3">
|
||||
<div id="outline-container-org0997bc3" class="outline-3">
|
||||
<h3 id="org0997bc3">Open Graph</h3>
|
||||
<div class="outline-text-3" id="text-org0997bc3">
|
||||
<p>
|
||||
Already implemented. Need to document process.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgebf2b85" class="outline-3">
|
||||
<h3 id="orgebf2b85">Code highlighting</h3>
|
||||
<div class="outline-text-3" id="text-orgebf2b85">
|
||||
<p>
|
||||
Only rudimentary highlight. Want something fancier.
|
||||
</p>
|
||||
</div>
|
||||
<div id="outline-container-orgdcdcceb" class="outline-3">
|
||||
<h3 id="orgdcdcceb"><a href="./improve_code_blocks.html">Code highlighting</a></h3>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer"><hr/><small><p>Alex Mikhailov</p><p>Built with: <a href="https://www.gnu.org/software/emacs/">GNU Emacs</a> <a href="https://orgmode.org/">Org Mode</a> <a href="https://picocss.com/">picocss</a></p></small></footer></main></body></html>
|
||||
|
@ -2,34 +2,34 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org4c7e0be">Why do you even need RSS?</a></li>
|
||||
<li><a href="#org3e8cdc0">Add RSS feed</a>
|
||||
<li><a href="#org3d20dcf">Why do you even need RSS?</a></li>
|
||||
<li><a href="#orgb4042d2">Add RSS feed</a>
|
||||
<ul>
|
||||
<li><a href="#org21ecd36">Use sitemap backend in the build</a></li>
|
||||
<li><a href="#org67bb290">Publishing and formatting functions</a></li>
|
||||
<li><a href="#orgb7e6aff">Use sitemap backend in the build</a></li>
|
||||
<li><a href="#org996c177">Publishing and formatting functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4c7e0be" class="outline-2">
|
||||
<h2 id="org4c7e0be">Why do you even need RSS?</h2>
|
||||
<div class="outline-text-2" id="text-org4c7e0be">
|
||||
<div id="outline-container-org3d20dcf" class="outline-2">
|
||||
<h2 id="org3d20dcf">Why do you even need RSS?</h2>
|
||||
<div class="outline-text-2" id="text-org3d20dcf">
|
||||
<p>
|
||||
RSS might seem like an outdated, marginal thing. But it still has at least one benefit—you can use an RSS feed as a sitemap for search engines. Plus, it's pretty geeky.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org3e8cdc0" class="outline-2">
|
||||
<h2 id="org3e8cdc0">Add RSS feed</h2>
|
||||
<div class="outline-text-2" id="text-org3e8cdc0">
|
||||
<div id="outline-container-orgb4042d2" class="outline-2">
|
||||
<h2 id="orgb4042d2">Add RSS feed</h2>
|
||||
<div class="outline-text-2" id="text-orgb4042d2">
|
||||
<p>
|
||||
So, what's happening here? Let's start by integrating our templating functions into the build.
|
||||
</p>
|
||||
</div>
|
||||
<div id="outline-container-org21ecd36" class="outline-3">
|
||||
<h3 id="org21ecd36">Use sitemap backend in the build</h3>
|
||||
<div class="outline-text-3" id="text-org21ecd36">
|
||||
<div id="outline-container-orgb7e6aff" class="outline-3">
|
||||
<h3 id="orgb7e6aff">Use sitemap backend in the build</h3>
|
||||
<div class="outline-text-3" id="text-orgb7e6aff">
|
||||
<pre><code class="language-lisp">(setq org-publish-project-alist
|
||||
(list
|
||||
(list "blog-rss"
|
||||
@ -59,9 +59,9 @@ How does it work? As you can see, we use the default sitemap generator from Org
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org67bb290" class="outline-3">
|
||||
<h3 id="org67bb290">Publishing and formatting functions</h3>
|
||||
<div class="outline-text-3" id="text-org67bb290">
|
||||
<div id="outline-container-org996c177" class="outline-3">
|
||||
<h3 id="org996c177">Publishing and formatting functions</h3>
|
||||
<div class="outline-text-3" id="text-org996c177">
|
||||
<p>
|
||||
We need a mandatory dependency because we don't want to mess with forming correct XML by ourselves.
|
||||
</p>
|
||||
|
@ -1,34 +1,55 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta author="Alex Mikhailov"/><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/><meta name="color-scheme" content="light dark"/><meta http-equiv="content-language" content="en-us"/><meta name="description" content="Use prime.js for code syntax highlighting"/><meta name="og:description" content="Use prime.js for code syntax highlighting"/><meta name="twitter:description" content="Use prime.js for code syntax highlighting"/><meta name="og:image" content="https://fidonode.me/resources/images/posts/improve_code_blocks.org.png"/><meta name="twitter:image" content="https://fidonode.me/resources/images/posts/improve_code_blocks.org.png"/><meta name="og:title" content="Improve code blocks"/><meta name="twitter:title" content="Improve code blocks"/><meta name="twitter:card" content="summary_large_image"/><link rel="icon" type="image/x-icon" href="/resources/favicon.ico"/><link rel="stylesheet" type="text/css" href="/resources/css/pico.sand.min.css"/><script defer="true" src="https://umami.dokutsu.xyz/script.js" data-website-id="d52d9af1-0c7d-4531-84c6-0b9c2850011f"></script><nil><link id="highlight-theme" rel="stylesheet" type="text/css"/><script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script><script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/bash.min.js"></script><script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/lisp.min.js"></script><script src="/resources/js/theme-selector.js"></script></nil><title>Improve code blocks</title></head><body><main class="container"><header class="header"><nav><ul><li><strong>Improve code blocks</strong></li></ul><ul><li><a href="/index.html">About</a></li><li><a href="/posts.html">Blog</a></li><li><a href="/rss.xml">RSS</a></li></ul></nav></header><div id="table-of-contents">
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta author="Alex Mikhailov"/><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/><meta name="color-scheme" content="light dark"/><meta http-equiv="content-language" content="en-us"/><meta name="description" content="Use highlight.js for code syntax highlighting"/><meta name="og:description" content="Use highlight.js for code syntax highlighting"/><meta name="twitter:description" content="Use highlight.js for code syntax highlighting"/><meta name="og:image" content="https://fidonode.me/resources/images/posts/improve_code_blocks.org.png"/><meta name="twitter:image" content="https://fidonode.me/resources/images/posts/improve_code_blocks.org.png"/><meta name="og:title" content="Improve code blocks"/><meta name="twitter:title" content="Improve code blocks"/><meta name="twitter:card" content="summary_large_image"/><link rel="icon" type="image/x-icon" href="/resources/favicon.ico"/><link rel="stylesheet" type="text/css" href="/resources/css/pico.sand.min.css"/><script defer="true" src="https://umami.dokutsu.xyz/script.js" data-website-id="d52d9af1-0c7d-4531-84c6-0b9c2850011f"></script><nil><link id="highlight-theme" rel="stylesheet" type="text/css"/><script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script><script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/bash.min.js"></script><script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/lisp.min.js"></script><script src="/resources/js/theme-selector.js"></script></nil><title>Improve code blocks</title></head><body><main class="container"><header class="header"><nav><ul><li><strong>Improve code blocks</strong></li></ul><ul><li><a href="/index.html">About</a></li><li><a href="/posts.html">Blog</a></li><li><a href="/rss.xml">RSS</a></li></ul></nav></header><div id="table-of-contents">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org506f58f">What is the problem with default highlighting?</a></li>
|
||||
<li><a href="#orgbf2207a">Prism.js</a>
|
||||
<li><a href="#orgc3b762f">What is the problem with default highlighting?</a></li>
|
||||
<li><a href="#org278adbf">Highlight.js</a>
|
||||
<ul>
|
||||
<li><a href="#orgb19a9c7">Change code block template</a></li>
|
||||
<li><a href="#orge91c35a">Plug Prism.js</a></li>
|
||||
<li><a href="#orgbaa05e2">Respect prefers-color-scheme</a></li>
|
||||
<li><a href="#org7c1ed5f">Change code block template</a></li>
|
||||
<li><a href="#orgcc44ae9">Plug Highlight.js</a></li>
|
||||
<li><a href="#org68b092c">Respect prefers-color-scheme</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8ecf679">Whole config</a></li>
|
||||
<li><a href="#org66c91f8">Whole config</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org506f58f" class="outline-2">
|
||||
<h2 id="org506f58f">What is the problem with default highlighting?</h2>
|
||||
<div id="outline-container-orgc3b762f" class="outline-2">
|
||||
<h2 id="orgc3b762f">What is the problem with default highlighting?</h2>
|
||||
<div class="outline-text-2" id="text-orgc3b762f">
|
||||
<p>
|
||||
Htmlize works poorly with headless publishing. It lacks extensibility, including features like line numbers, a copy button, and the ability to highlight predefined parts of the code.
|
||||
</p>
|
||||
</div>
|
||||
<div id="outline-container-orgbf2207a" class="outline-2">
|
||||
<h2 id="orgbf2207a">Prism.js</h2>
|
||||
<div class="outline-text-2" id="text-orgbf2207a">
|
||||
</div>
|
||||
<div id="outline-container-orgb19a9c7" class="outline-3">
|
||||
<h3 id="orgb19a9c7">Change code block template</h3>
|
||||
<div class="outline-text-3" id="text-orgb19a9c7">
|
||||
<pre><code class="language-lisp">(defun my/src-block (src-block contents info)
|
||||
<div id="outline-container-org278adbf" class="outline-2">
|
||||
<h2 id="org278adbf">Highlight.js</h2>
|
||||
<div class="outline-text-2" id="text-org278adbf">
|
||||
</div>
|
||||
<div id="outline-container-org7c1ed5f" class="outline-3">
|
||||
<h3 id="org7c1ed5f">Change code block template</h3>
|
||||
<div class="outline-text-3" id="text-org7c1ed5f">
|
||||
<p>
|
||||
We need to make small changes in how code blocks are rendered. By default, Org Export exports code blocks as <code><pre></pre></code>. For Highlight.js, we need <code><pre><code></code></pre></code>. Additionally, we need to set the correct language name in the class attribute. Since Highlight.js does not support <code>elisp</code>, I rewrite it to regular <code>lisp</code> using the <code>my/replace-substring</code> function.
|
||||
</p>
|
||||
<pre><code class="language-lisp">(setq
|
||||
my/lang-substitution-map '(("elisp" . "lisp")))
|
||||
|
||||
(defun my/replace-substrings (input-string)
|
||||
"Replace substrings in INPUT-STRING according to SUBSTITUTION-MAP."
|
||||
(let ((output-string input-string))
|
||||
(dolist (pair my/lang-substitution-map)
|
||||
(let ((old (regexp-quote (car pair)))
|
||||
(new (cdr pair)))
|
||||
(setq output-string (replace-regexp-in-string old new output-string))))
|
||||
output-string))
|
||||
|
||||
(defun my/src-block (src-block contents info)
|
||||
"Translate SRC-BLOCK element into HTML.
|
||||
CONTENTS is nil. INFO is a plist holding contextual information."
|
||||
(let* (
|
||||
(language (format "language-%s" (org-element-property :language src-block)))
|
||||
(org-language (format "language-%s" (org-element-property :language src-block)))
|
||||
(language (my/replace-substrings org-language))
|
||||
(code (org-element-property :value src-block)))
|
||||
(esxml-to-xml
|
||||
`(pre ()
|
||||
@ -48,9 +69,12 @@ CONTENTS is nil. INFO is a plist holding contextual information."
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge91c35a" class="outline-3">
|
||||
<h3 id="orge91c35a">Plug Prism.js</h3>
|
||||
<div class="outline-text-3" id="text-orge91c35a">
|
||||
<div id="outline-container-orgcc44ae9" class="outline-3">
|
||||
<h3 id="orgcc44ae9">Plug Highlight.js</h3>
|
||||
<div class="outline-text-3" id="text-orgcc44ae9">
|
||||
<p>
|
||||
I do not want to load Highlight.js on every page, so I need to check if the initial Org file contains code blocks. Depending on this, we will render the part of the tree with JavaScript or not.
|
||||
</p>
|
||||
<pre><code class="language-lisp">(defun my/org-has-src-blocks-p (info)
|
||||
"Return t if the Org document represented by INFO has source code blocks."
|
||||
(org-element-map (plist-get info :parse-tree) 'src-block
|
||||
@ -65,53 +89,62 @@ CONTENTS is nil. INFO is a plist holding contextual information."
|
||||
...
|
||||
|
||||
(script ((defer . "true") (src . "https://umami.dokutsu.xyz/script.js") (data-website-id . "d52d9af1-0c7d-4531-84c6-0b9c2850011f")) ())
|
||||
|
||||
,(when has-src-blocks
|
||||
`(nil ()
|
||||
(link ((id . "prism-theme") (rel . "stylesheet") (type . "text/css")))
|
||||
(link ((rel . "stylesheet") (type . "text/css") (href . "/resources/css/quirks.css")))
|
||||
(script ((src . "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js")) ())
|
||||
(script ((src . "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js")) ())
|
||||
(script ((src . "/resources/js/theme-selector.js")) ())
|
||||
))
|
||||
`(nil ()
|
||||
(link ((id . "highlight-theme") (rel . "stylesheet") (type . "text/css")))
|
||||
(script ((src . "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js")) ())
|
||||
(script ((src . "https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/bash.min.js")) ())
|
||||
(script ((src . "https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/lisp.min.js")) ())
|
||||
(script ((src . "/resources/js/theme-selector.js")) ())
|
||||
)
|
||||
)
|
||||
|
||||
(title () ,title-str)
|
||||
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgbaa05e2" class="outline-3">
|
||||
<h3 id="orgbaa05e2">Respect prefers-color-scheme</h3>
|
||||
<div class="outline-text-3" id="text-orgbaa05e2">
|
||||
<pre><code class="language-javascript">function setPrismTheme() {
|
||||
const prismThemeLink = document.getElementById("prism-theme");
|
||||
<div id="outline-container-org68b092c" class="outline-3">
|
||||
<h3 id="org68b092c">Respect prefers-color-scheme</h3>
|
||||
<div class="outline-text-3" id="text-org68b092c">
|
||||
<p>
|
||||
Additionally, I think it's a good idea to respect the <code>prefers-color-scheme</code> property of the user's browser. We can switch CSS files based on this property. We should also subscribe to changes in this property to handle the edge case when it switches while reading the page.
|
||||
</p>
|
||||
<pre><code class="language-javascript">hljs.highlightAll(); // Initialize highlight.js
|
||||
|
||||
// Function to set the theme based on the preferred color scheme
|
||||
function setHighlightTheme() {
|
||||
const highlightThemeLink = document.getElementById("highlight-theme");
|
||||
const darkTheme =
|
||||
"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css";
|
||||
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/base16/solarized-dark.min.css";
|
||||
const lightTheme =
|
||||
"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-solarizedlight.min.css";
|
||||
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/base16/solarized-light.min.css";
|
||||
if (
|
||||
window.matchMedia &amp;&amp;
|
||||
window.matchMedia("(prefers-color-scheme: dark)").matches
|
||||
) {
|
||||
prismThemeLink.href = darkTheme;
|
||||
highlightThemeLink.href = darkTheme;
|
||||
} else {
|
||||
prismThemeLink.href = lightTheme;
|
||||
highlightThemeLink.href = lightTheme;
|
||||
}
|
||||
}
|
||||
|
||||
// Initial theme set
|
||||
setPrismTheme();
|
||||
setHighlightTheme();
|
||||
|
||||
// Listen for changes in the preferred color scheme
|
||||
window
|
||||
.matchMedia("(prefers-color-scheme: dark)")
|
||||
.addEventListener("change", setPrismTheme);
|
||||
.addEventListener("change", setHighlightTheme);
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ecf679" class="outline-2">
|
||||
<h2 id="org8ecf679">Whole config</h2>
|
||||
<div class="outline-text-2" id="text-org8ecf679">
|
||||
<div id="outline-container-org66c91f8" class="outline-2">
|
||||
<h2 id="org66c91f8">Whole config</h2>
|
||||
<div class="outline-text-2" id="text-org66c91f8">
|
||||
<p>
|
||||
In between posts I've switched from <code>sxml</code> to <code>esxml</code> so here is the current config.
|
||||
</p>
|
||||
@ -185,7 +218,8 @@ In between posts I've switched from <code>sxml</code> to <code>esxml</code> so h
|
||||
"Translate SRC-BLOCK element into HTML.
|
||||
CONTENTS is nil. INFO is a plist holding contextual information."
|
||||
(let* (
|
||||
(language (format "language-%s" (org-element-property :language src-block)))
|
||||
(org-language (format "language-%s" (org-element-property :language src-block)))
|
||||
(language (my/replace-substrings org-language))
|
||||
(code (org-element-property :value src-block)))
|
||||
(esxml-to-xml
|
||||
`(pre ()
|
||||
@ -241,16 +275,16 @@ CONTENTS is nil. INFO is a plist holding contextual information."
|
||||
(script ((defer . "true") (src . "https://umami.dokutsu.xyz/script.js") (data-website-id . "d52d9af1-0c7d-4531-84c6-0b9c2850011f")) ())
|
||||
,(when has-src-blocks
|
||||
`(nil ()
|
||||
(link ((id . "prism-theme") (rel . "stylesheet") (type . "text/css")))
|
||||
(link ((rel . "stylesheet") (type . "text/css") (href . "/resources/css/quirks.css")))
|
||||
(script ((src . "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js")) ())
|
||||
(script ((src . "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js")) ())
|
||||
(link ((id . "highlight-theme") (rel . "stylesheet") (type . "text/css")))
|
||||
(script ((src . "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js")) ())
|
||||
(script ((src . "https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/bash.min.js")) ())
|
||||
(script ((src . "https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/lisp.min.js")) ())
|
||||
(script ((src . "/resources/js/theme-selector.js")) ())
|
||||
)
|
||||
)
|
||||
(title () ,title-str)
|
||||
)
|
||||
(body ((class . "line-numbers"))
|
||||
(body ()
|
||||
(main ((class . "container"))
|
||||
,(my/header info)
|
||||
(raw-string ,contents)
|
||||
|
118
posts/keeb.html
118
posts/keeb.html
@ -2,51 +2,51 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org363efa0">My end-game (at least I hope) keyboard</a>
|
||||
<li><a href="#org07aea5f">My end-game (at least I hope) keyboard</a>
|
||||
<ul>
|
||||
<li><a href="#orga2e3fd5">Keebs path</a>
|
||||
<li><a href="#orga2d30bc">Keebs path</a>
|
||||
<ul>
|
||||
<li><a href="#org259f8e1">Dactyl manuform</a></li>
|
||||
<li><a href="#orga9435a6">Moonlander</a></li>
|
||||
<li><a href="#org9ad3f10">Custom Corne</a></li>
|
||||
<li><a href="#orgd5e5379">Dactyl manuform again</a></li>
|
||||
<li><a href="#orgdb8c4c2">Dactyl manuform</a></li>
|
||||
<li><a href="#orgb3e1fa6">Moonlander</a></li>
|
||||
<li><a href="#orgeb606e4">Custom Corne</a></li>
|
||||
<li><a href="#org6dfc467">Dactyl manuform again</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8ca9de5">Hardware</a>
|
||||
<li><a href="#orge4f78a3">Hardware</a>
|
||||
<ul>
|
||||
<li><a href="#org5ca837a">Body</a></li>
|
||||
<li><a href="#org50e00b1">Switches and caps</a></li>
|
||||
<li><a href="#orgd06a670">Controllers</a></li>
|
||||
<li><a href="#orgd52b819">Amoeba things</a></li>
|
||||
<li><a href="#orgfae4cc1">Body</a></li>
|
||||
<li><a href="#orgb1ab457">Switches and caps</a></li>
|
||||
<li><a href="#org189153a">Controllers</a></li>
|
||||
<li><a href="#org2d883ed">Amoeba things</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6464402">Software</a>
|
||||
<li><a href="#orge5ee349">Software</a>
|
||||
<ul>
|
||||
<li><a href="#org50cce65">Plain default - QMK</a></li>
|
||||
<li><a href="#orgc590b38">Make own layout</a></li>
|
||||
<li><a href="#org9218b05">Plain default - QMK</a></li>
|
||||
<li><a href="#orgd9ff523">Make own layout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org797c5e5">Whats next?</a></li>
|
||||
<li><a href="#org1b01980">Whats next?</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org363efa0" class="outline-2">
|
||||
<h2 id="org363efa0">My end-game (at least I hope) keyboard</h2>
|
||||
<div class="outline-text-2" id="text-org363efa0">
|
||||
<div id="outline-container-org07aea5f" class="outline-2">
|
||||
<h2 id="org07aea5f">My end-game (at least I hope) keyboard</h2>
|
||||
<div class="outline-text-2" id="text-org07aea5f">
|
||||
</div>
|
||||
<div id="outline-container-orga2e3fd5" class="outline-3">
|
||||
<h3 id="orga2e3fd5">Keebs path</h3>
|
||||
<div class="outline-text-3" id="text-orga2e3fd5">
|
||||
<div id="outline-container-orga2d30bc" class="outline-3">
|
||||
<h3 id="orga2d30bc">Keebs path</h3>
|
||||
<div class="outline-text-3" id="text-orga2d30bc">
|
||||
<p>
|
||||
Sometimes I think about the long journey I've made with keebs. In childhood, I had decent membrane keyboards, most of which had an ergonomic profile like the MS. Not sure if it somehow affected my taste because I started my career with the simplest, cheapest board and typed countless lines of code on such keebs. Then I heard about clickity-clack mechanical keyboards and decided to try one. It was a simple Chinese keeb with a thick metal body, double-shot caps, and Cherry Brown switches. A decent thing to annoy everyone around you. I think this purchase marked my dive into mech keebs
|
||||
I'm not a geeky aficionado who thinks you can fix everything with a new keyboard, but I built a couple of them. I hope I've finally built the last one for quite some time.
|
||||
</p>
|
||||
</div>
|
||||
<div id="outline-container-org259f8e1" class="outline-4">
|
||||
<h4 id="org259f8e1">Dactyl manuform</h4>
|
||||
<div class="outline-text-4" id="text-org259f8e1">
|
||||
<div id="outline-container-orgdb8c4c2" class="outline-4">
|
||||
<h4 id="orgdb8c4c2">Dactyl manuform</h4>
|
||||
<div class="outline-text-4" id="text-orgdb8c4c2">
|
||||
<p>
|
||||
Almost all of the time, I struggle with my maximalism. So I decided to build the ultimate mechanical ergonomic split keyboard and chose the Dactyl Manuform. Sounds like a crazy idea. Zero experience with QMK, zero experience with hand-wired keyboards, and zero experience in 3D printing.
|
||||
The last problem was the easiest one; I just asked my friend to print the bodies from PETG polymer, and Bob's your uncle. I got two pieces of rough-layered plastic with all the support structures. God, it was a nightmare to clean these prints from supports and small artifacts, but I was happy.
|
||||
@ -92,9 +92,9 @@ To be honest, this keeb was ugly, and I decided that I wanted a beautiful factor
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga9435a6" class="outline-4">
|
||||
<h4 id="orga9435a6">Moonlander</h4>
|
||||
<div class="outline-text-4" id="text-orga9435a6">
|
||||
<div id="outline-container-orgb3e1fa6" class="outline-4">
|
||||
<h4 id="orgb3e1fa6">Moonlander</h4>
|
||||
<div class="outline-text-4" id="text-orgb3e1fa6">
|
||||
<p>
|
||||
Nothing special. Ordered, paid, got it, tried it. Everything worked. Looked good. Happy year of typing. Bored. Annoyed. Too big and chunky. No concave. Quality not the best. Started planning the next one.
|
||||
</p>
|
||||
@ -107,9 +107,9 @@ Nothing special. Ordered, paid, got it, tried it. Everything worked. Looked good
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9ad3f10" class="outline-4">
|
||||
<h4 id="org9ad3f10">Custom Corne</h4>
|
||||
<div class="outline-text-4" id="text-org9ad3f10">
|
||||
<div id="outline-container-orgeb606e4" class="outline-4">
|
||||
<h4 id="orgeb606e4">Custom Corne</h4>
|
||||
<div class="outline-text-4" id="text-orgeb606e4">
|
||||
<p>
|
||||
This journey started with discovering the Jian keyboard. It is a niche keeb from the Ru community focused on full support of the whole Russian layout. It was originally created by KGOH. I missed the group buy and decided that I could easily patch a Corne board with two additional keys to mimic the Jian.
|
||||
Interesting journey. I learned how to use KiCad, and how to export gerbers.
|
||||
@ -158,9 +158,9 @@ Daily driver for ~6 months. Then the world changed, and I decided to leave my ho
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd5e5379" class="outline-4">
|
||||
<h4 id="orgd5e5379">Dactyl manuform again</h4>
|
||||
<div class="outline-text-4" id="text-orgd5e5379">
|
||||
<div id="outline-container-org6dfc467" class="outline-4">
|
||||
<h4 id="org6dfc467">Dactyl manuform again</h4>
|
||||
<div class="outline-text-4" id="text-org6dfc467">
|
||||
<p>
|
||||
Two years late I've settled down in new country and decide that I want to bring back my dactyl manuform experience.
|
||||
</p>
|
||||
@ -174,13 +174,13 @@ Two years late I've settled down in new country and decide that I want to bring
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ca9de5" class="outline-3">
|
||||
<h3 id="org8ca9de5">Hardware</h3>
|
||||
<div class="outline-text-3" id="text-org8ca9de5">
|
||||
<div id="outline-container-orge4f78a3" class="outline-3">
|
||||
<h3 id="orge4f78a3">Hardware</h3>
|
||||
<div class="outline-text-3" id="text-orge4f78a3">
|
||||
</div>
|
||||
<div id="outline-container-org5ca837a" class="outline-4">
|
||||
<h4 id="org5ca837a">Body</h4>
|
||||
<div class="outline-text-4" id="text-org5ca837a">
|
||||
<div id="outline-container-orgfae4cc1" class="outline-4">
|
||||
<h4 id="orgfae4cc1">Body</h4>
|
||||
<div class="outline-text-4" id="text-orgfae4cc1">
|
||||
<p>
|
||||
I've choose to use a <a href="https://ryanis.cool/dactyl/#manuform">Ryan's generator</a> and generate body on top of Corne preset with all keys in last row and disabled stagger for the last two columns. <a href="https://ryanis.cool/dactyl/#manuform:CiUIBhAEGgp0aHJlZS1taW5pIgRmdWxsKgNib3gyBm5vcm1pZTgAGgoIARIEbm9uZRgAIhdVAACAQBgAIABdAADgQGUAAEBAQABIADL5AZUDAAAgQJ0DAACAP4ADAIgDAA0AAAAAFQAAAAAdMzMzQCUAANDALQAAUME1AADAQD0AAAAARQAAAABNAADAQFUAAEDAXQAA4EBlMzNhwm0zMy3CdQAAvMF45wKAAc0YiAHIJJUBMzMXwp0BMzNdwqUBZmbKwagBnwuwAZkXuAH8JcUBAABQws0BAADQwdUBAABAwdgBnATgAfMX6AGQHPUBAADowf0BAAAkwoUCAABQwYgCmwSQAvMXmALgIaUCAAAMwq0CAABwwbUCAAAAwLgChAfAApUQyAKEB9UCAABAwd0CAACAweUCAABAQOgChAfwApUQ+AKEBw==">Generator preset</a>
|
||||
The body was printed by JLC3DP (JLCPCB printing department). I've choose <a href="https://jlc3dp.com/help/article/502-Precimid-1172-Pro">SLS from nylon</a>. Print has minor artifacts; I expected better quality.
|
||||
@ -216,9 +216,9 @@ Overall, I'm happy with results. I also printed bottom plates and <a href="https
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org50e00b1" class="outline-4">
|
||||
<h4 id="org50e00b1">Switches and caps</h4>
|
||||
<div class="outline-text-4" id="text-org50e00b1">
|
||||
<div id="outline-container-orgb1ab457" class="outline-4">
|
||||
<h4 id="orgb1ab457">Switches and caps</h4>
|
||||
<div class="outline-text-4" id="text-orgb1ab457">
|
||||
<p>
|
||||
I've chosen Kailh BOX Navy switches. I really like the clickity-clack sound. They have a dedicated clickbar to produce this sound, and the box profile helps with moving down perpendicularly.
|
||||
</p>
|
||||
@ -234,9 +234,9 @@ The caps are inherited from the Moonlander. They are thick, double-shot caps wit
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd06a670" class="outline-4">
|
||||
<h4 id="orgd06a670">Controllers</h4>
|
||||
<div class="outline-text-4" id="text-orgd06a670">
|
||||
<div id="outline-container-org189153a" class="outline-4">
|
||||
<h4 id="org189153a">Controllers</h4>
|
||||
<div class="outline-text-4" id="text-org189153a">
|
||||
<p>
|
||||
I used a bootleg Pro Micro called Tenstar Robot, based on the ATmega32u4. It's perfectly supported by QMK, pin-to-pin and size-compatible with the Pro Micro.
|
||||
</p>
|
||||
@ -249,9 +249,9 @@ I used a bootleg Pro Micro called Tenstar Robot, based on the ATmega32u4. It's p
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd52b819" class="outline-4">
|
||||
<h4 id="orgd52b819">Amoeba things</h4>
|
||||
<div class="outline-text-4" id="text-orgd52b819">
|
||||
<div id="outline-container-org2d883ed" class="outline-4">
|
||||
<h4 id="org2d883ed">Amoeba things</h4>
|
||||
<div class="outline-text-4" id="text-org2d883ed">
|
||||
<p>
|
||||
During this build, I decided that I did not want to make a big mess of wires and chose Amoeba single-switch PCBs.
|
||||
</p>
|
||||
@ -281,13 +281,13 @@ They are nice, have diodes on board, and simplify wiring. However, they have the
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6464402" class="outline-3">
|
||||
<h3 id="org6464402">Software</h3>
|
||||
<div class="outline-text-3" id="text-org6464402">
|
||||
<div id="outline-container-orge5ee349" class="outline-3">
|
||||
<h3 id="orge5ee349">Software</h3>
|
||||
<div class="outline-text-3" id="text-orge5ee349">
|
||||
</div>
|
||||
<div id="outline-container-org50cce65" class="outline-4">
|
||||
<h4 id="org50cce65">Plain default - QMK</h4>
|
||||
<div class="outline-text-4" id="text-org50cce65">
|
||||
<div id="outline-container-org9218b05" class="outline-4">
|
||||
<h4 id="org9218b05">Plain default - QMK</h4>
|
||||
<div class="outline-text-4" id="text-org9218b05">
|
||||
<p>
|
||||
Prerequiremets:
|
||||
<a href="https://docs.qmk.fm/cli">QMK CLI</a>
|
||||
@ -309,9 +309,9 @@ You may want to create a separate keyboard entry in QMK.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc590b38" class="outline-4">
|
||||
<h4 id="orgc590b38">Make own layout</h4>
|
||||
<div class="outline-text-4" id="text-orgc590b38">
|
||||
<div id="outline-container-orgd9ff523" class="outline-4">
|
||||
<h4 id="orgd9ff523">Make own layout</h4>
|
||||
<div class="outline-text-4" id="text-orgd9ff523">
|
||||
<p>
|
||||
I'll try to go through setting of my personal layout. It is based on <a href="http://www.keyboard-layout-editor.com/#/gists/4b6c2af67148f58ddd6c6b2976c4370f">Jian layout</a>.
|
||||
</p>
|
||||
@ -468,8 +468,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org797c5e5" class="outline-3">
|
||||
<h3 id="org797c5e5">Whats next?</h3>
|
||||
<div id="outline-container-org1b01980" class="outline-3">
|
||||
<h3 id="org1b01980">Whats next?</h3>
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer"><hr/><small><p>Alex Mikhailov</p><p>Built with: <a href="https://www.gnu.org/software/emacs/">GNU Emacs</a> <a href="https://orgmode.org/">Org Mode</a> <a href="https://picocss.com/">picocss</a></p></small></footer></main></body></html>
|
||||
|
32
rss.html
32
rss.html
@ -2,32 +2,32 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org99e7f65">Improve code blocks</a></li>
|
||||
<li><a href="#orgb2026ff">Org blog with RSS</a></li>
|
||||
<li><a href="#org198dc21">Org to HTML and back</a></li>
|
||||
<li><a href="#orgd12072a">My keyboard journey</a></li>
|
||||
<li><a href="#org8dd4cdd">Improve code blocks</a></li>
|
||||
<li><a href="#org141b9fc">Org blog with RSS</a></li>
|
||||
<li><a href="#org6ada0cc">Org to HTML and back</a></li>
|
||||
<li><a href="#org55e3573">My keyboard journey</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99e7f65" class="outline-2">
|
||||
<h2 id="org99e7f65"><a href="file:///home/fido-node/org/home/05 Blog/posts/improve_code_blocks.html">Improve code blocks</a></h2>
|
||||
<div class="outline-text-2" id="text-org99e7f65">
|
||||
<div id="outline-container-org8dd4cdd" class="outline-2">
|
||||
<h2 id="org8dd4cdd"><a href="file:///home/fido-node/org/home/05 Blog/posts/improve_code_blocks.html">Improve code blocks</a></h2>
|
||||
<div class="outline-text-2" id="text-org8dd4cdd">
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb2026ff" class="outline-2">
|
||||
<h2 id="orgb2026ff"><a href="file:///home/fido-node/org/home/05 Blog/posts/add_rss_to_blog.html">Org blog with RSS</a></h2>
|
||||
<div class="outline-text-2" id="text-orgb2026ff">
|
||||
<div id="outline-container-org141b9fc" class="outline-2">
|
||||
<h2 id="org141b9fc"><a href="file:///home/fido-node/org/home/05 Blog/posts/add_rss_to_blog.html">Org blog with RSS</a></h2>
|
||||
<div class="outline-text-2" id="text-org141b9fc">
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org198dc21" class="outline-2">
|
||||
<h2 id="org198dc21"><a href="file:///home/fido-node/org/home/05 Blog/posts/about_blog.html">Org to HTML and back</a></h2>
|
||||
<div class="outline-text-2" id="text-org198dc21">
|
||||
<div id="outline-container-org6ada0cc" class="outline-2">
|
||||
<h2 id="org6ada0cc"><a href="file:///home/fido-node/org/home/05 Blog/posts/about_blog.html">Org to HTML and back</a></h2>
|
||||
<div class="outline-text-2" id="text-org6ada0cc">
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd12072a" class="outline-2">
|
||||
<h2 id="orgd12072a"><a href="file:///home/fido-node/org/home/05 Blog/posts/keeb.html">My keyboard journey</a></h2>
|
||||
<div class="outline-text-2" id="text-orgd12072a">
|
||||
<div id="outline-container-org55e3573" class="outline-2">
|
||||
<h2 id="org55e3573"><a href="file:///home/fido-node/org/home/05 Blog/posts/keeb.html">My keyboard journey</a></h2>
|
||||
<div class="outline-text-2" id="text-org55e3573">
|
||||
</div>
|
||||
</div>
|
||||
<footer class="footer"><hr/><small><p>Alex Mikhailov</p><p>Built with: <a href="https://www.gnu.org/software/emacs/">GNU Emacs</a> <a href="https://orgmode.org/">Org Mode</a> <a href="https://picocss.com/">picocss</a></p></small></footer></main></body></html>
|
||||
|
4
rss.xml
4
rss.xml
@ -14,8 +14,8 @@
|
||||
<link>https://fidonode.me</link>
|
||||
<description><![CDATA[]]></description>
|
||||
<language>en</language>
|
||||
<pubDate>Wed, 26 Jun 2024 04:55:56 +0000</pubDate>
|
||||
<lastBuildDate>Wed, 26 Jun 2024 04:55:56 +0000</lastBuildDate>
|
||||
<pubDate>Thu, 27 Jun 2024 17:24:33 +0000</pubDate>
|
||||
<lastBuildDate>Thu, 27 Jun 2024 17:24:33 +0000</lastBuildDate>
|
||||
<generator>Emacs 27.1 Org-mode 9.3</generator>
|
||||
<webMaster>iam@fidonode.me (Alex M)</webMaster>
|
||||
<image>
|
||||
|
Loading…
Reference in New Issue
Block a user