How Documentation Sites Grew a Browser Runtime
Early static documentation tools treated a directory of plain-text files as source code and compiled it into finished HTML that an HTTP daemon could transmit unchanged. A sysadmin or packager ran a build command, collected a clean tree of markup and stylesheets, and placed those files onto a file server or directly into a system package. What arrived in the browser was already complete.
That baseline shifted when component frameworks became the default authoring model for web properties. Documentation generators built around React, such as Gatsby and Next.js, or Vue, such as VuePress and Nuxt, began compiling prose into a dual payload. Alongside the pre-rendered HTML, these toolchains ship a client-side JavaScript bundle designed to execute immediately after the document loads. Once the browser parses the initial markup, that script runs a process called hydration: it boots the underlying application framework, reconstructs a virtual component tree in memory, and attaches synthetic event listeners to DOM nodes that already exist on the screen.
For reference manuals, packaging policies, and release notes whose content is already fixed at build time, attaching React or Vue hydration spends the exact advantage static HTML was built to provide.
Teams frequently slip into this architecture by proximity. Because developers write application interfaces in React or Vue elsewhere in the organization, they select Next.js, Nuxt, Gatsby, or VuePress for a plain documentation portal to share component syntax. That choice quietly turns immutable reference text into a distributed client application. Every page load carries three compounding liabilities: an expanded dependency closure in the build environment, pipeline fragility whenever upstream JavaScript packages shift, and persistent browser memory consumption on a page that never mutates after delivery.
A Hydration Runtime Is Another Package in the Graph
Evaluating a documentation pipeline calls for the same dependency discipline a distribution maintainer applies when inspecting Depends or Requires fields in a package manifest. Publishing a tree of manual pages once demanded a single compiler binary and a folder of templates. Introducing a hydrated framework pulls a Node runtime, a module bundler, React or Vue libraries, hundreds of transitive JavaScript modules, and a massive lockfile into the build closure just to emit text that does not change.
Even after that oversized build toolchain finishes executing, the output remains a static directory tree of HTML, CSS, and assets. Yet a hydrated build injects a full client framework into the published artifact itself. The production web server never executes that code, and the reader's browser has no operational need for it to render paragraphs, tables, or configuration blocks.
To keep the documentation pipeline lean, apply the same refusal used when assembling a minimal system image or container base. A packager would never allow a package manifest to pull an entire graphical desktop session into a headless server image just to display a man page. Shipping a client-side application runtime inside a content pipeline repeats that exact packaging error inside the browser.
Auditing the Build and Serving Closure
A direct audit exposes where application weight has leaked into a content repository:
- Inventory every binary, runtime, and transitive library installed on the continuous integration host solely to compile the documentation tree.
- Compare that build footprint against what the target host actually needs to serve the compiled directory over HTTP or install it under
/usr/share/doc. - Inspect the emitted output folder for hashed JavaScript bundles, framework runtime chunks, and JSON payload duplicates of the HTML prose.
The audit passes when the target host serves the manual from a plain file tree with no Node runtime present, and the build host generates that tree through a single-binary compiler or standard distribution package without resolving a JavaScript framework graph.
When a Framework Release Breaks the Docs Build
A one-line patch fixing a mistyped command flag, adding a package note, or recording a desktop environment setting fails in continuous integration before the HTML is ever written. The prose contains no syntax errors. Instead, the build halts because a transitive peer dependency conflict, a bundler configuration deprecation, or a Node version pin in the documentation repository's lockfile drifted out of alignment.
Coupling static manuals to a JavaScript framework binds the publishing of reference text to an application release lifecycle. Upstream framework majors, bundler plugin updates, and security warnings in deep npm dependency trees force maintainers to debug JavaScript build mechanics before a simple correction can reach users. Reference prose should never wait on a client framework upgrade train.
Pipeline Coupling Threshold: Treat any continuous integration failure triggered by a bundler, lockfile, or client framework rather than the documentation markup itself as the signal to drop the JavaScript runtime from the pipeline.
A common misstep is nursing a swollen continuous integration container image loaded with pinned Node toolchains and cached module directories just to keep a documentation site compiling. That workaround preserves an unnecessary maintenance and security surface. Contrast that fragility with a documentation generator shipped as a single compiled binary and managed like any other build tool in the distribution repository. A self-contained binary fails only in ways a packager already gates: an explicit version bump in a system package, a deterministic rebuild, and predictable output written as plain files under a target documentation path.
Memory Cost on the Machine That Only Needed a Page
When a web browser receives a true static HTML document, its engine parses the markup and stylesheets, calculates the layout geometry, paints the text to the viewport, and goes idle. When that same browser loads a hydrated documentation page, finishing the HTML and CSS layout is only the opening phase. The engine immediately downloads, parses, and executes a JavaScript bundle to boot a virtual component tree, initialize a synthetic event system, and mount a client-side router. The text on the screen never changes, yet the application instance stays resident in RAM for the life of the tab.
In qualitative terms, a plain static document costs the browser's baseline HTML and CSS handling, whereas a hydrated document pays that exact baseline cost plus the resident overhead of a second running application.
Authors often miss this penalty because documentation portals are typically styled and verified on developer workstations equipped with abundant memory. The machines where operators actually consult system documentation look very different:
- Admin workstations running multiple remote sessions and monitoring dashboards simultaneously.
- Jump hosts and bastion boxes with strictly capped memory allocations.
- Low-spec lab hardware or virtual machines where an engineer keeps a browser window open directly beside a desktop environment under test.
Reference manuals covering package formats, lifecycle policies, and desktop configuration must remain completely readable and navigable with browser scripting disabled. More importantly, opening three or four reference tabs on a testbench must not steal resident memory from the desktop session or packaging workload being evaluated.
Choose a Generator by the Artifact It Installs
Selecting a documentation toolchain follows the same decision framework as choosing a Linux package format: examine the final installed artifact, trace its runtime dependency closure, and verify how upgrades land on a target system. The artifact worth deploying is a clean directory tree of HTML, CSS, and static assets that a plain HTTP server can serve directly or a packager can bundle into a system -doc package for offline reading.
Proven toolchains already satisfy this requirement without pulling a browser runtime into the output:
- Hugo or Zola: Well suited when the source tree is written in Markdown and the build environment calls for a single compiled binary that emits finished HTML directly.
- Sphinx or MkDocs: Strong fits when a project already maintains reStructuredText or Markdown manuals and pairs the generator with a clean, non-hydrating theme.
- Eleventy: Viable when a team requires template flexibility and configures the pipeline strictly to emit plain HTML without attaching a client framework.
Selecting a generator capable of plain file output is only half the gate; many community starter templates and themes still inject a client router or boot a React or Vue virtual component tree on documentation routes, which immediately fails disabled-JavaScript and low-spec testbench memory checks. Only documentation pages that embed live browser-executed code sandboxes or interactive API consoles genuinely require client-side scripting for those specific active widgets, and even then the surrounding prose routes require no full-page framework hydration.
Pre-Adoption Acceptance Checks
Before committing a repository to any generator or theme, run four verification steps against a sample build:
# Inspect the compiled output directory for unexpected framework bundles
find ./public -type f \( -name "*.js" -o -name "*.mjs" \)
# Serve the artifact locally using a plain HTTP socket with no Node runtime
python3 -m http.server --directory ./public 8080
- Disable JavaScript entirely in the test browser and confirm every page, sidebar link, and table of contents renders and navigates cleanly.
- Verify that the production or staging host serving the documentation tree has no Node runtime installed.
- Apply a single-line prose edit and confirm the project rebuilds cleanly without touching a lockfile or upgrading a framework dependency.
- Copy the compiled output tree into a standard local path such as
/usr/share/doc/project-manual/htmland verify that internal links resolve when opened directly from disk or through a local web server.
What the Next Docs Rebuild Should Omit
Stripping hydration out of a documentation pipeline does not require halting daily engineering work to schedule a multi-quarter architectural migration. Treating the shift as a grand rebuild project is a common trap that leaves fragile JavaScript lockfiles sitting in production repositories far longer than necessary.
The decision point arrives naturally with the very next content patch. That patch might be a corrected command argument, a warning about a package format change, or a tweak to a desktop configuration file. When that single diff is ready to commit, apply one structural test: once the build tool writes the updated HTML file to disk, is the documentation change complete?
When a prose edit is whole the moment the file is written, a browser runtime has no remaining work to perform on that route. If the next paragraph can be published and read as a plain file, what justification remains for attaching a client runtime to it?