[MRG] Warns when reference can not be found.#13365
[MRG] Warns when reference can not be found.#13365adrinjalali merged 5 commits intoscikit-learn:masterfrom
Conversation
thomasjpfan
commented
Mar 1, 2019
- Warns when reference can not be found with single backticks.
- All glossary links will look like normal links (not bold).
|
Cool ! For the record, we now have 992 new warnings when building the doc. Details |
| font-size: 1em; | ||
| font-weight: inherit; | ||
| padding: 0; | ||
| } |
There was a problem hiding this comment.
Was there the idea to do this from the python side instead of with css?
(in any case, otherwise some more comments here to explain it would be welcome)
There was a problem hiding this comment.
This PR was updated with a python solution. It forces any roles that resolve to term to have the same html structure as a normal term role.
@TomDLT yes, we had a try to fix all those instances, but that can be a (or more) separate PRs. It touches tons of lines, but it's worth fixing them. |
|
I'm not sure that it's worth warning when reference not found... part of
the point of the single backticks is to allow it to be used for code
elements as a default. I don't think we benefit from this rigorous a doc
linter, either.
|
|
We had a discussion about this on Friday, but should probably have recorded that better on github first. The idea was that (long term) we would use double backticks when we actually know it is code and not a link to the glossary or to a class method. |
|
Another concern I heard was that removing the warnings would make it hard to catch misspelled references. I am 60/40 in favor of having no warnings and would be okay with some misspelled references that turn into code. |
|
Let's warn but set them to ignore by default. That makes it easy to clean
them when we have someone enthusiastic to do so :)
|
This can be done with an environment variable, @adrinjalali @jorisvandenbossche What do you think? |
|
I am now 80/20 for ignoring the warnings by default, with a |
|
Yes, "please use double backticks" is the reason we put in a default_role
at least as much as to get automatic links.
|
* DOC Adds term to column_transformer * DOC Adjusts sphinx resolution * DEV Adds comment * ENH Uses python instead of css
This reverts commit e6c3b7e.
This reverts commit e6c3b7e.
* DOC Adds term to column_transformer * DOC Adjusts sphinx resolution * DEV Adds comment * ENH Uses python instead of css