Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strict=true fails to change loglevel from Warning to Error #1756

Closed
st-- opened this issue Jan 20, 2022 · 0 comments · Fixed by #1776
Closed

strict=true fails to change loglevel from Warning to Error #1756

st-- opened this issue Jan 20, 2022 · 0 comments · Fixed by #1776

Comments

@st--
Copy link
Contributor

st-- commented Jan 20, 2022

With strict=true, Documenter errors when encountering an issue, but it doesn't actually say "Error" - only "Warning" - on the issue itself, which makes it non-intuitive to figure out what's going on (e.g. search log for error).

What happened: At the example of this docs build:

┌ Warning: no docs found for 'LaplaceApproximation' in `@docs` block in src/api/index.md:7-11
│ ```@docs
│ SparseVariationalApproximation
│ LaplaceApproximation
│ posterior
│ ```
└ @ Documenter.Expanders ~/.julia/packages/Documenter/qdbx6/src/Expanders.jl:336
(...)
ERROR: LoadError: `makedocs` encountered an error. Terminating build

What I would have expected (also based on looking into the source, e.g. loglevel in DocChecks.jl):
The first line should have read

┌ Error: no docs found for 'LaplaceApproximation' in `@docs` block in src/api/index.md:7-11

instead.

@st-- st-- changed the title strict=true does not change loglevel from Warning to Error strict=true fails to change loglevel from Warning to Error Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants