DoubleML / doubleml-docs

Documentation and User Guide for DoubleML - Double Machine Learning in Python & R
https://docs.doubleml.org
BSD 3-Clause "New" or "Revised" License
20 stars 10 forks source link

Copy Button not working properly for R #36

Closed SvenKlaassen closed 3 years ago

SvenKlaassen commented 3 years ago

Using the Copy Button for the R Code, copies the row numbers, too.

See for example: https://docs.doubleml.org/stable/intro/intro.html

MalteKurz commented 3 years ago

Thanks for reporting this. In an older version, it looked like this: image The line numbers where separated (by a vertical line) and the copy-button did work as intended. Now it looks like this image and the copy-button is no longer working.

I will check which dependency update did cause this change.

MalteKurz commented 3 years ago

Tried to track it down. From the github actions history it looks like the root cause is in the following diff of package versions Screenshot from 2021-08-03 14-05-33

MalteKurz commented 3 years ago

Ok it seems like the combination of Sphinx in version >4.0.0 and jupyter-sphinx somehow causes this problem. The only solution I found so far is removing the line numbers. I think this should be fine. The functioning of the copy-button is definitely more valuable then line numbers....