Skip to main content

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

Project description

MkDocs - Open in a new tab plugin

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

Installation

Install the plugin using pip from PyPI:

pip3 install mkdocs-open-in-new-tab-plugin

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-open-in-new-tab-1.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

mkdocs_open_in_new_tab-1.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-open-in-new-tab-1.0.1.tar.gz.

File metadata

File hashes

Hashes for mkdocs-open-in-new-tab-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c8d66effdec8ee1bb20028d7bcced8950c9467096636c1089847c1b88fddad94
MD5 02a713e9a2550c157388f1a4df009948
BLAKE2b-256 3c0da554f6e0ef72697966c29e3a9a5327bb1f775553abc02889a5394ec33f3a

See more details on using hashes here.

File details

Details for the file mkdocs_open_in_new_tab-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_open_in_new_tab-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8df3ec6015c4433ed2b041b58965709e38da43bf94964b91c5dbe6d83fcc1f4
MD5 6b9d96ccb70a371003cefa20a2b4c7f7
BLAKE2b-256 0c68ad428bba87a07312d6e8c7e28bbf48ca32995f5cfc4f6a770227a75f154c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page