Skip to content

Commit 05a84cf

Browse files
committed
fix
1 parent c83561b commit 05a84cf

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
--bandit-report bandit-report.json \
5555
--output docs-quality-report.json
5656
57+
- name: Prepare local docs root for link checking
58+
run: ln -s . site/avito_python_api
59+
5760
- name: Upload docs reports
5861
uses: actions/upload-artifact@v4
5962
with:
@@ -69,8 +72,10 @@ jobs:
6972
7073
- name: Check links
7174
uses: lycheeverse/lychee-action@v2
75+
env:
76+
GITHUB_TOKEN: ${{ github.token }}
7277
with:
73-
args: --exclude "avito\.ru" --retry-wait-time 5 --max-retries 3 --timeout 30 site/
78+
args: --root-dir "${{ github.workspace }}/site" --exclude "avito\.ru" --exclude "^https://p141592\.github\.io/avito_python_api/" --retry-wait-time 5 --max-retries 3 --timeout 30 site/
7479

7580
deploy:
7681
runs-on: ubuntu-latest

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
export
33

44
REGISTRY=10.11.0.9:5000
5+
MKDOCS_ENV=DISABLE_MKDOCS_2_WARNING=true
56

67
check: test typecheck lint build
78

@@ -42,10 +43,10 @@ release:
4243
poetry publish --no-interaction
4344

4445
docs-serve:
45-
poetry run mkdocs serve
46+
$(MKDOCS_ENV) poetry run mkdocs serve
4647

4748
docs-strict:
48-
poetry run mkdocs build --strict
49+
$(MKDOCS_ENV) poetry run mkdocs build --strict
4950
poetry run python scripts/check_readme_domain_coverage.py
5051
poetry run pytest tests/docs/
5152

@@ -62,7 +63,8 @@ docs-report:
6263
poetry run python scripts/build_docs_quality_report.py
6364

6465
docs-check: docs-strict
65-
lychee --exclude "avito\.ru" --retry-wait-time 5 --max-retries 3 --timeout 30 site/
66+
ln -sfn . site/avito_python_api
67+
lychee --root-dir "$(PWD)/site" --exclude "avito\.ru" --exclude "^https://p141592\.github\.io/avito_python_api/" --retry-wait-time 5 --max-retries 3 --timeout 30 site/
6668

6769
qa-docs:
6870
poetry run pydocstyle \

0 commit comments

Comments
 (0)