diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..d0febe6f --- /dev/null +++ b/.github/dependabot.yml @@ -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" diff --git a/.github/scripts/clean-mdx.js b/.github/scripts/clean-mdx.js new file mode 100644 index 00000000..6fe3a3fa --- /dev/null +++ b/.github/scripts/clean-mdx.js @@ -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)); diff --git a/.github/workflows/checkspelling.yml b/.github/workflows/checkspelling.yml new file mode 100644 index 00000000..557ace24 --- /dev/null +++ b/.github/workflows/checkspelling.yml @@ -0,0 +1,68 @@ +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 MDX cleaner dependencies + 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 with reviewdog + if: steps.changed.outputs.any_changed == 'true' + env: + REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + for f in dist/*.txt; do + java -jar $LT_PATH -l en-US "$f" | + reviewdog -efm="%f: Line %l: %m" \ + -name="LanguageTool" \ + -reporter=github-pr-review \ + -filter-mode=added \ + -fail-on-error=false + done diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index f9fa42a3..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Deploy to GitHub Pages - -on: - # Trigger the workflow every time you push to the `main` branch - # Using a different branch name? Replace `main` with your branch’s name - push: - branches: [ main ] - # Allows you to run this workflow manually from the Actions tab on GitHub. - workflow_dispatch: - -# Allow this job to clone the repo and create a page deployment -permissions: - contents: read - pages: write - id-token: write - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout your repository using git - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Install, build, and upload your site - uses: withastro/action@v3 - with: - path: . # The root location of your Astro project inside the repository. (optional) - node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional) - package-manager: npm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - deploy: - needs: build - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/src/content/docs/Users/index.mdx b/src/content/docs/Users/index.mdx index db30f207..e7ee36e6 100644 --- a/src/content/docs/Users/index.mdx +++ b/src/content/docs/Users/index.mdx @@ -11,3 +11,6 @@ import DirectoryList from '@components/DirectoryList.astro'; +Their may be multiple versions available with different desktop environments donoted by `AerynOS---.iso` where `` is the desktop environment. + + Click on the download link to start downloading the ISO file and assiocated checksums donated by `AerynOS---.iso.sha256sum`.