ansible / ansible-documentation

Ansible community documentation
https://docs.ansible.com/
GNU General Public License v3.0
73 stars 431 forks source link

Exclude permalink from word selection #245

Open pyhedgehog opened 1 year ago

pyhedgehog commented 1 year ago

Here are screenshot of problem: image When I double-click on section header to copy it to my code I don't want to finish with permalink-emoji within my YAML. :-) Seems it rathes simple to fix - permalink matches .rst-content dl dt .headerlink, selector in theme.css. So all we need is to add user-select: none; like (and possibly a lot of browser-specific lines) there. At least this works-for-me in Firefox.

felixfontein commented 1 year ago

https://github.com/ansible-community/antsibull-docs/pull/194 fixes a similar issue. The main issue reported here stems from sphinx_rtd_theme.

felixfontein commented 1 year ago

https://github.com/readthedocs/sphinx_rtd_theme/pull/1497 fixes the reported issue with the theme.

samccann commented 5 months ago

@felixfontein it's been 7 months since your PR on the sphinx theme and no movement. Do you think we could patch this in the ansible sphinx theme instead? https://github.com/ansible-community/sphinx_ansible_theme