hugo gen chromastyles
hugo gen chromastyles
为 Chroma 代码高亮器生成 CSS 样式表
概要
为给定样式的 Chroma 代码高亮器生成 CSS 样式表。如果在配置中禁用了 markup.highlight.noClasses,则需要此样式表。
请参阅 https://xyproto.github.io/splash/docs/all.html 预览可用的样式
hugo gen chromastyles [flags] [args]
选项
-h, --help chromastyles 帮助
--highlightStyle string 高亮行的前景色和背景色,例如 --highlightStyle "#fff000 bg:#000fff"
--lineNumbersInlineStyle string 内联行号的前景色和背景色,例如 --lineNumbersInlineStyle "#fff000 bg:#000fff"
--lineNumbersTableStyle string 表格行号的前景色和背景色,例如 --lineNumbersTableStyle "#fff000 bg:#000fff"
--style string 高亮器样式 (参见 https://xyproto.github.io/splash/docs/) (默认 "friendly")
从父命令继承的选项
--clock string 设置 Hugo 使用的时钟,例如 --clock 2021-11-06T22:30:00.00+09:00
--config string 配置文件 (默认为 hugo.yaml|json|toml)
--configDir string 配置文件目录 (默认为 "config")
-d, --destination string 写入文件的系统路径
-e, --environment string 构建环境
--ignoreVendorPaths string 忽略与给定 Glob 模式匹配的模块路径的任何 _vendor
--logLevel string 日志级别 (debug|info|warn|error)
--quiet 在静默模式下构建
-M, --renderToMemory 渲染到内存 (主要在运行服务器时有用)
-s, --source string 读取文件的相对系统路径
--themesDir string 主题目录的系统路径
另请参阅
- hugo gen - 生成文档和语法高亮样式