mirror of
https://github.com/quartz-community/darkmode.git
synced 2026-07-22 02:50:22 +00:00
docs: update README for v5 unified config system
This commit is contained in:
parent
56fcd95ba7
commit
8c56820610
1 changed files with 9 additions and 7 deletions
16
README.md
16
README.md
|
|
@ -10,12 +10,14 @@ npx quartz plugin add github:quartz-community/darkmode
|
|||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
// quartz.layout.ts
|
||||
import * as Plugin from "./.quartz/plugins";
|
||||
|
||||
// Add to your layout
|
||||
Plugin.Darkmode(); // in the appropriate layout section
|
||||
```yaml title="quartz.config.yaml"
|
||||
plugins:
|
||||
- source: github:quartz-community/darkmode
|
||||
enabled: true
|
||||
layout:
|
||||
position: left
|
||||
priority: 30
|
||||
group: toolbar
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
|
@ -24,7 +26,7 @@ This plugin has no configuration options.
|
|||
|
||||
## Documentation
|
||||
|
||||
See the [Quartz documentation](https://quartz.jzhao.xyz/) for more information.
|
||||
See the [Quartz documentation](https://quartz.jzhao.xyz/features/darkmode) for more information.
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue