You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a references section, each listed reference is preceded by (1, 2) which should point to all occurrences in the text. However, the 2 entry is there even though a reference is only mentioned once in the text, and thus the link doesn't work.
I wonder if it's correct to use double backticks when referring to arguments in the description (see e.g. the CSP docs, where the reg parameter is referred to in the description). In the type description of the parameters, these are usually rendered italic, so maybe we should enclose only with single backticks to be consistent.
I wonder if it's correct to use double backticks when referring to arguments in the description (see e.g. the CSP docs, where the reg parameter is referred to in the description). In the type description of the parameters, these are usually rendered italic, so maybe we should enclose only with single backticks to be consistent.
In SciPy they use single backticks, which IIRC means "generate a link", but I've never seen it actually do so. It renders them in italics.
Using double-backtics renders as code, which I think is better than italics.
Re double vs. single backticks, whatever we use is fine, but we should be consistent. I tend to prefer single (italic), because that's also how the description of a parameter (after the colon) is rendered. I'd use double backticks (code) only for real code snippets and not if only referring to the name of a parameter.
Activity
larsoner commentedon Apr 11, 2018
Also our CSS / Bootstrap width is somehow broken, probably by an upstream library update. See the page width of our stable docs:
http://mne-tools.github.io/stable/python_reference.html
Compared to our dev docs, which are narrower:
http://mne-tools.github.io/dev/python_reference.html
cbrnr commentedon Apr 11, 2018
Yep, they're narrower. I guess you would argue for restoring the wider layout, right?
larsoner commentedon Apr 11, 2018
Yes, any other choice would require a discussion :)
larsoner commentedon Apr 11, 2018
This is because variable names that end with
_are interpreted by Sphinx as links and generate warnings.sklearnhas this, too:https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/linear_model/ridge.py#L608
We should look to see if somehow they prevent these from being interpreted as links. Or maybe it's already fixed by latest
numpydoc...?larsoner commentedon Apr 11, 2018
In SciPy they use single backticks, which IIRC means "generate a link", but I've never seen it actually do so. It renders them in italics.
Using double-backtics renders as code, which I think is better than italics.
cbrnr commentedon Apr 11, 2018
Re double backticks, the sklearn example you've linked to doesn't use them. I've removed them in #5114 and the docs render fine I think: https://7698-1301584-gh.circle-artifacts.com/0/html/generated/mne.preprocessing.ICA.html#mne.preprocessing.ICA
So this could already be fixed?
Re double vs. single backticks, whatever we use is fine, but we should be consistent. I tend to prefer single (italic), because that's also how the description of a parameter (after the colon) is rendered. I'd use double backticks (code) only for real code snippets and not if only referring to the name of a parameter.
larsoner commentedon Apr 11, 2018
Double is the standard we have tried to follow so far
larsoner commentedon Apr 11, 2018
Yes it's in #5120