Skip to content
Snippets Groups Projects
Verified Commit b1dd2f40 authored by Levente Polyak's avatar Levente Polyak :rocket:
Browse files

RFC-0043: implement markdownlint checks

parent 6973c7bb
No related branches found
No related tags found
1 merge request!45RFC-0043: Convert all rst files to markdown and implement all linter
......@@ -11,19 +11,21 @@ stages:
- build
- deploy
rstcheck:
lint-markdownlint:
stage: lint
needs: []
before_script:
- pacman --noconfirm -Syu --needed make rstcheck
- pacman -Syu --needed --noconfirm make markdownlint
script:
- make lint
- make lint-markdownlint
build:
stage: build
needs: []
before_script:
- pacman -Syu --needed --noconfirm make hugo git
script:
- pacman -Syu --needed --noconfirm hugo python-docutils python-pygments git
- hugo
- make build
artifacts:
paths:
- public
......@@ -31,12 +33,15 @@ build:
pages:
stage: deploy
needs:
- rstcheck
- lint-markdownlint
- build
dependencies: []
tags:
- secure
before_script:
- pacman -Syu --needed --noconfirm make hugo git
script:
- "true"
- make build
artifacts:
paths:
- public
......
all
exclude_rule 'MD013'
.mdlrc 0 → 100644
ignore_front_matter true
show_kramdown_warnings true
style '.mdl_style.rb'
DOC_FILES=$(wildcard rfcs/*.rst) $(wildcard *.rst)
FILES=*.md rfcs
all:
all: check build
devel-watchexec:
watchexec -e .scss -e .html -e .toml -e .rst -e .svg -e .png -e .md -e .txt -e .ini make
devel-http-server:
python -m http.server -d public
build:
hugo
check: lint
lint:
rstcheck --report-level warning $(DOC_FILES)
lint: lint-markdownlint
lint-markdownlint:
mdl $(FILES)
clean:
rm -rf public resources
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment