🐢 We need to find a theme for the blog. The current one breaks Nushell output tables because the code blocks are too narrow.

🐇 https://www.getzola.org/themes/pico/ is an option, but I don’t like its header.

🦊 Minimal Dark from the same author looks better: https://kuznetsov17.github.io/minimal-dark/notes/note1/

🐇 https://www.getzola.org/themes/no-style-please/ is also an option.

🦊 https://halve-z.netlify.app/posts/information/ looks interesting, but there is too much screen estate for the left bar.

🐢 Let’s start by running the site locally first.

🐇 There are errors in the configuration. That’s weird, but let’s fix these.

🐢 Fixed errors. These are probably related to a newer version. Can we take a look at netlify.toml to see if it downloads the same version?

🐇 There are breaking changes in Zola 0.19. Let’s update and push the Netlify config to see the results.

🐢 We need to add language support for Nushell to prevent warnings. Take a look at how to add a syntax file to Zola.

🐇 I added

extra_syntaxes_and_themes = ["syntaxes"]

to the [markdown] section and added a syntaxes/nushell.sublime-syntax file copied from https://github.com/kurokirasama/nushell_sublime_syntax. I’m getting:

Error: Reason: Error while compiling regex '\b(?x: 7z | ?
...
s-to-gdrive | usage | ver | verify | weather | wget-all | which-cd | wifi-info | wifi-pass | xls2csv | ydx | yt-api | ytcli | ytm | z | zi)\b'
Oniguruma error: target of repeat operator is not specified

🐢 The syntax highlighter may be a bit buggy. Let’s try to fix this if it’s a one-off.

🐇 Found the bug. There is a ? in the regex that causes it to fail. Now it compiles, and Nushell blocks are colored.

🐢 Cool. Let’s fix the other warnings now. shell and console are not recognized, it looks like.

🐇 There is only Bash listed in https://www.getzola.org/documentation/content/syntax-highlighting/.

🦁 What do you think about migrating to mdBook? We already maintain mdBook for XVC; what about just moving the site to mdBook?

🐢 I thought about this before, and the only downside is the lack of an RSS feed.

🦊 I found this: https://github.com/theowenyoung/mdbook-rss

🐢 Now, this changes everything. We can even move the nedriy.at site to mdBook in this case.

🐇 Then, let’s start working on this. The site will be a technical book site in this case.

🐢 Does mdBook support Nushell syntax?

🐇 Nushell is not in the listed languages. mdBook uses highlight.js, and in its listed languages, we don’t find Nu either.

🐢 We already added Nu support to Zola, and we can just change the theme. This is a blocker in my opinion.

🐇 I searched for Nushell highlight.js support, and nothing appears. I think we can just postpone until Nu has more support on this front.

🐢 Yes. Let’s first try this change in the non-technical blog, and we can come back to this issue. Now, we’ll update console and shell to bash, I think.

🐇 Replaced shell and console with bash.

🐢 There is a file for ggplot that has warnings from earlier incarnations. We also lack syntax highlighters for Vim and Tmux.

🐇 There is a sublime-syntax file for Tmux at https://raw.githubusercontent.com/gerardroche/sublime-tmux/refs/heads/master/Tmux.sublime-syntax, but do we need it for a single file?

🐢 Let’s set it to plain text.

🐇 Now we only have Mermaid warnings left.

🐢 There should be a diagram at https://emresahin.net/developing-a-gitignore-crate/, but it doesn’t show up. We need a shortcode to show these, like the YouTube shortcode. Now let’s get back to theme selection.

🐇 I tested Karzok, but it doesn’t have category and tags support.

🐢 And I tested https://github.com/micahkepe/radion, but the best so far is the apollo theme. I’m struggling to modify the index page, though. I forgot that I modified the theme’s index.html file. I have content in /content/_index.md and a modified index.html in /themes/anemone/templates/index.html to show the content, tags, categories, etc. It should be fixed now.

🐇 Ah, cool. Can we clean the recent duplicate pages now?

🐢 Yeah, let’s take a look.