diff --git a/.checks/pre-push b/.checks/pre-push index 3a90fd4..f63d3fc 100755 --- a/.checks/pre-push +++ b/.checks/pre-push @@ -84,20 +84,20 @@ run_command() { # Wait for all background jobs to finish wait -# Lint markdown files using markdownlint-cli2 -if command -v markdownlint-cli2 &>/dev/null; then - MD_FILES="$(git diff HEAD~1 HEAD --name-only --diff-filter=ACM | grep -E '\.md$' || true)" - if [[ -n "$MD_FILES" ]]; then - echo -e "${GREEN}Running markdownlint...${NC}" - echo "$MD_FILES" | xargs markdownlint-cli2 >"$LOG_DIR/markdownlint.log" 2>&1 || { - echo -e "${RED}markdownlint-cli2 failed. See $LOG_DIR/markdownlint.log${NC}"; exit 1; - } - else - echo -e "${YELLOW}No committed Markdown files found. Skipping markdown check.${NC}" - fi -else - echo -e "${YELLOW}markdownlint-cli2 not installed. Skipping markdown check.${NC}" -fi +# # Lint markdown files using markdownlint-cli2 +# if command -v markdownlint-cli2 &>/dev/null; then +# MD_FILES="$(git diff HEAD~1 HEAD --name-only --diff-filter=ACM | grep -E '\.md$' || true)" +# if [[ -n "$MD_FILES" ]]; then +# echo -e "${GREEN}Running markdownlint...${NC}" +# echo "$MD_FILES" | xargs markdownlint-cli2 >"$LOG_DIR/markdownlint.log" 2>&1 || { +# echo -e "${RED}markdownlint-cli2 failed. See $LOG_DIR/markdownlint.log${NC}"; exit 1; +# } +# else +# echo -e "${YELLOW}No committed Markdown files found. Skipping markdown check.${NC}" +# fi +# else +# echo -e "${YELLOW}markdownlint-cli2 not installed. Skipping markdown check.${NC}" +# fi # Lint language using Vale if command -v vale &>/dev/null && [[ -f "$REPO_ROOT/.vale.ini" ]]; then diff --git a/.vale.ini b/.vale.ini index d9998ee..5150c6b 100755 --- a/.vale.ini +++ b/.vale.ini @@ -2,5 +2,5 @@ StylesPath = .vale MinAlertLevel = suggestion Packages = https://gugulet.hu/technical/git/g_it/vale/raw/branch/main/gugulet-hu.zip -[content/**/*.md] +[*.{adoc,html,md}] gugulet-hu = YES diff --git a/.vale/.vale-config/0-gugulet-hu.ini b/.vale/.vale-config/0-gugulet-hu.ini index 8a9c843..9b9e09f 100755 --- a/.vale/.vale-config/0-gugulet-hu.ini +++ b/.vale/.vale-config/0-gugulet-hu.ini @@ -2,4 +2,5 @@ StylesPath = styles Packages = Google, Readability, write-good, proselint [*.{adoc,html,md}] +BasedOnStyles = Google, Readability, write-good, proselint gugulet-hu = YES diff --git a/requirements.txt b/requirements.txt index 856c649..177f3bb 100755 --- a/requirements.txt +++ b/requirements.txt @@ -24,4 +24,4 @@ PyYAML==6.0.3 pyyaml_env_tag==1.1 six==1.17.0 watchdog==6.0.0 -zensical==0.0.31 +zensical==0.0.32