1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 17:56:26 +00:00

Add markdown linting (without breaking the site this time!)

This commit is contained in:
David Young
2021-10-21 17:53:15 +13:00
committed by GitHub
parent 52460b8ead
commit 22293fa93d
131 changed files with 668 additions and 1361 deletions

19
.github/workflows/markdownlint.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: 'Lint Markdown'
on:
pull_request:
types: [opened, synchronize]
jobs:
lint-markdown:
name: Lint markdown
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Lint markdown files
uses: docker://avtodev/markdown-lint:v1 # fastest way
with:
config: '.markdownlint.yaml'
args: '**/*.md'
ignore: '_snippets' # multiple files must be separated with single space

View File

@@ -0,0 +1,24 @@
name: 'mkdocs sanity check'
on:
pull_request:
types: [opened, synchronize]
jobs:
mkdocs-sanity-check:
name: Check mkdocs builds successfully
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
architecture: x64
- name: Install requirements
run: python3 -m pip install -r requirements.txt
- name: Test mkdocs builds
run: python3 -m mkdocs build

View File

@@ -10,6 +10,6 @@ jobs:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has gone mouldy, because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days'
days-before-stale: 30
days-before-close: 5
stale-issue-message: 'This issue has gone mouldy, because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days'
days-before-stale: 90
days-before-close: 14