macana

Static site generator for Obsidian Vault

Commits at v0.2.0

  1. f39cd4b4 Client-side script to close menu on navigation (back/forward) On menu-layout, navigating back/forward is confusing due to menu appears after the navigation. Shota FUJI authored at Shota FUJI comitted at
  2. 76923e83 Minify CSS Before: raw=16kB, gzip=3.63kB After: raw=12.44kB, gzip=3.27kB Added build time (Mac mini M1): 15ms~25ms To be honest, I don't think this compression result is not worth the added build time. However, the reduced 3.5kB could reduce consuming memory and CPU times... few micro seconds? I commit this since the journey to find a CSS minify library that was compatible with Deno is extremely tiresome... * `cssnano` imports `caniuse` even though related optimizations are disabled. It statically loads the module hence the access to `<CWD>` (and probably more places like `~/.config` idk), which requires completely unnecessary broad permissions. * `esbuild` is simple and great tool, but WASM is second-class citizen in Deno: requires `--allow-net=deno.land` (or `esm.sh`) or `--allow-read=<vendored path>`. One can embed WASM binary as a base64 or `JSON.parse("Uint8Array")`, but WASM binary of ESBuild weighs 30MB. I tried to open the generated file using the latter method and my nvim froze for minutes, which I had to `kill`. * `lightningcss` looks great, but this is WASM too and weighs 10MB. Better than ESBuild though. * `clean-css` declares itself as in maintenance mode. I tested it but it loads environment variables at init time and access to `cwd`. In the end, CSSO is the only ESM compatible library that works on web platform. Shota FUJI authored at Shota FUJI comitted at
  3. 02d08425 Update Roadmap Shota FUJI authored at Shota FUJI comitted at
  4. 958d71d0 Remember document tree's open state for browsing session This has been so inconvenient. Shota FUJI authored at Shota FUJI comitted at
  5. bf18cea2 Setup GitHub Issue forms I'm not willing to be bothered by low-effort "issues". Shota FUJI authored at Shota FUJI comitted at
  6. b74d7aa4 Usage document Shota FUJI authored at Shota FUJI comitted at
  7. d7d072f4 Add jsdoc comments for public API Shota FUJI authored at Shota FUJI comitted at
  8. 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
  9. a801fbb7 Fix document tree UI shows every documents with same name being current Shota FUJI authored at Shota FUJI comitted at
  10. 31c65d56 Document embedding Shota FUJI authored at Shota FUJI comitted at
  11. c2a31c98 Fix toc can't go more than 2 level deep Shota FUJI authored at Shota FUJI comitted at
  12. c2a71556 Add more margin to headigns I felt those are too dense. Shota FUJI authored at Shota FUJI comitted at
  13. 40f7d621 Note for orphaned block identifier Are they correctly parsing Markdown?? Shota FUJI authored at Shota FUJI comitted at
  14. 4544b238 Update Roadmap Shota FUJI authored at Shota FUJI comitted at
  15. 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
  16. 9a0aa41c Update Roadmap Shota FUJI authored at Shota FUJI comitted at
  17. 15a35d54 Fix critical level log message and payloads are dimmed Shota FUJI authored at Shota FUJI comitted at
  18. 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
  19. 7b3eb4cd Support link to block identifier Shota FUJI authored at Shota FUJI comitted at
  20. af93e68c OFM Block Identifier extension Shota FUJI authored at Shota FUJI comitted at
  21. b505eced Wikilink hash resolver for headings Shota FUJI authored at Shota FUJI comitted at
  22. 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
  23. 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
  24. 52dd2476 Update roadmap I remembered the missing tasks. Shota FUJI authored at Shota FUJI comitted at
  25. 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
  26. 1cc8ae3a Replace "Writing Samples" with "Features" "Features" is more approachable and more common. Shota FUJI authored at Shota FUJI comitted at
  27. f21848e2 Make Roadmap more concrete Shota FUJI authored at Shota FUJI comitted at
  28. 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
  29. 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
  30. 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