mkdocs-open-in-new-tab

MkDocs plugin to open outgoing links and PDFs in new tab.


Keywords
mkdocs, plugin, open, in, new, tab, relative, links
License
MIT
Install
pip install mkdocs-open-in-new-tab==1.0.3

Documentation

MkDocs - Open in a new tab plugin

This plugin adds js to open outgoing links and PDFs in a new tab.

Look at the demo.

Installation

Install the plugin using pip from PyPI:

pip install mkdocs-open-in-new-tab

Usage

Add the plugin to your mkdocs.yml:

plugins:
  - search
  - open-in-new-tab

Testing

Link to Google and GitHub. Both should links should open in a new tab.

Relative link to Relative link should open in the same tab.

Sample PDF link to PDF should open in a new tab (pdf from here).

License

This project is licensed under the terms of the MIT license.