generator
Technical notes on web development, DevOps, and AI integration.
5 articles
- 21:12frontend
Manual Sidebar by Domain: One Block, Five Owners, Five Sections
A generated admin manual mixed eight modules from five domains into one sidebar block. The fix: split along the ownership map and bound each group visually.
TL;DR: The admin manual sidebar lumped modules from five different domains into one block, so staff couldn't find their section. Splitting navigation by domain using the admin panel's existing ownership map as the source of truth made grouping match how readers think. Adding labels and borders follows common-region and accessibility principles so each group is visually clear.
#documentation#generator#information-architecture - 20:13frontend
Sidebar Icons from lucide-react Geometry, Extracted at Build Time
Twenty-seven manual sidebar icons drawn from real lucide-react geometry extracted at build time: inline SVG, zero runtime, theme-aware color.
TL;DR: The article explains how Lucide icons are geometry data tuples rather than images, letting a static manual generator extract and inline them as SVGs without React dependencies. By reading directly from lucide-react at build time and wrapping tuples in a standard SVG shell, the manual gets identical icons with currentColor theming and zero runtime overhead. A fallback bucket ensures no navigation links disappear silently when the source layout changes.
#lucide#svg#javascript - 19:39backend
The PDF Travels With Its Page, the Link Does Not Wander
A ../../../ link out of a generated docs folder is valid while the tree is whole, and dead the moment the folder is handed over. The PDF now moves with it.
TL;DR: A relative link that navigates up the directory tree breaks the moment the docs folder gets handed off as a standalone package. The fix copies PDFs next to their referencing pages so each folder becomes a self-contained unit with working internal links. Failing loudly on missing files prevents shipping broken artifacts, and a simple folder-relocation test catches any remaining dependency issues.
#nodejs#javascript#documentation - 18:06backend
Official Docs Drift, the Generator Fails Loud
When a documentation generator ingests reports it does not own, tolerant parsing ships truncated pages. Explicit markers plus a throw keep drift visible.
TL;DR: When a report team's HTML restructure broke the generator's extraction markers, the author chose fail-fast over tolerant parsing, because catching and skipping just turns failure into silence. Now missing markers or media halt the build with clear errors. Official documents also get top sidebar placement, backed by eyetracking data on above-the-fold attention.
#nodejs#documentation#generator - 17:54frontend
Menu Toggle Did Nothing: The One-Attribute defer Fix
Tap the hamburger, nothing happens, console clean: the click bindings ran before the DOM existed. The fix is one attribute on the script tag.
TL;DR: On first deploy, the mobile drawer's hamburger button was dead, with no console errors to hint why. The culprit: app.js ran from head before body elements existed, so null guards silently skipped the bindings. Adding defer to the script tag in the generator template fixed every page after one rebuild.
#javascript#css#documentation