Skip to content

Commit

Permalink
book: add requirements in README.md
Browse files Browse the repository at this point in the history
Replace `Makefile` with `justfile`
  • Loading branch information
yukibtc committed Jan 16, 2024
1 parent ff89f77 commit 6d3fcda
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion book/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
book
book/
9 changes: 0 additions & 9 deletions book/Makefile

This file was deleted.

14 changes: 12 additions & 2 deletions book/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@

## Developers

### Requirements

* [Just](https://github.com/casey/just): install with `cargo install just`

Init

```bash
make init
just init
```

You can serve the site with:

```bash
make serve
just serve
```

To test all the snippets:

```bash
just test
```
1 change: 0 additions & 1 deletion book/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ preferred-dark-theme = "ayu"
additional-js = ["./tabs.js"]
additional-css = ["./mdbook-admonish.css"]
git-repository-url = "https://github.com/rust-nostr/nostr"
edit-url-template = "https://github.com/rust-nostr/nostr/edit/master/{path}"

[preprocessor]

Expand Down
10 changes: 10 additions & 0 deletions book/justfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
init:
cargo install mdbook --version 0.4.36
cargo install mdbook-admonish --version 1.15.0

build:
mdbook build

serve:
mdbook serve

test:
cd snippets && just test

0 comments on commit 6d3fcda

Please sign in to comment.