sphinx-doc / sphinx

The Sphinx documentation generator
https://www.sphinx-doc.org/
Other
6.64k stars 2.13k forks source link

Line numbers could be selected in safari, and could not be selected in google chrome. #9855

Open graczhual opened 3 years ago

graczhual commented 3 years ago

Describe the bug

When we want to select code to copy, the line number and >>> should not be selected, but if we open the html in safari. the line number and >>> will be selected.

How to Reproduce

$ git clone https://github.com/.../some_project
$ cd some_project
$ pip install -r requirements.txt
$ cd docs
$ make html SPHINXOPTS="-D language=de"
$ # open _build/html/index and see bla bla

Expected behavior

image

Your project

https://tensorbay-python-sdk.graviti.com/en/latest/index.html

Screenshots

image

OS

Mac

Python version

3.9.4

Sphinx version

4.3.0

Sphinx extensions

[ "sphinx.ext.autodoc", # used for generating doc automatically "sphinx.ext.viewcode", # used for imbedding source code automatically "sphinx.ext.autosummary", # used for creating summary table automatically "sphinx.ext.todo", # used for recording todo and todolist "sphinx.ext.ifconfig", # used for configuration based on different condtitions "sphinx.ext.intersphinx", # used for embedding doc links from other project such as python "sphinx.ext.autosectionlabel", # used for referring sections in a rst file "sphinx.ext.napoleon", # used for being compatible with Google and Numpy doc style "sphinx.ext.coverage", # used for generating doc coverage report]

Extra tools

No response

Additional context

No response

tk0miya commented 3 years ago

Is this a bug of sphinx_rtd_theme? Please change the theme to the bundled one to identify the root cause of the bug.