@@ -53,10 +53,11 @@ ci: check-format lint mypy test
5353
5454.PHONY : check-format # # Check the source code format without changes
5555check-format :
56- $(isort ) --check-only
57- @echo $(autoflake ) --check
58- @ ( set -o pipefail; $( autoflake) --check | (grep -v " No issues detected!" || true) )
56+ $(isort ) $( docs_src ) --check-only
57+ @echo $(autoflake ) $( docs_src ) --check
58+ @ ( set -o pipefail; $( autoflake) $( docs_src ) --check | (grep -v " No issues detected!" || true) )
5959 $(black ) --check
60+ black -l 82 $(docs_src ) --check
6061
6162.PHONY : clean # # Remove temporary and cache files/directories
6263clean :
@@ -92,14 +93,20 @@ version: poetryversion
9293.PHONY : docs-build # # Generate the docs and update README.md
9394docs-build :
9495 python -m mkdocs build
95- cp docs/index.md README.md
96- cp docs/contributing.md CONTRIBUTING.md
96+ cp ./docs/index.md ./README.md
97+ cp ./docs/contributing.md ./CONTRIBUTING.md
98+
99+ .PHONY : docs-build-ci # # Generate the docs and check README.md is up-to-date
100+ docs-build-ci :
101+ python -m mkdocs build
102+ cmp README.md docs/index.md
103+ cmp CONTRIBUTING.md docs/contributing.md
97104
98105.PHONY : docs-format # # Format the python code that is part of the docs
99106docs-format :
100- isort -rc docs/src
101- autoflake -r --remove-all-unused-imports --ignore-init-module-imports docs/src -i
102- black -l 82 docs/src
107+ isort -rc $( docs_src )
108+ autoflake -r --remove-all-unused-imports --ignore-init-module-imports $( docs_src ) -i
109+ black -l 82 $( docs_src )
103110
104111.PHONY : docs-live # # Serve the docs with live reload as you make changes
105112docs-live :
0 commit comments