wp-vitepress-resources
v0.1.2
Published
Required resources for wp-vitepress-*
Readme
Overview
Generates an index page of a directory with clickable links.
Usage
- Add it to project
npm i wp-index - Apply it to any directory.
// wrules.json { "processors": { "**/": "wp-index" // applies to all directories }
Behaviour
Output location: index.html of the directory.
The index will include links to:
- All files in the directory.
- All subdirectories in the directory containing an index.html, this ensures all links in the index page links to an existing file.
Options
|Option|Type|Default|Descripiton| |---|---|---|---| |priority|number|0|write priority of the generated file| |excludes|string[]|[index.html]|list of files to exclude|
