sventec
2024-03-04 bd05950c2db1335b68c8e1701385219e681a4241
fix(docs): correct ExplicitPublish as filters instead of transformers (#953)

2 files modified
6 ■■■■ changed files
docs/configuration.md 4 ●●●● patch | view | raw | blame | history
docs/plugins/ExplicitPublish.md 2 ●●● patch | view | raw | blame | history
docs/configuration.md
@@ -73,10 +73,10 @@
> [!note]
> Each node is modified by every transformer _in order_. Some transformers are position sensitive, so you may need to pay particular attention to whether they need to come before or after certain other plugins.
You should take care to add the plugin to the right entry corresponding to its plugin type. For example, to add the [[ExplicitPublish]] plugin (a [[tags/plugin/transformer|Transformer]], you would add the following line:
You should take care to add the plugin to the right entry corresponding to its plugin type. For example, to add the [[ExplicitPublish]] plugin (a [[tags/plugin/filter|Filter]]), you would add the following line:
```ts title="quartz.config.ts"
transformers: [
filters: [
  ...
  Plugin.ExplicitPublish(),
  ...
docs/plugins/ExplicitPublish.md
@@ -13,6 +13,6 @@
## API
- Category: Emitter
- Category: Filter
- Function name: `Plugin.ExplicitPublish()`.
- Source: [`quartz/plugins/filters/explicit.ts`](https://github.com/jackyzha0/quartz/blob/v4/quartz/plugins/filters/explicit.ts).