Skip to content

Commit

Permalink
Improved configuration instructions, closes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Nov 28, 2020
1 parent de94fc4 commit 16601d8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ The `rg` executable needs to be installed such that it can be run by this tool.

## Usage

This plugin requires configuration: it needs to a `path` setting so that it knows where to run searches:
This plugin requires configuration: it needs to a `path` setting so that it knows where to run searches.

Create a `metadata.json` file that looks like this:

```json
{
Expand All @@ -33,9 +35,9 @@ This plugin requires configuration: it needs to a `path` setting so that it know
}
```

The plugin will add an interface at `/-/ripgrep` for running searches.
Now run Datasette using `datasette -m metadata.json`. The plugin will add an interface at `/-/ripgrep` for running searches.

## Configuration
## Plugin configuration

The `"path"` configuration is required. Optional extra configuration options are:

Expand Down

0 comments on commit 16601d8

Please sign in to comment.