Steward V3.5.3 正式版发布 -- wsm install / wsm create 管理 websites 配置
更新说明
新增 wsm
命令
wsm install
安装配置wsm uninstall
卸载配置wsm create
– 在页面模式下,创建当前站点的配置
贡献 website 配置 website 配置数据结构
{
"author": "solobat", // required
"version": 1, // required
"host": "sspai.com", // required
"icon": "https://cdn.sspai.com/sspai/assets/img/favicon/icon.ico",
// Specify the area to extract the outline
"outlineScope": ".article-content", // [jquery] css selector
// Generate navigations
"navs": "nav a", // [jquery] css selecotr
// Supplement to `navs`
"paths": [
{
"title": "首页",
"urlPattern": "/" // path
},
{
"title": "个人主页",
"urlPattern": "/user/784469/posts"
}
],
"title": "少数派"
},
将配置添加到 Steward Websites 仓库 根目录下的 data.json 文件中即可
website path 新增变量支持
变量格式: {{variable}}
鉴于此功能的增加,扩展自带的 Github / 知乎 website 配置将被移除,请使用 wsm install
查看并下载
页面模式 outline 优化 自动定位 outline 位置