Skip to content

Commit ee9e8b5

Browse files
[ENH] Allow README file extensions. (#1033)
* Fixed contributing link * Modified README description. Used REQUIRED for consistency with the schema. * Added optional file extensions. * Added line break because 'Lint yml files' check failed. * Applied feedback to README description. * Removed 'free-form' from README description Co-authored-by: Yaroslav Halchenko <[email protected]> * Removed "(unstructured text)" at "txt" in README * Polishing README description. Added fogotten changes propagation to src/03-modality-agnostic-files.md Co-authored-by: Yaroslav Halchenko <[email protected]>
1 parent d9eeb6d commit ee9e8b5

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

src/03-modality-agnostic-files.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,18 @@ Example:
143143

144144
### `README`
145145

146-
Every BIDS dataset SHOULD come with a free form text file (`README`) describing the dataset in more detail.
147-
The `README` file MUST be either in ASCII or UTF-8 encoding.
146+
A REQUIRED text file, `README`, SHOULD describe the dataset in more detail.
147+
The `README` file MUST be either in ASCII or UTF-8 encoding and MAY have one of the extensions:
148+
`.md` ([Markdown](https://www.markdownguide.org/)),
149+
`.rst` ([reStructuredText](https://docutils.sourceforge.io/rst.html)),
150+
or `.txt`.
151+
A BIDS dataset MUST NOT contain more than one `README` file (with or without extension)
152+
at its root directory.
153+
BIDS does not make any recommendations with regards to the
154+
[Markdown flavor](https://www.markdownguide.org/extended-syntax/#lightweight-markup-languages)
155+
and does not validate the syntax of Markdown and reStructuredText.
156+
The `README` file SHOULD be structured such that its contents can be easily understood
157+
even if the used format is not rendered.
148158
A guideline for creating a good `README` file can be found in the
149159
[bids-starter-kit](https://github.com/bids-standard/bids-starter-kit/blob/master/templates/README).
150160

src/99-appendices/14-glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ This section compiles the object definitions in the schema.
44

55
<!--
66
This section is autogenerated based on the src/schema. DO NOT EDIT DIRECTLY.
7-
Follow https://github.com/bids-standard/bids-specification/blob/master/CONTRIBUTING.md#updating-the-schema
7+
Follow https://github.com/bids-standard/bids-specification/blob/master/CONTRIBUTING.md#making-a-change-to-the-BIDS-schema
88
-->
99
{{ MACROS___make_glossary() }}

src/schema/objects/top_level_files.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,20 @@ LICENSE:
2121
README:
2222
name: README
2323
description: |
24-
In addition a free form text file (`README`) describing the dataset in more details SHOULD be
25-
provided.
26-
The `README` file MUST be either in ASCII or UTF-8 encoding.
24+
A REQUIRED text file, `README`, SHOULD describe the dataset in more detail.
25+
The `README` file MUST be either in ASCII or UTF-8 encoding and MAY have one of the extensions:
26+
`.md` ([Markdown](https://www.markdownguide.org/)),
27+
`.rst` ([reStructuredText](https://docutils.sourceforge.io/rst.html)),
28+
or `.txt`.
29+
A BIDS dataset MUST NOT contain more than one `README` file (with or without extension)
30+
at its root directory.
31+
BIDS does not make any recommendations with regards to the
32+
[Markdown flavor](https://www.markdownguide.org/extended-syntax/#lightweight-markup-languages)
33+
and does not validate the syntax of Markdown and reStructuredText.
34+
The `README` file SHOULD be structured such that its contents can be easily understood
35+
even if the used format is not rendered.
36+
A guideline for creating a good `README` file can be found in the
37+
[bids-starter-kit](https://github.com/bids-standard/bids-starter-kit/blob/master/templates/README).
2738
dataset_description:
2839
name: Dataset Description
2940
description: |

src/schema/rules/top_level_files.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ README:
33
required: true
44
extensions:
55
- None
6+
- .md
7+
- .rst
8+
- .txt
69
CHANGES:
710
required: true
811
extensions:

0 commit comments

Comments
 (0)