Skip to content

Commit e28cada

Browse files
committed
Flesh out TOC
1 parent b884444 commit e28cada

File tree

8 files changed

+49
-13
lines changed

8 files changed

+49
-13
lines changed

README.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
1-
# Deno based bids-validator
1+
# The BIDS Validator
22

3-
## Intro
3+
The BIDS Validator is a web application, command-line utility,
4+
and Javascript/Typescript library for assessing compliance with the
5+
[Brain Imaging Data Structure][BIDS] standard.
46

5-
This is a full rewrite of the bids-validator JavaScript implementation designed to use the [bids-specification schema](https://github.com/bids-standard/bids-specification/tree/master/src/schema) to apply the majority of validation rules.
7+
## Getting Started
68

7-
Deno is a JavaScript and TypeScript runtime that is used to run the schema based validator. Deno is simpler than Node.js and only requires one tool to use, the Deno executable itself. To install Deno, follow these [install instructions for your platform](https://deno.land/manual/getting_started/installation).
9+
In most cases,
10+
the simplest way to use the validator is to browse to the [BIDS Validator][] web page:
811

9-
## Usage
12+
![The web interface to the BIDS Validator with the "Select Dataset Files" button highlighted.
13+
(Dark theme)](_static/web_entrypoint_dark.png){.only-dark width="50%" align=center}
14+
![The web interface to the BIDS Validator with the "Select Dataset Files" button highlighted.
15+
(Light theme)](_static/web_entrypoint_light.png){.only-light width="50%" align=center}
1016

11-
To use the latest validator hosted at https://deno.land/x/bids_validator, use the following command:
17+
The web validator runs in-browser, and does not transfer data to any remote server.
1218

13-
```console
14-
$ deno run --allow-read --allow-env https://deno.land/x/bids_validator/bids-validator.ts path/to/dataset
19+
In some contexts, such as when working on a remote server,
20+
it may be easier to use the command-line.
21+
The BIDS Validator can be run with the [Deno] runtime
22+
(see [Deno - Installation][] for detailed installation instructions):
23+
24+
```shell
25+
deno run -ERN jsr:@bids/validator
1526
```
1627

17-
Deno by default sandboxes applications like a web browser. `--allow-read` allows the validator to read local files, and `--allow-env` enables OS-specific features.
28+
Deno by default sandboxes applications like a web browser.
29+
`-E`, `-R` and `-N` allow the validator to read environment variables,
30+
local files, and network locations.
1831

1932
### Configuration file
2033

docs/dev/contributing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.github/CONTRIBUTING.md

docs/dev/environment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Development environment

docs/dev/using-the-api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Using the API

docs/index.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ the simplest way to use the validator is to browse to the [BIDS Validator][] web
1717
The web validator runs in-browser, and does not transfer data to any remote server.
1818

1919
In some contexts, such as when working on a remote server,
20-
it may be easier to use the command-line.
20+
it may be easier to use the command-line.
2121
The BIDS Validator can be run with the [Deno] runtime
2222
(see [Deno - Installation][] for detailed installation instructions):
2323

@@ -26,12 +26,29 @@ deno run -A jsr:@bids/validator
2626
```
2727

2828
```{toctree}
29-
:maxdepth: 2
30-
:caption: Contents:
29+
:hidden:
30+
:caption: User guide
3131
32-
API Reference <https://jsr.io/@bids/validator/doc>
32+
user_guide/web.md
33+
user_guide/command-line.md
34+
user_guide/issues.md
35+
```
36+
37+
```{toctree}
38+
:hidden:
39+
:caption: Developer guide
40+
41+
dev/using-the-api.md
42+
dev/contributing.md
43+
dev/environment.md
3344
```
3445

46+
```{toctree}
47+
:hidden:
48+
:caption: Reference
49+
50+
API Reference <https://jsr.io/@bids/validator/doc>
51+
```
3552

3653
[BIDS]: https://bids.neuroimaging.io
3754
[BIDS Validator]: https://bids-standard.github.io/bids-validator/

docs/user_guide/command-line.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Using the command line

docs/user_guide/issues.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Understanding issues

docs/user_guide/web.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Using the web validator

0 commit comments

Comments
 (0)