Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f27511a
Add GitHub Action for LanguageTool on PRs
CookieSource Jan 13, 2026
650be58
Add support for .mdx files in language tool workflow
CookieSource Jan 13, 2026
dc77791
Delete .github/workflows/deploy.yml
CookieSource Jan 13, 2026
c00b21e
Refactor LanguageTool workflow for clarity and efficiency
CookieSource Jan 13, 2026
072c78e
Update languagetool-pr.yml
CookieSource Jan 13, 2026
2c9d531
Update languagetool-pr.yml
CookieSource Jan 13, 2026
3114311
Update LanguageTool workflow for PR comments
CookieSource Jan 13, 2026
1ff1ed4
Refactor LanguageTool workflow for PR review
CookieSource Jan 13, 2026
fd877f3
Update languagetool-pr.yml
CookieSource Jan 13, 2026
6cfe2b6
Add languagetool_reviewdog.py script
CookieSource Jan 13, 2026
ebfebd1
Update languagetool-pr.yml
CookieSource Jan 13, 2026
d3d797f
Modify LanguageTool workflow for PR comments and Java setup
CookieSource Jan 13, 2026
c455ba3
Update languagetool.yml
CookieSource Jan 13, 2026
b51c3d2
Update languagetool.yml
CookieSource Jan 13, 2026
d6ef83d
PR after a working version
CookieSource Jan 13, 2026
1f7a335
Configure Dependabot for npm updates
CookieSource Jan 15, 2026
d24353f
Change Dependabot update interval to monthly
CookieSource Jan 15, 2026
259bf69
Refactor LanguageTool workflow for reviewdog integration
CookieSource Jan 15, 2026
a5900aa
Update languagetool.yml
CookieSource Jan 15, 2026
9d26753
Merge branch 'AerynOS:main' into main
CookieSource Jan 18, 2026
c22aacd
Update GitHub Actions workflow for grammar checks harper
CookieSource Jan 19, 2026
8d60764
Update and rename languagetool.yml to checkspelling.yml
CookieSource Jan 21, 2026
99404df
Update checkspelling.yml
CookieSource Jan 22, 2026
75c9b31
Update and rename languagetool_reviewdog.py to clean-mdx.js
CookieSource Jan 22, 2026
f8da8ed
Update checkspelling.yml
CookieSource Jan 22, 2026
9debc3d
Update checkspelling.yml
CookieSource Jan 22, 2026
1ec129d
Update checkspelling.yml
CookieSource Jan 22, 2026
ec5b21f
Create languagetool-json-to-reviewdog.js
CookieSource Jan 22, 2026
b56ba2a
Update checkspelling.yml
CookieSource Jan 22, 2026
f93295d
Merge branch 'AerynOS:main' into main
CookieSource Jan 30, 2026
cf29ae7
Bump @astrojs/starlight from 0.37.2 to 0.37.5
dependabot[bot] Feb 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
allow:
- dependency-name: "astro"
- dependency-name: "@astrojs/starlight"
19 changes: 19 additions & 0 deletions .github/scripts/clean-mdx.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// scripts/clean-mdx.js
import fs from 'fs/promises';
import { remark } from 'remark';
import remarkMdx from 'remark-mdx';
import strip from 'strip-markdown';

const filePath = process.argv[2];
if (!filePath) {
console.error('No file path provided.');
process.exit(1);
}

const mdx = await fs.readFile(filePath, 'utf8');
const file = await remark()
.use(remarkMdx)
.use(strip)
.process(mdx);

console.log(String(file));
18 changes: 18 additions & 0 deletions .github/scripts/languagetool-json-to-reviewdog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Converts LanguageTool JSON output to reviewdog format
import fs from 'fs';

const [,, jsonFile, filename] = process.argv;

if (!jsonFile || !filename) {
console.error('Usage: node script.js <jsonFile> <originalFilename>');
process.exit(1);
}

const raw = fs.readFileSync(jsonFile, 'utf-8');
const data = JSON.parse(raw);

for (const match of data.matches) {
const line = match.context.offset !== undefined ? match.context.line || 0 : 0;
const message = match.message.replace(/\n/g, ' ');
console.log(`${filename}: Line ${line + 1}: ${message}`);
}
71 changes: 71 additions & 0 deletions .github/workflows/checkspelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Grammar Check (PR Changes Only)

on:
pull_request:

jobs:
grammar:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Get changed markdown files
id: changed
uses: tj-actions/changed-files@v39
with:
files: |
**/*.md
**/*.mdx

- name: Skip if no .md/.mdx files changed
if: steps.changed.outputs.any_changed != 'true'
run: echo "No markdown or MDX files changed."

- name: Set up Node
if: steps.changed.outputs.any_changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies for MDX and parser
if: steps.changed.outputs.any_changed == 'true'
run: |
npm install remark remark-mdx strip-markdown

- name: Extract prose from changed docs
if: steps.changed.outputs.any_changed == 'true'
run: |
mkdir -p dist
for file in ${{ steps.changed.outputs.all_changed_files }}; do
if [[ "$file" == *.md || "$file" == *.mdx ]]; then
node .github/scripts/clean-mdx.js "$file" > "dist/${file//\//_}.txt"
fi
done

- name: Download LanguageTool CLI
if: steps.changed.outputs.any_changed == 'true'
run: |
curl -L -o lt.zip https://languagetool.org/download/LanguageTool-stable.zip
unzip lt.zip
echo "LT_PATH=$(pwd)/LanguageTool-*/languagetool-commandline.jar" >> $GITHUB_ENV

- name: Install reviewdog
if: steps.changed.outputs.any_changed == 'true'
uses: reviewdog/action-setup@v1

- name: Run LanguageTool and parse to reviewdog format
if: steps.changed.outputs.any_changed == 'true'
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for f in dist/*.txt; do
OUT="dist/$(basename "$f").json"
java -jar $LT_PATH -l en-US --json "$f" > "$OUT"
node .github/scripts/languagetool-json-to-reviewdog.js "$OUT" "$f" |
reviewdog -efm="%f: Line %l: %m" \
-name="LanguageTool" \
-reporter=github-pr-review \
-filter-mode=added \
-fail-on-error=false
done
43 changes: 0 additions & 43 deletions .github/workflows/deploy.yml

This file was deleted.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/starlight": "^0.37.2",
"@astrojs/starlight": "^0.37.5",
"astro": "^5.16.8",
"sharp": "^0.34.5",
"starlight-kbd": "^0.3.0",
Expand Down
Loading