Skip to content

Commit 8bb0957

Browse files
authored
added codespell and review workflows (#21)
* added codespell and review workflows * typos * no bikeshed used * fixed repo name for review URL
1 parent aecd798 commit 8bb0957

File tree

5 files changed

+54
-6
lines changed

5 files changed

+54
-6
lines changed

.github/workflows/codespell.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Codespell configuration is within .codespellrc
2+
---
3+
name: Codespell
4+
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
codespell:
16+
name: Check for spelling errors
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
- name: Codespell
23+
uses: codespell-project/actions-codespell@v2

.github/workflows/review.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Add review url
3+
4+
on:
5+
pull_request_target:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: peter-evans/find-comment@v2
12+
id: fc
13+
with:
14+
issue-number: ${{ github.event.pull_request.number }}
15+
comment-author: 'github-actions[bot]'
16+
body-includes: Automated Review URLs
17+
18+
- uses: peter-evans/create-or-update-comment@v2
19+
with:
20+
comment-id: ${{ steps.fc.outputs.comment-id }}
21+
issue-number: ${{ github.event.pull_request.number }}
22+
body: |
23+
#### Automated Review URLs
24+
* [Readthedocs](https://ngff-spec--${{ github.event.pull_request.number }}.org.readthedocs.build/)
25+
edit-mode: replace

ngff_spec/citing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Citing
66
J. Moore, *et al*. Open Microscopy Environment Consortium, 8 February 2022.
77

88
This edition of the specification is [https://ngff.openmicroscopy.org/{{version}}](https://ngff.openmicroscopy.org/{{version}}]).
9-
The latest edition is publically available {cite}`ngff_spec_latest`.
9+
The latest edition is publicly available {cite}`ngff_spec_latest`.
1010

1111
```{bibliography}
1212
:style: unsrt

ngff_spec/contribute.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Major changes should follow the RFC process as it was laid out in [RFC1](https:/
1010
## Building the documentation
1111

1212
Build and inspect changes to the documentation before submitting a PR.
13-
To do so, you first need to install the necessary dependecies:
13+
To do so, you first need to install the necessary dependencies:
1414

1515
```bash
1616
pip install -r requirements.txt
@@ -33,18 +33,18 @@ You'll find the built webpages under `_build/html`.
3333
Contributions should conform to [Semantic Line Breaks (SemBr)](https://sembr.org/),
3434
to improve change tracking.
3535

36-
### Formating hints
36+
### Formatting hints
3737

3838
The specification uses MyST extensively for a number of formatting options
39-
to make the text readible and improve structure.
39+
to make the text readable and improve structure.
4040

4141
#### Referencing
4242

4343
MyST allows a number of ways to reference and cross-reference inside this text
4444
and across several of the pages in this repo.
4545
For an overview of supported referencing syntax,
4646
see the [MyST doc pages](https://mystmd.org/guide/cross-references).
47-
It is recommended to use the following syntax in this document for consitency:
47+
It is recommended to use the following syntax in this document for consistency:
4848

4949
```
5050
anchor: (your-reference-name)=

pre_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def build_json_schemas():
9292
config=config_md
9393
)
9494

95-
# insert mySt crossreference at top of markdown files
95+
# insert mySt cross-reference at top of markdown files
9696
with open(output_path_md, 'r') as md_file:
9797
md_content = md_file.read()
9898
crossref = f"(schemas:{Path(schema_file).stem})"

0 commit comments

Comments
 (0)