Skip to content

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

Closed
wants to merge 2 commits into from
Closed

Fixing indentation of refs in docs #239

wants to merge 2 commits into from

Conversation

GillesVandewiele
Copy link
Contributor

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 :).

@rtavenar
Copy link
Member

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 :).

Now it should be simple: merges to master are the correct way to proceed :)

@rtavenar
Copy link
Member

This looks great! I'll have a look at the resulting built docs before merging though :)

@GillesVandewiele
Copy link
Contributor Author

Yes please do, I actually didn't check it locally... I will take a look as well once it is done building :)

@GillesVandewiele
Copy link
Contributor Author

@rtavenar
Copy link
Member

rtavenar commented May 20, 2020

KShape is still buggy.
UCR_UEA_datasets and CachedDatasets too.
OneD_SAX, SAX and PAA too.
ShapeletModel and SerializedShapeletModel too.

I haven't checked why.

EDIT: you were faster than I was :)

@GillesVandewiele
Copy link
Contributor Author

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...

@rtavenar
Copy link
Member

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.

@rtavenar
Copy link
Member

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.

@rtavenar
Copy link
Member

rtavenar commented May 20, 2020

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 GloballignmentKernelKMeans for example) or just leave it as is with weird reference numbering.

@GillesVandewiele
Copy link
Contributor Author

Perhaps we could change from a number system to this system where the author names are used?

@rtavenar
Copy link
Member

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.

@rtavenar
Copy link
Member

Closing since this was in fact fixed by upgrading numpydoc to 1.0

@rtavenar rtavenar closed this May 20, 2020
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