Skip to content

Commit

Permalink
Add action to spell check docs and README
Browse files Browse the repository at this point in the history
  • Loading branch information
Westwooo committed Sep 23, 2024
1 parent 177c57b commit 209924a
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 5 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/.spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
matrix:
- name: Markdown
expect_match: false
apsell:
mode: en
dictionary:
wordlists:
- .github/workflows/.wordlist.txt
output: wordlist.dic
encoding: utf-8
pipeline:
- pyspelling.filters.html:
comments: false
attributes:
- alt
ignores:
- 'code'
- 'pre'
sources:
- 'docs/*.adoc'
- 'docs/**/*.adoc'
21 changes: 21 additions & 0 deletions .github/workflows/.wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Actual words to ignore

analytics
cas
cbsh
config
Config
connstr
Couchbase
csv
CSV
dev
hostnames
json
JSON
kv
mydoc
tls
TLS
toml
upsert
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,15 @@ jobs:
- uses: hustcer/setup-nu@main
with:
version: "*"
- run: nu docs/sample_config/prompt_tests.nu
- run: nu docs/sample_config/prompt_tests.nu

check-spelling:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check Spelling
uses: rojopolis/[email protected]
with:
config_path: .github/workflows/.spellcheck.yml
task_name: Markdown
4 changes: 2 additions & 2 deletions docs/exporting-data.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you want to only store the document body then you can use `doc get <id> | get

===== To JSON

From KeyValue
From key-value
```
> doc get airport_3719 --bucket travel-sample
╭───┬──────────────┬────────────────────────────────────┬─────────────────────┬───────┬─────────╮
Expand Down Expand Up @@ -152,7 +152,7 @@ To Multiple Documents

===== To CSV

From KeyValue
From key-value

[options="nowrap"]
```
Expand Down
2 changes: 1 addition & 1 deletion docs/importing-data.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Couchbase Shell supports loading data from a variety of formats and sources.

The simplest way to import data is using `doc import` as covered in <<_loading_data_into_the_shell,Loading data into the shell>>.
These recipes will cover more advanced usecases.
These recipes will cover more advanced use cases.

==== A Note On Data format

Expand Down
2 changes: 1 addition & 1 deletion docs/recipes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:sectnums:

Welcome to the recipes section of the Couchbase Shell `cbsh` documentation.
Here you can find how powerful tasks can be performed by a combination of pipelined statements using `cbsh`.
Here you can find how powerful tasks can be performed by a combining `cbsh` statements.

include::recipes/register_cluster.adoc[]

Expand Down

0 comments on commit 209924a

Please sign in to comment.