Skip to content

Conversation

@ChrisMayfield
Copy link
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
Copy link
Contributor

oprypin commented Sep 5, 2023

The idea is good, I think I overlooked this.

The code is probably also good.

But it needs a new test. And in fact existing tests now seem to be failing for some reason

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