From 986bfa1d76c6a90ef53be5f551e31f9bd1a3b56a Mon Sep 17 00:00:00 2001 From: n Date: Thu, 3 Oct 2024 22:52:32 +0200 Subject: [PATCH 1/2] add markdownlint to CI --- .forgejo/workflows/lint.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml index a9fc6f3..35a7708 100644 --- a/.forgejo/workflows/lint.yml +++ b/.forgejo/workflows/lint.yml @@ -12,6 +12,12 @@ jobs: - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v4 + - name: Lint Markdown files + uses: actions/markdownlint-cli2-action@v17 + with: + globs: | + **/*.md + !vendor/*.md - name: Install linters using Composer run: | export COMPOSER_HOME=/tmp @@ -20,7 +26,7 @@ jobs: composer require --dev bamarni/composer-bin-plugin composer bin phplint require --dev overtrue/phplint composer require --dev friendsofphp/php-cs-fixer - - name: Lint + - name: Lint PHP files run: vendor/bin/phplint --no-cache --no-progress --exclude=vendor --verbose - name: PHP CS Fixer run: vendor/bin/php-cs-fixer fix --dry-run --verbose --diff . -- 2.40.1 From 80fd04c056b465f475ebd1aa6e6c5de8ee4de934 Mon Sep 17 00:00:00 2001 From: n Date: Thu, 3 Oct 2024 22:52:40 +0200 Subject: [PATCH 2/2] markdownlint fixes --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6505406..cc5699b 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ # ShaarGem -[Shaarli](https://github.com/shaarli/Shaarli/) plugin for [Gemini](https://geminiprotocol.net/) capsules shaaring. +[Shaarli](https://github.com/shaarli/Shaarli) +plugin for [Gemini](https://geminiprotocol.net/) capsules shaaring. ## Manual 1. Clone repository in `plugins` directory (plugin directory name must be `shaargem`) -``` -$ git clone https://forge.tourmentine.com/n/shaarli-plugin-shaargem.git path/to/shaarli/plugins/shaargem -``` + + ```shell + git clone https://forge.tourmentine.com/n/shaarli-plugin-shaargem.git path/to/shaarli/plugins/shaargem + ``` + 2. Activate plugin. 3. Share a `gemini://` IRI. -- 2.40.1