Home Back

ks-99-under-the-hood.md

What's under the hood?

This shows how Jinja2-based static builds are used to turn folders into structured logic sites.

K-Site is a zero-GUI transformation engine that converts any folder into a static, navigable HTML site.
No servers. No frameworks. No runtime dependency chain.
Deploys as a .zip from a repo - or as a desktop app for one-click local builds.


Core Process


Execution Flow

  1. Folder scan
    Each subfolder is walked recursively. Logic skips ignored folders by YAML config.

  2. Content classification

  3. .md, .txt, .csv, .json, .py → rendered with viewer.html
  4. Images → copied directly
  5. Other files → either skipped or zipped (configurable)

  6. Viewer generation
    Rendered HTML is injected with a viewer.html template, embedding content and safe download links.

  7. Subfolder index.html build
    Each folder gets its own index with file links, built from the list of generated items.

  8. Root index.html (landing)
    Generated from README.md with markdown-to-HTML conversion. Injected into a stripped landing template.

  9. Static variant (index_static.html)
    Optionally generated as a no-script fallback using the same file map, minus JS logic.

  10. Packaging
    Entire docs/ is zipped into a standalone site bundle.


K-Site is meant to ship offline.
No runtime, no build chain, no NPM, no Docker, no bullshit.

Just Python + Jinja + a structured mind.

-- Kay

`#ksite #aiposbuilt #foldertransformationengine #fromukrainianswithlovetohumankind 🇺🇦`
Download Raw File
Home Back