-
Notifications
You must be signed in to change notification settings - Fork 355
Fixing indentation of refs in docs #239
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
Conversation
Now it should be simple: merges to master are the correct way to proceed :) |
This looks great! I'll have a look at the resulting built docs before merging though :) |
Yes please do, I actually didn't check it locally... I will take a look as well once it is done building :) |
There's still a few ones mall-formatted. E.g. https://tslearn--239.org.readthedocs.build/en/239/gen_modules/piecewise/tslearn.piecewise.PiecewiseAggregateApproximation.html#tslearn.piecewise.PiecewiseAggregateApproximation Let me see what's going on there... |
I haven't checked why. EDIT: you were faster than I was :) |
Is there some documentation available on this citation format? I am currently checking https://build-me-the-docs-please.readthedocs.io/en/latest/Using_Sphinx/UsingBibTeXCitationsInSphinx.html but this looks quite different to our format... |
I couldn't find any good one except this: https://numpydoc.readthedocs.io/en/latest/format.html (where they do not have the indenting I thought was the solution...). I can try out things locally and let you know. |
OK, so my initial guess was definitely wrong: the bug does not come from indentation. It happens when the same reference is used in several places in the same resulting doc page. I am investigating how things should be done in this case. |
OK so my previous guess was wrong too :) I think it happens each time we try to have a numbered reference in a class docstring (the same reference would work in a method docstring for the same class). I don't know why (couldn't find anything related on the web) and I don't know if we should rather remove all numbered references in class docstrings (as done for |
Perhaps we could change from a number system to this system where the author names are used? |
I tried, but it is ineffective: whatever the key we use, some prefix is added. |
Closing since this was in fact fixed by upgrading numpydoc to 1.0 |
This PR handles #238 and fixes the indentation of the references in our docs.
As the branch structure changed quite a bit, I did not know to which branch I had to merge my PR, tell me if I need to change this :).