macana

Static site generator for Obsidian Vault

Commits at v0.1.0

  1. d7d072f4 Add jsdoc comments for public API Shota FUJI authored at Shota FUJI comitted at
  2. c6e88fe1 Fix build fails when document contains lowercase link references For unknown reasons, mdast-util-to-hast holds its reference ID in uppercase. Shota FUJI authored at Shota FUJI comitted at
  3. a801fbb7 Fix document tree UI shows every documents with same name being current Shota FUJI authored at Shota FUJI comitted at
  4. 31c65d56 Document embedding Shota FUJI authored at Shota FUJI comitted at
  5. c2a31c98 Fix toc can't go more than 2 level deep Shota FUJI authored at Shota FUJI comitted at
  6. c2a71556 Add more margin to headigns I felt those are too dense. Shota FUJI authored at Shota FUJI comitted at
  7. 40f7d621 Note for orphaned block identifier Are they correctly parsing Markdown?? Shota FUJI authored at Shota FUJI comitted at
  8. 4544b238 Update Roadmap Shota FUJI authored at Shota FUJI comitted at
  9. c8f5fb26 Hoist block identifer to the parent's ID If a paragraph is more than one line, UA scrolls to the bottommost line. This hides the rest of lines: which is not a user intended. Shota FUJI authored at Shota FUJI comitted at
  10. 9a0aa41c Update Roadmap Shota FUJI authored at Shota FUJI comitted at
  11. 15a35d54 Fix critical level log message and payloads are dimmed Shota FUJI authored at Shota FUJI comitted at
  12. 7e26e612 Fix block identifier cannot be detected when it's the only content on the last line Shota FUJI authored at Shota FUJI comitted at
  13. 7b3eb4cd Support link to block identifier Shota FUJI authored at Shota FUJI comitted at
  14. af93e68c OFM Block Identifier extension Shota FUJI authored at Shota FUJI comitted at
  15. b505eced Wikilink hash resolver for headings Shota FUJI authored at Shota FUJI comitted at
  16. 242529dc Add logging options for docs build script Sometime I need full debug log, sometime I only need build time stats. Or I could just want to know whether the build succeeds. Shota FUJI authored at Shota FUJI comitted at
  17. b29abcb1 Disable log color based on whether stdout is tty It was mostly for jq. But "disabling colors because output is JSON" is completely incorrect: it's assumption based on author's usage, not technical constraints. I myself too sometime want to see colored JSON output for debugging. Shota FUJI authored at Shota FUJI comitted at
  18. 52dd2476 Update roadmap I remembered the missing tasks. Shota FUJI authored at Shota FUJI comitted at
  19. 3edb4ba7 Align directory and document (tree UI) Due to documents not having padding at left, I sometime confuse that the document is at the same level to the parent directory, like this: ``` # actual + dir1 + dir2 + file1 + file2 # confused + dir1 + dir2 + file1 + file2 ``` Shota FUJI authored at Shota FUJI comitted at
  20. 1cc8ae3a Replace "Writing Samples" with "Features" "Features" is more approachable and more common. Shota FUJI authored at Shota FUJI comitted at
  21. f21848e2 Make Roadmap more concrete Shota FUJI authored at Shota FUJI comitted at
  22. 1c5f9c6d Place `<img>` as block element This is as same as Obsidian renders. Also, from my private testing, inline images work horribly. This would work "okay" in most cases. Shota FUJI authored at Shota FUJI comitted at
  23. bf4a2248 Fix document tree uses actual directory name, not metadata name The `currentPath` is from `Document.path`, which consists of metadata names. Shota FUJI authored at Shota FUJI comitted at
  24. 8bc70dc6 Highlight current page in document tree I myself sometimes confused like "wait, where am I?". I could have add more eye-candy, but this is enough. Shota FUJI authored at Shota FUJI comitted at
  25. 12634f1f Align vertical line to chevron on document directory Shota FUJI authored at Shota FUJI comitted at
  26. 47b29d02 Remove unnecessary line-height from inline elements I'm not sure the intent for those (yes, I'm the who wrote those). `<sup>` (superscript) and `<sub>` (subscript) still have `line-height`. Without this, they somehow dramatically expand the line and break the vertical rhythm. Shota FUJI authored at Shota FUJI comitted at
  27. 632084fd Delete unused style Probably related to my old blog styles. Macana does not contain `<button>`, and even if it does, styling should be done via class. Shota FUJI authored at Shota FUJI comitted at
  28. 04687860 Do not set vertical rhythm on body This has been causing a lot of problems. The most important thing here is vertical rhythm is for (usually long) textual content. In the context of documentation/blog website, contents inside `<main>`. Other parts, such as navigation and table of contents, are not suitable for vertical rhythm. Aesthetics and/or space effeciency is more important than the rhythm. Shota FUJI authored at Shota FUJI comitted at
  29. 69036d6f Dev docs for profiling I tried to optimize build process so the docs can be built under 150ms. Currently, on my M1 Mac mini, it takes 180ms~210ms. I think it's too much for just 16 documents. I'm not good at profiling or optimization or whatever. I suck at looking at profiling result. What the fuck is bottom-up? But I have to profile in order to optimize further more. Luckily, Deno/V8's profiler is easy to use and call tree representation is intuitive even for beginers like me. Unfortunately, most of the process time is from third-party libraries. The most time consuming one was refractor (syntax highlighting) and the second was hast-util-to-html or mdast-from-markdown (or inner micromark). All of those are reasonable: refractor's "all" entrypoint (I willingfully choose this) contains every language syntax, thus it takes a lot of time loading and registering syntaxes. Seriealizing HTML and parsing Markdown are, well, time-consuming considering they are written in JavaScript, which is difficult to write performant string ops (esp. spatial efficiency). In its current form, the most impactful performance optimization I can think of is not emitting embed page until required. In order to do that, I have to make significant changes to how page builder handles build queue (or make one). While I found out there are no low-haning fruit for temporal optimization, I believe an experience and knowledge I gained from this should be noted and shared anyhow. So here it is. Shota FUJI authored at Shota FUJI comitted at
  30. 8243be61 Layout properly The whole styles are copy and pasted from my old blog. This patch tidies things up. There still needs some maintenance, such as color tokens and line-height, I think this is okay-ish to commit. Shota FUJI authored at Shota FUJI comitted at