Log excluded links only if referring page is included by ChrisMayfield · Pull Request #3371 · mkdocs/mkdocs · GitHub
Skip to content

Log excluded links only if referring page is included#3371

Closed
ChrisMayfield wants to merge 3 commits into
mkdocs:masterfrom
ChrisMayfield:master
Closed

Log excluded links only if referring page is included#3371
ChrisMayfield wants to merge 3 commits into
mkdocs:masterfrom
ChrisMayfield:master

Conversation

@ChrisMayfield

Copy link
Copy Markdown
Contributor

I have several excluded folders in my site (via the exclude_docs setting). The excluded folders contain pages that refer to images and other files in the same folder. Would you consider not logging INFO messages for excluded targets when the referring page is also excluded?

For example, the three "Doc file ... contains a link" INFO lines below are repeated in the log every time I save a file and the site is rebuilt. These log entries are irrelevant, because the doc files are also excluded.

INFO    -  Building documentation...
INFO    -  Cleaning site directory
INFO    -  Doc file 'hw/hw4_draft.md' contains a link to 'hw/hw4_draft/rhody.py' which is excluded from the built site.
INFO    -  Doc file 'quiz/1a/written_v1.md' contains a link to 'quiz/1a/q1_code.svg' which is excluded from the built site.
INFO    -  Doc file 'quiz/1a/written_v2.md' contains a link to 'quiz/1a/q1_code.svg' which is excluded from the built site.
INFO    -  The following pages are being built only for the preview but will be excluded from `mkdocs build` per `exclude_docs`:
             - http://127.0.0.1:8000/cs149/hw/hw4_draft/
             - http://127.0.0.1:8000/cs149/quiz/1a/written_v1/
             - http://127.0.0.1:8000/cs149/quiz/1a/written_v2/

@oprypin

This comment was marked as abuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants