Posted on :: Tags: , , , , ,

๐Ÿข 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 too much screen estate for the left bar

๐Ÿข Letโ€™s start with 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 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 how to add a syntax file to zola.

๐Ÿ‡ I added

extra_syntaxes_and_themes = ["syntaxes"]

to [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 this is 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.

๐Ÿ‡ There 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 RSS feed.

๐ŸฆŠ I found this: https://github.com/theowenyoung/mdbook-rss

๐Ÿข Now, this changes everything. We can even move 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 highlightjs support and nothing appears. I think we can just postpone until Nu has more support in 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.

๐Ÿ‡ Replaces 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 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 the plain text.

๐Ÿ‡ Now we only have only 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 apollo theme. Iโ€™m struggling to modify the index page though. I forgot that I modified the theme 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.