Fix warning level for links to excluded pages#4119
Conversation
92cbefa to
cd69831
Compare
|
I refreshed the branch after the matrix showed failures in the full build suite. The original CPython failures were from an indented multiline The two remaining red jobs fail before MkDocs tests run, during |
|
The two failing PyPy 3.9 jobs here are from CI bootstrap dependency drift, not this excluded-link change. I opened #4121 as a separate CI-only fix to move the PyPy leg to 3.11; its full matrix is green, including all three PyPy 3.11 jobs. |
|
CI note: I checked the two red PyPy 3.9 jobs. Both fail before the MkDocs tests start, during
|
Fixes #3900.
Summary
INFOwhen an included page links to an excluded/draft page.DEBUG.draft_docsfixture so the full matrix keeps matching the intended user guide example.Tests
PYTHONPATH=/home/sean/Projects/_upstream/mkdocs-3900 /home/sean/Projects/_upstream/mkdocs/.venv/bin/python -m unittest mkdocs.tests.structure.page_tests.RelativePathExtensionTestsPYTHONPATH=/home/sean/Projects/_upstream/mkdocs-3900 /home/sean/Projects/_upstream/mkdocs/.venv/bin/python -m unittest mkdocs.tests.build_tests.BuildTests.test_draft_pages_with_invalid_linksPYTHONPATH=/home/sean/Projects/_upstream/mkdocs-3900 /home/sean/Projects/_upstream/mkdocs/.venv/bin/python -m unittest mkdocs.tests.structure.page_tests mkdocs.tests.build_tests.BuildTests.test_draft_pages_with_invalid_linksPYTHONPATH=/home/sean/Projects/_upstream/mkdocs-3900 /home/sean/Projects/_upstream/mkdocs/.venv/bin/python -m unittest discover -s mkdocs -p "*tests.py"uvx --from hatch --with pip hatch run +py=3.10 test:testpassed fortest.py3.10-defaultandtest.py3.10-min-req, 726 tests each./home/sean/Projects/_upstream/mkdocs/.venv/bin/black --check --diff mkdocs/structure/pages.py mkdocs/tests/structure/page_tests.py mkdocs/tests/build_tests.py/home/sean/Projects/_upstream/mkdocs/.venv/bin/isort --check-only --diff mkdocs/structure/pages.py mkdocs/tests/structure/page_tests.py mkdocs/tests/build_tests.py/home/sean/Projects/_upstream/mkdocs/.venv/bin/ruff check mkdocs/structure/pages.py mkdocs/tests/structure/page_tests.py mkdocs/tests/build_tests.pygit diff --check