From 4e9c9546c59046c62ea2738d027d1edfead2d287 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 10 Jun 2025 09:55:50 +0100 Subject: [PATCH 1/3] Remove weird line endings --- story/choose-a-database.twee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/story/choose-a-database.twee b/story/choose-a-database.twee index c6e7242..f28590c 100644 --- a/story/choose-a-database.twee +++ b/story/choose-a-database.twee @@ -124,7 +124,7 @@ Is your data media files? (Video, pictures, PDFs, specialised formats like nifti :: network-yes {"position":"1050,1050","size":"100,100"} The wizard calls his familiar, a large fuzzy spider. It hands you a magical spider web which speeds up the process of cataloguing the spells. -
 + Consider using a Graph database. From 660a462414c906da1701944df6dfe51e4466bbb3 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 10 Jun 2025 09:56:23 +0100 Subject: [PATCH 2/3] Add Vale to the repo --- .github/workflows/linting.yaml | 5 +++++ .gitignore | 6 ++++++ .vale.ini | 30 ++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .gitignore create mode 100644 .vale.ini diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index b4d538c..172227c 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -16,3 +16,8 @@ jobs: - uses: paddyroddy/.github/actions/linting@232a2f3869501abb249d50e311179f98830c6481 # v0 with: pre-commit-config: ./.pre-commit-config.yaml + + # yamllint disable-line rule:line-length + - uses: paddyroddy/.github/actions/vale@d5aea086eaabccae4bcf39786ad5138b629755a6 # v0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7afd6dd --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +!.github/styles/config/ +!.github/styles/config/vocabularies/ +!.github/styles/config/vocabularies/Base +.github/styles/* +.github/styles/config/* +.github/styles/config/vocabularies/* diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 0000000..b830d3c --- /dev/null +++ b/.vale.ini @@ -0,0 +1,30 @@ +StylesPath = .github/styles + +# https://github.com/errata-ai/packages +Packages = proselint,\ + write-good + +[formats] +twee = md + +[*.{md,twee}] +BasedOnStyles = proselint,\ + Vale,\ + write-good + +# Disable +Vale.Spelling = NO +write-good.E-Prime = NO +write-good.Passive = NO +write-good.TooWordy = NO + +# Ignore lines starting with GitHub alerts syntax +BlockIgnores = (?s)> \[!(CAUTION|IMPORTANT|NOTE|TIP|WARNING)\](\n|$) + +# `vale sync` in CI means the packages are then linted, so turn them off +[.github/styles/**] +BasedOnStyles = + +# Don't modify generated files +[**/{CODE_OF_CONDUCT,LICENSE}*] +BasedOnStyles = From aea374949273ac2cb1cc6168cd829c8b0bf4b540 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 10 Jun 2025 10:18:53 +0100 Subject: [PATCH 3/3] Apply Vale fixes to text --- story/choose-a-database.twee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/story/choose-a-database.twee b/story/choose-a-database.twee index f28590c..1122523 100644 --- a/story/choose-a-database.twee +++ b/story/choose-a-database.twee @@ -61,16 +61,16 @@ Can you structure your data well in rows and columns? :: explore-no {"position":"1325,825","size":"100,100"} -But you said you didn't know what questions to ask! +You said you didn't know what questions to ask! If you know your wishes, [[ask the genie|question-yes]]! :: explore-yes {"position":"1325,925","size":"100,100"} -You put the lamp in your pack and continue down the road. After some time you arrive at a watering hole. There is a friendly looking elephant drinking, and a dolphin pops its head above the water. +You put the lamp in your pack and continue down the road. After some time you arrive at a watering hole. A friendly looking elephant is drinking, and a dolphin pops its head above the water. -...choose a relational DB. +…choose a relational DB. Popular choices: Postgres and MySQL. @@ -179,7 +179,7 @@ Do you know exactly what question to ask? (For example, how many students have a :: text-no {"position":"900,1475","size":"100,100"} -You find a mysterious map in the library. After following it, you arrive at a watering hole. There is a friendly looking elephant drinking, and a dolphin pops its head above the water. +You find a mysterious map in the library. After following it, you arrive at a watering hole, where a friendly looking elephant is drinking and a dolphin pops its head above the water. Use a relational database. Popular choices: Postgres and MySQL.