MkDocs Open In New Tab Plugin

1.0.8 · active · verified Thu Apr 16

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.

Common errors

Warnings

Install

Imports

Quickstart

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.

site_name: My Docs

plugins:
  - open-in-new-tab:
      external_only: true  # Only open external links in new tabs
      pdf_only: false      # Do not open PDF links in new tabs

view raw JSON →