chore: clarify installation
This commit is contained in:
parent
c557c2f950
commit
9dc6780dea
10
README.md
10
README.md
|
@ -4,8 +4,14 @@ This addons provides a `Sources` and `Source` component to show sources.
|
|||
|
||||
## Setup
|
||||
|
||||
1. Create a `bibliography.json` file in the root of your slidev presentation with an empty object (`{}`).
|
||||
2. Create a `setup/main.ts` file with the following contents:
|
||||
1. Install the addon with your favorite package manager
|
||||
2. Add it in your frontmatter:
|
||||
```
|
||||
addons:
|
||||
- slidev-addon-bibliography
|
||||
```
|
||||
3. Create a `bibliography.json` file in the root of your slidev presentation with an empty object (`{}`).
|
||||
4. Create a `setup/main.ts` file with the following contents:
|
||||
```ts
|
||||
import { defineAppSetup } from '@slidev/types'
|
||||
import Bibliography from '../bibliography.json'
|
||||
|
|
Loading…
Reference in New Issue