sktime icon indicating copy to clipboard operation
sktime copied to clipboard

[DOC] FourierFeatures sp_list is not rendering the bullet points correctly

Open benHeid opened this issue 1 year ago • 2 comments

Describe the issue linked to the documentation

The bullet point for sp_list of FourierFeatures are not rendered correctly: https://www.sktime.net/en/latest/api_reference/auto_generated/sktime.transformations.series.fourier.FourierFeatures.html

Suggest a potential alternative/fix

benHeid avatar Feb 12 '24 20:02 benHeid

good first issue, right?

fkiraly avatar Feb 13 '24 02:02 fkiraly

sorry, this one just got done here: https://github.com/sktime/sktime/pull/5984

But there are many similar places in the documentation where:

  • bullet point lists do not render correctly
  • code snippets do not render correctly (use single apostrophe instead of double)

fkiraly avatar Feb 22 '24 22:02 fkiraly

@fkiraly Can you please make yourself clear as I think there is a contradiction in 2 statements by you

https://github.com/sktime/sktime/issues/5932#issuecomment-1960436557

But there are many similar places in the documentation where:

  • code snippets do not render correctly (use single apostrophe instead of double)

https://github.com/sktime/sktime/pull/5984#pullrequestreview-1897093445

Btw, some docstrings use single-apostrophe (grave) by error instead of double-apostrope (double-grave) to render code snippets. If you encounter these, it would also be great to replace them.

Q1. What should be used in docstrings ` (single-grave) or `` (double-grave) for code snippets?

Q2. If we keep only ` (single-grave) or only `` (double-grave) in all the docstrings, will that solve the problem?

geetu040 avatar Feb 24 '24 17:02 geetu040

@geetu040, apologies for the confusion, this is due to ambiguous formulation on my side.

The first statement looks like it says the opposite, but in the brackets I meant: the docstrings do not render correctly because they use single apostrophe instead of double. I.e., the brackets were referring to the "do not render correctly", and were abridged 3rd person plural, rather than imperative singular.

Either way, Q1: double-grave is correct, you can check if you experiment with it and inspect the rendered docs. One word of caution though, this should only apply to code blocks. Single-grave produces italics, so there might be a few rare places where italics are intended. If the reference are variable names, code blocks or similar, it sould be double-grave, and that should be the vast majority of occurrences.

Q2: Yes, with potential exception where single-grave is intended. I can not think of any such example though, and if they exist they will be very rare.

fkiraly avatar Feb 24 '24 18:02 fkiraly

@fkiraly Thanks for the clarification. I am working on a script that locates all the incorrectly used single-grave. Although there are some places where we need the single-grave, yet they are few and I'll make sure I don't eliminate them. I will soon create a PR that fixes all the incorrect use of single-grave while keeping single-grave at place where needed. Let me know if there is anything else I should know.

geetu040 avatar Feb 25 '24 07:02 geetu040

I am working on a script that locates all the incorrectly used single-grave.

Interesting - we could use that in testing.

Let me know if there is anything else I should know.

There will likely be some cases where naive replacing will trigger the "maximum characters per line" limit, in this case a linebreak may have to be introduced, and with proper indentation. This indentation level is not always obvious.

fkiraly avatar Feb 25 '24 13:02 fkiraly