executablebooks / sphinx-external-toc

A sphinx extension that allows the site-map to be defined in a single YAML file
https://sphinx-external-toc.readthedocs.io
MIT License
32 stars 18 forks source link

Add option to allow table of content links to be opened in new tab or window #91

Closed samjwu closed 1 year ago

samjwu commented 1 year ago

Context

Corporate policies often require external links to open in a new tab or window for GDPR compliance.

Proposal

Add option to allow table of content links to be opened in new tab or window.

To implement this, an additional option in the YAML file will differentiate between the default (open link in same window) and the new feature (open link in different window).

Tasks and updates

welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

samjwu commented 1 year ago

https://pypi.org/project/sphinx-new-tab-link/ (Open external links in new tabs of the browser in Sphinx HTML documents) implements this functionality