We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
links = $('a.reference.external'); function striphttps(a, link) { if (link.text.startsWith('https://')) { link.text = link.text.substring(8); } } links.map(striphttps); function stripenwikipedia(a, link) { if (link.text.startsWith('en.wikipedia.org/wiki/')) { if (link.previousSibling !== null && link.previousSibling.textContent.startsWith('Wikipedia:')) { link.text = link.text.substring(22); } else { link.text = "wikipedia: " + link.text.substring(22); } } } links.map(stripenwikipedia);
[EDIT]
The code for this lives in westurner/sphinx_wrd_theme: https://github.com/westurner/wrd_sphinx_theme/blob/master/wrd_sphinx_theme/template/static/js/linkstyles.js
The text was updated successfully, but these errors were encountered:
This should be optional so that copy/paste to non-HTML formats doesn't break links (and strip the helpful https:// part)
One approach would be to store the original link text as an extra attribute and revert when the toggle checkbox is clicked.
Sorry, something went wrong.
This could be very helpful on mobile devices.
Additional patterns:
No branches or pull requests
[EDIT]
The code for this lives in westurner/sphinx_wrd_theme:
https://github.com/westurner/wrd_sphinx_theme/blob/master/wrd_sphinx_theme/template/static/js/linkstyles.js
The text was updated successfully, but these errors were encountered: