diff --git a/.github/workflows/check-links.yaml b/.github/workflows/check-links.yaml new file mode 100644 index 000000000..648e7558e --- /dev/null +++ b/.github/workflows/check-links.yaml @@ -0,0 +1,16 @@ +name: Check Markdown links + +on: + workflow_dispatch: + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'no' + config-file: 'mlc_config.json' + folder-path: 'en' diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml deleted file mode 100644 index 67c6ba493..000000000 --- a/.github/workflows/checks.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: Checks -on: - push: - pull_request: - schedule: - # Run on the first of each month at 9:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07) - - cron: "0 9 1 * *" - workflow_dispatch: -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Set up Git repository - uses: actions/checkout@v4 - with: - show-progress: '' - - name: markdownlint-cli2-action - uses: DavidAnson/markdownlint-cli2-action@v9 - with: - globs: | - **/*.md - #node_modules - lychee: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - show-progress: 'false' - - name: Restore lychee cache - uses: actions/cache@v4 - with: - path: .lycheecache - key: cache-lychee-${{ github.sha }} - restore-keys: cache-lychee- - - name: Link Checker - id: lychee - uses: lycheeverse/lychee-action@v2.0.2 - with: - fail: true - args: --accept '200,201,202,203,204,403,429,500' --max-concurrency 1 --cache --no-progress --exclude-all-private './**/*.md' diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 000000000..15afed758 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,21 @@ +name: Lint +on: + push: + branches: + - main + pull_request: + workflow_dispatch: +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v4 + with: + show-progress: '' + - name: markdownlint-cli2-action + uses: DavidAnson/markdownlint-cli2-action@v9 + with: + globs: | + **/*.md + #node_modules diff --git a/.lycheeignore b/.lycheeignore deleted file mode 100644 index 1e0316e2d..000000000 --- a/.lycheeignore +++ /dev/null @@ -1,16 +0,0 @@ -https://arxiv.org/ -https://chrome.google.com/ -https://contribute.jabref.org/ -https://donations.jabref.org/ -https://pubs.acs.org/ -https://scholar.archive.org/ -https://web.archive.org/ -https://www.researchgate.net/privacy-policy -https://www.sciencedirect.com/ - -https://github.com/koppor/jabref/issue -https://github.com/koppor/jabref/pull -https://github.com/JabRef/jabref/issue -https://github.com/JabRef/jabref/pull - -0005-example.md diff --git a/mlc_config.json b/mlc_config.json new file mode 100644 index 000000000..3c775a554 --- /dev/null +++ b/mlc_config.json @@ -0,0 +1,31 @@ +{ + "ignorePatterns": [ + { + "pattern": "^https://.*\\.crossref\\.org" + }, + { + "pattern": "^https://.*\\.github\\.com" + }, + { + "pattern": "^https://dl\\.acm\\.org" + }, + { + "pattern": "^http://purl\\.org/net/bibteXMP" + }, + { + "pattern": "^https://.*\\.jabref\\.org" + }, + { + "pattern": "\\.tex\\.ac\\.uk/" + }, + { + "pattern": "gitignore\\.io" + }, + { + "pattern": "en\\.wikipedia\\.org" + }, + { + "pattern": "^https://web.archive.org/" + } + ] +}