diff --git a/.forgejo/workflows/spelling.yml b/.forgejo/workflows/spelling.yml new file mode 100644 index 0000000..f7b1012 --- /dev/null +++ b/.forgejo/workflows/spelling.yml @@ -0,0 +1,23 @@ +name: Spell Check + +on: + push: + branches: + - main + +jobs: + codespell: + name: Check spelling + runs-on: ubuntu-latest + steps: + - name: Checkout repository + run: | + git clone --depth 1 https://token:${{ secrets.ACTIONS_TOKEN }}@gugulet.hu/technical/git/g_it/site.git . + + - name: Install codespell + run: | + apt-get update && apt-get install -y python3-pip + pip install codespell + + - name: Run codespell + run: codespell --ignore-words-list=gugulet,forgejo,myword '**/*.md' diff --git a/.forgejo/workflows/vale.yml b/.forgejo/workflows/vale.yml new file mode 100644 index 0000000..4d2fc48 --- /dev/null +++ b/.forgejo/workflows/vale.yml @@ -0,0 +1,53 @@ +name: vale +on: + push: + branches: + - main + +jobs: + vale: + name: runner / vale + runs-on: ubuntu-latest + steps: + - name: Checkout repository + run: | + git clone --depth 1 https://token:${{ secrets.ACTIONS_TOKEN }}@gugulet.hu/technical/git/g_it/site.git . + cd site || true + + - name: Check working directory structure + run: | + echo "## CURRENT DIRECTORY CONTENTS" + pwd + ls -la + echo "" + echo "## GIT REMOTE CONFIGURATION" + git remote -v + + - name: Install and run Vale + run: | + # Install Vale + wget -qO- https://github.com/errata-ai/vale/releases/download/v3.14.1/vale_3.14.1_Linux_64-bit.tar.gz | tar xz -C /tmp + export PATH="/tmp:$PATH" + + if command -v vale &>/dev/null && [[ -f ".vale.ini" ]]; then + echo "Running Vale on all Markdown files..." + FAILED=0 + + while IFS= read -r file; do + echo "Checking $file" + if ! vale "$file"; then + echo "Vale found issues in $file" + FAILED=1 + else + echo "Vale check passed for $file" + fi + done < <(find . -type f -name "*.md") + + if [ $FAILED -eq 1 ]; then + echo "Vale check failed. See output above." + exit 1 + fi + echo "Vale check completed successfully." + else + echo "Vale not installed or .vale.ini missing. Skipping Vale." + fi diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100755 index 7ac7241..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: lint -on: - push: - branches: - - main - -jobs: - vale: - name: runner / vale - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: errata-ai/vale-action@reviewdog - with: - fail_on_error: true - files: / diff --git a/.vale.ini b/.vale.ini index d9998ee..7070b40 100755 --- a/.vale.ini +++ b/.vale.ini @@ -1,6 +1,7 @@ StylesPath = .vale -MinAlertLevel = suggestion +MinAlertLevel = warning Packages = https://gugulet.hu/technical/git/g_it/vale/raw/branch/main/gugulet-hu.zip -[content/**/*.md] +[*.{adoc,html,md}] +BasedOnStyles = Google, Readability, write-good, proselint gugulet-hu = YES diff --git a/.vale/.vale-config/0-gugulet-hu.ini b/.vale/.vale-config/0-gugulet-hu.ini index 8a9c843..9b9e09f 100755 --- a/.vale/.vale-config/0-gugulet-hu.ini +++ b/.vale/.vale-config/0-gugulet-hu.ini @@ -2,4 +2,5 @@ StylesPath = styles Packages = Google, Readability, write-good, proselint [*.{adoc,html,md}] +BasedOnStyles = Google, Readability, write-good, proselint gugulet-hu = YES diff --git a/.vale/gugulet-hu/Spelling.yml b/.vale/gugulet-hu/Spelling.yml new file mode 100644 index 0000000..34843e6 --- /dev/null +++ b/.vale/gugulet-hu/Spelling.yml @@ -0,0 +1,8 @@ +extends: spelling +message: "Spelling error: '%s' is not a recognized word." +level: error +ignore: | + (?i) + gugulet + mlungisi + yourname diff --git a/content/fucked.md b/content/fucked.md new file mode 100644 index 0000000..e27a5cc --- /dev/null +++ b/content/fucked.md @@ -0,0 +1,16 @@ +Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? + + +asdfasd asdfgasdfgdfs sdfgsdffg dfgsdfgsdfg + fdgs + +THE WORD IS TEH BIRD + + +Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? + + +asdfasd asdfgasdfgdfs sdfgsdffg dfgsdfgsdfg + fdgs + +THE WORD IS TEH BIRD diff --git a/content/resume.md b/content/resume.md index 8460199..0298781 100755 --- a/content/resume.md +++ b/content/resume.md @@ -12,7 +12,6 @@ title: Resume --- -