diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 11316b0..773d25f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,13 +10,18 @@ repos: - id: check-added-large-files - id: check-merge-conflict - id: detect-private-key -# - repo: https://github.com/jackdewinter/pymarkdown -# rev: 0.9.16 -# hooks: -# - id: pymarkdown -# pass_filenames: false -# args: -# - --config=pyproject.toml -# - scan -# - . -# - ./docs + - repo: https://github.com/jackdewinter/pymarkdown + rev: 0.9.16 + hooks: + - id: pymarkdown + pass_filenames: false + args: + - --config=pyproject.toml + - scan + - . + - ./docs + - repo: https://github.com/johnfraney/flake8-markdown + rev: v0.5.0 + hooks: + - id: flake8-markdown + args: ["'*.md'"] diff --git a/docs/glossary.md b/docs/glossary.md index 4c2eca0..284dc0c 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -1,5 +1,4 @@ --- hide: [navigation] --- - # Sözlük diff --git a/docs/pages.md b/docs/pages.md index 2ca15f0..f92e59c 100644 --- a/docs/pages.md +++ b/docs/pages.md @@ -1,6 +1,7 @@ --- hide: [navigation, toc] --- + # Sayfalar {% if pages_manuel %} diff --git a/docs/progress.md b/docs/progress.md index 2642358..41d2eb6 100644 --- a/docs/progress.md +++ b/docs/progress.md @@ -102,5 +102,4 @@ Sonraki aşama bir "Pull Request" (PR) açmaktır. PR'ı açtıktan sonra PR num {% endfor %} {% endif %} - [progress.yml]: https://github.com/hasansezertasan/fastapi-turkiye/blob/main/docs/data/progress.yml diff --git a/pyproject.toml b/pyproject.toml index 5828d87..95bc19d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,8 @@ mypy = ">=1.0.0" ruff = "==0.2.0" pre-commit = ">=2.20.0, <4.0.0" yamllint = "^1.32.0" -pymarkdownlnt = "^0.9.16" +pymarkdownlnt = ">=0.9.16" +flake8-markdown = "^0.5.0" [tool.pymarkdown] plugins.MD013.enabled = false @@ -30,6 +31,13 @@ plugins.MD004.style = "asterisk" plugins.MD007.indent = 4 # Escape disables... plugins.MD033.enabled = false +# To escape metadata related issues plugins.MD041.enabled = false plugins.MD022.enabled = false plugins.MD003.enabled = false + +[tool.poe.tasks] +build = "mkdocs build" +serve = "mkdocs serve" +flake8-markdown = "flake8-markdown '*.md'" +lint = ["flake8-markdown"]