mkdocs-open-in-new-tab is an MkDocs plugin designed to automatically open outgoing links and PDF files in a new browser tab. As of version 1.0.8, it provides stable functionality for enhancing user navigation in MkDocs-generated documentation sites. Releases are infrequent but stable, addressing key compatibility and feature needs.
pip install mkdocs-open-in-new-tabVerified import paths — ran on the pinned version, not inferred.
To enable the plugin, add 'open-in-new-tab' to the 'plugins' section of your `mkdocs.yml` configuration file. You can optionally configure 'external_only' and 'pdf_only' to control its behavior.
Install MkDocs: `pip install mkdocs`
Upgrade to version 1.0.3 or newer: `pip install --upgrade mkdocs-open-in-new-tab`
Review the plugin's configuration options in `mkdocs.yml`. Set `external_only: true` to target only external links, and `pdf_only: true` (or `false`) based on your specific needs for PDF links.