Override ref(link to docs) extension to open new tab(window)
If link has external link, set HTML attribute target and rel.
target: To open other window(tab)rel: For performance and vulnerability
Install package from GitHub Releases.
pip install --find-links=https://github.com/attakei-lab/sphinxcontrib-external-link/releases sphinxcontrib-external-linkAdd this extension into your conf.py of Sphinx.
extensions = [
"sphinxcontrib.external_link",
]Apache-2.0