← 返回命令列表

Linux command

soupault 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Build site

soupault

Build with config

soupault --config [soupault.toml]

Force rebuild

soupault --force

Verbose output

soupault --verbose

Show version

soupault --version

Init project

soupault --init

说明

soupault is a static site generator and HTML processor that works directly with HTML files rather than using a template language. It takes plain HTML as input, manipulates the DOM tree using CSS selectors, and outputs modified HTML, making it compatible with any existing HTML content. The tool uses a widget system configured in TOML to perform transformations like inserting content into pages, generating tables of contents, and adding metadata. Custom widgets can be written in Lua for project-specific processing needs. Unlike most static site generators, soupault makes no assumptions about site structure or content format. It can process existing HTML sites without conversion, making it suitable for both new projects and migrating legacy websites.

参数

--config _FILE_
Config file path.
--force
Force rebuild all.
--verbose
Verbose output.
--init
Initialize project.
--site-dir _DIR_
Site directory.
--build-dir _DIR_
Output directory.

FAQ

What is the soupault command used for?

soupault is a static site generator and HTML processor that works directly with HTML files rather than using a template language. It takes plain HTML as input, manipulates the DOM tree using CSS selectors, and outputs modified HTML, making it compatible with any existing HTML content. The tool uses a widget system configured in TOML to perform transformations like inserting content into pages, generating tables of contents, and adding metadata. Custom widgets can be written in Lua for project-specific processing needs. Unlike most static site generators, soupault makes no assumptions about site structure or content format. It can process existing HTML sites without conversion, making it suitable for both new projects and migrating legacy websites.

How do I run a basic soupault example?

Run `soupault` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --config _FILE_ do in soupault?

Config file path.