š¦ Asset Pipeline
Rotkeeperās asset pipeline governs how static files are copied,
versioned, and injected into the tomb environment. It also defines how
asset-meta tags are tracked and maintained throughout the
build cycle.
š Asset Sources
Assets are typically sourced from:
home/assets/
home/themes/
home/icons/
These folders are expected to exist prior to running
rc-assets.sh and are recursively scanned.
š Copy Mechanisms
The primary tool for copying assets is rc-assets.sh
(formerly ASSETELLA). It handles:
- Recursively copying from declared source folders
- Maintaining folder structure
- Logging each copied file into
bones/manifest.txt - Ensuring injected assets are recorded with
asset-meta
You can run it standalone or via the main CLI:
./rotkeeper assetsOr directly:
./scripts/rc-assets.shš asset-meta Headers
Every tracked script, template, or asset should include an
asset-meta: header ā either as shell comment, HTML
comment, or YAML frontmatter. These tags are required for changelog
visibility and audit inclusion:
# --- asset-meta ---
# file: scripts/rc-render.sh
# version: 0.1.2
# tomb-version: 0.1.7.5
# tracked: true
# injected: 2025-05-12
# --- end-meta ---These tags allow rc-scan.sh and
rc-bless.sh to:
- Detect stale, duplicated, or unversioned assets
- Validate integrity during packing
- Confirm changelog eligibility
š Folders Typically Managed
| Folder | Description |
|---|---|
scripts/ |
Core and auxiliary rc-* scripts |
templates/ |
HTML and partials for rendering |
assets/ |
Static files like CSS, JS, fonts |
themes/ |
Theme folders (e.g.Ā HiQ) |
icons/ |
SVG or emoji sets (e.g.Ā OpenMoji) |
ā ļø Notes on Pipeline Behavior
- The pipeline does not deduplicateāitās your job to manage redundant files
- Files without
asset-metamay be ignored byrc-bless.sh - If a file is missing from
bones/manifest.txt, it wonāt be packed - Use
rc-scan.shto validate whatās missing or untracked
š§Ŗ Example Flow
./rotkeeper init # creates structure
./rotkeeper assets # injects static files
./rotkeeper render # builds output
./rotkeeper pack # archives everything in manifest.txtContinue to Template Library Back to Configuration Reference