highlight-gen

command
v1.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

highlight-gen produces the build-time shiki cache (CREATE_1TO1_PLAN 2f): it crawls every sitemap URL of a running docs server (which must have the node shiki service and HIGHLIGHT_DUMP=1), so every page renders once and fills the in-memory highlight cache, then fetches the hashed dump from /debug/highlight-cache and writes it gzipped. The production image loads that file instead of running the node service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL