slides-nix-nl/README.md
2025-06-25 20:52:50 +02:00

37 lines
730 B
Markdown

# fediversity slides
## usage
### using nix
To install the needed library [marp](https://marp.app/), enter the development environment with [`nix-shell`](https://nixos.org/).
If you want to do that automatically on entering this directory:
- [Set up `direnv`](https://github.com/nix-community/nix-direnv#installation)
- Run `direnv allow` in the directory where repository is stored on your machine
Then, compile the slides:
```sh
marp -I .
```
... then open the resulting `.html` file in your browser.
To automatically rebuild on changes, use:
```sh
watchexec -w ./. -- marp -I .
```
### without nix
requires:
- [Node.js](https://nodejs.org/)
- [Yarn](https://yarnpkg.com/)
```sh
$ yarn install
$ yarn marp -I .
```