diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..353e7bd --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,29 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-added-large-files + args: ["--maxkb=600"] + - id: check-ast + - id: check-executables-have-shebangs + - id: check-json + - id: check-shebang-scripts-are-executable + exclude: .*templates/.*j2$ + - id: check-yaml + args: + - --allow-multiple-documents + exclude: mkdocs.yml + - id: detect-private-key + - id: detect-aws-credentials + - id: end-of-file-fixer + - id: name-tests-test + - id: file-contents-sorter + - id: requirements-txt-fixer + - id: sort-simple-yaml + - id: trailing-whitespace + - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook + rev: v9.11.0 + hooks: + - id: commitlint + stages: [commit-msg] + additional_dependencies: ["@commitlint/config-conventional"] diff --git a/mkdocs.yml b/mkdocs.yml index 46efe76..a34ff41 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -47,6 +47,7 @@ remote_branch: gh-pages remote_name: origin repo_name: developer-friendly/blog repo_url: https://github.com/developer-friendly/blog +site_url: https://tech.developer-friendly.com site_author: Meysam site_description: This repo holds the technical-ish blog of Developer Friendly. # site_dir: mkdocs diff --git a/requirements.txt b/requirements.txt index ed2c1bc..ec6f507 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ cairosvg<3 mkdocs-exclude<2 -mkdocs-material<10 mkdocs-glightbox<1 +mkdocs-material<10 mkdocs-rss-plugin<2 pillow==9.5