@11in/scribe 中文文档教程
Scribe
这是用于在 11ty 网站中写作的工具集合。 这是一个自以为是的集合,虽然它 提供自定义零件的选项,它不允许您转动以下零件: 这有点全有或全无。 不过,它主要是现有插件的包 + 一些小工具,所以如果你真的 只想要其中的一部分,您可以将那部分拉出并使用您需要的东西。
Installing
首先,您必须安装软件包:
$ npm i @11in/scribe
将插件添加到您的 11ty 项目中。 如果您使用的是 Elfin,您只需将它添加到您的 11ty/plugins/loader.js
中:
module.exports = conf => {
conf.addPlugin(require('@11in/scribe'))
}
就是这样!
Features & Usage
有关如何使用和自定义 Scribe 的更多详细信息,请参阅文档。
Scribe
This is a collection of tools for doing writing in an 11ty website. It is an opinionated collection, and while it offers the option to customize parts it doesn't allow you to turn parts of: It's kind of all or nothing. Still, it's mostly a package for existing plugins + a few small tools, so if you really want only part of it you can just pull that part out and use what you need.
Installing
First, you have to install the package:
$ npm i @11in/scribe
Add the plugin to your 11ty project. If you're using Elfin you can just add it to your 11ty/plugins/loader.js
:
module.exports = conf => {
conf.addPlugin(require('@11in/scribe'))
}
That's it!
Features & Usage
For more details on how to use and customize Scribe, see the documentation.