From 1b33a6634f069b77ee0cfd1ccc1a0dfb0d1fae8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 3 Nov 2023 00:11:49 +0100 Subject: [PATCH 1/5] Check Front Matter --- .github/workflows/test.yml | 89 ++++++++++++++++++++++++++------------ 1 file changed, 61 insertions(+), 28 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5215541..0584e70 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,35 +1,68 @@ name: Test on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + push: + branches: [ main ] + pull_request: + branches: [ main ] - workflow_dispatch: + workflow_dispatch: jobs: - lint: - name: Lint - runs-on: ubuntu-latest + lint: + name: Lint + runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: 'lts/*' - - name: Install dependencies - run: npm ci - - name: Run linter - run: npm run sass:lint - - name: Check EditorConfig configuration - run: test -f .editorconfig - - name: Check adherence to EditorConfig - uses: greut/eclint-action@v0 - with: - eclint_args: | - -exclude=css/* - - name: Search for misspellings - uses: crate-ci/typos@master + steps: + - + name: Checkout repository + uses: actions/checkout@v3 + - + name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - + name: Install dependencies + run: npm ci + - + name: Run linter + run: npm run sass:lint + - + name: Check EditorConfig configuration + run: test -f .editorconfig + - + name: Check adherence to EditorConfig + uses: greut/eclint-action@v0 + with: + eclint_args: | + -exclude=css/* + - + name: Search for misspellings + uses: crate-ci/typos@master + + lint_front_matter: + name: Lint Front Matter + runs-on: ubuntu-latest + + steps: + - + name: Checkout repository + uses: actions/checkout@v3 + - + name: Cache pip + uses: actions/cache@v3 + with: + path: '~/.cache/pip' + key: '${{ runner.os }}-pip-yamllint' + - + name: Install yamllint + run: pip install --user yamllint + - + name: Remove document contents + run: | + git ls-files -z -- 'src/**.md' | xargs -0 -n 1 -- sed -i -e 'N;P;/---\n$/Q;D' + - + name: Check Front Matter + run: | + git ls-files -z -- 'src/**.md' | xargs -0 -n 1 -- python -m yamllint From f8f459518256eae27a7c207372d0aec967a9139d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 3 Nov 2023 00:14:11 +0100 Subject: [PATCH 2/5] Create .yamllint.yml --- .yamllint.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .yamllint.yml diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 0000000..2f3aab1 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,20 @@ +--- +extends: "default" + +rules: + document-start: + present: true + braces: + forbid: true + brackets: + forbid: false + empty-values: + forbid-in-block-mappings: true + forbid-in-flow-mappings: true + indentation: + spaces: 4 + indent-sequences: false + line-length: "disable" + quoted-strings: + quote-type: "double" + required: true From 50812f9795da18eb879dc0659b0940981bff05cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 3 Nov 2023 02:30:28 +0000 Subject: [PATCH 3/5] Fix Front Matters --- src/account.md | 8 ++++---- src/categories.md | 8 ++++---- src/customers.md | 8 ++++---- src/notifications.md | 12 ++++++------ src/orders.md | 8 ++++---- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/account.md b/src/account.md index cb142d3..d5dfe12 100644 --- a/src/account.md +++ b/src/account.md @@ -3,11 +3,11 @@ title: "Account" layout: "layout/account.html" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Account" - url: null + caption: "Account" + url: null ---
diff --git a/src/categories.md b/src/categories.md index f51d2ec..e947566 100644 --- a/src/categories.md +++ b/src/categories.md @@ -3,9 +3,9 @@ title: "Categories" layout: "layout/categories.html" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Categories" - url: null + caption: "Categories" + url: null --- diff --git a/src/customers.md b/src/customers.md index bdd49fb..3ec50da 100644 --- a/src/customers.md +++ b/src/customers.md @@ -3,9 +3,9 @@ title: "Customers" layout: "layout/customers.html" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Customers" - url: null + caption: "Customers" + url: null --- diff --git a/src/notifications.md b/src/notifications.md index f035dd8..94ed1d7 100644 --- a/src/notifications.md +++ b/src/notifications.md @@ -4,14 +4,14 @@ layout: "layout/account.html" permalink: "account/notifications/" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Account" - url: "/account/" + caption: "Account" + url: "/account/" - - caption: "Notifications" - url: null + caption: "Notifications" + url: null ---

Notifications

diff --git a/src/orders.md b/src/orders.md index e379d74..6f00f11 100644 --- a/src/orders.md +++ b/src/orders.md @@ -3,9 +3,9 @@ title: "Orders" layout: "layout/orders.html" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Orders" - url: null + caption: "Orders" + url: null --- From 89be50c6e7a5f46ef8c0e29bbe4c0e6ca6fb5ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 3 Nov 2023 02:32:40 +0000 Subject: [PATCH 4/5] Fix more --- src/password.md | 12 ++++++------ src/product-edit.md | 12 ++++++------ src/products.md | 8 ++++---- src/profile.md | 12 ++++++------ 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/password.md b/src/password.md index 9eb081d..4983e21 100644 --- a/src/password.md +++ b/src/password.md @@ -4,14 +4,14 @@ layout: "layout/account.html" permalink: "account/password/" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Account" - url: "/account/" + caption: "Account" + url: "/account/" - - caption: "Password" - url: null + caption: "Password" + url: null ---

Set up a new password

diff --git a/src/product-edit.md b/src/product-edit.md index 46fe45f..4d3f0c9 100644 --- a/src/product-edit.md +++ b/src/product-edit.md @@ -4,12 +4,12 @@ layout: "layout/product-edit.html" permalink: "product/edit/" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Products" - url: "/products/" + caption: "Products" + url: "/products/" - - caption: "Edit" - url: null + caption: "Edit" + url: null --- diff --git a/src/products.md b/src/products.md index dad3b24..6519bbc 100644 --- a/src/products.md +++ b/src/products.md @@ -3,9 +3,9 @@ title: "Products" layout: "layout/products.html" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Products" - url: null + caption: "Products" + url: null --- diff --git a/src/profile.md b/src/profile.md index 9678d83..65b0997 100644 --- a/src/profile.md +++ b/src/profile.md @@ -4,14 +4,14 @@ layout: "layout/account.html" permalink: "account/profile/" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Account" - url: "/account/" + caption: "Account" + url: "/account/" - - caption: "Profile" - url: null + caption: "Profile" + url: null ---

Personal Information

From 77a669d191202fe7ba75b8e4daedf170b311f52e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 3 Nov 2023 02:33:39 +0000 Subject: [PATCH 5/5] Fix settings.md --- src/settings.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/settings.md b/src/settings.md index 88747c7..dd15a8c 100644 --- a/src/settings.md +++ b/src/settings.md @@ -3,9 +3,9 @@ title: "Settings" layout: "layout/settings.html" breadcrumbs: - - caption: "Dashboard" - url: "/" + caption: "Dashboard" + url: "/" - - caption: "Settings" - url: null + caption: "Settings" + url: null ---