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.

Look at the demo.

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.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

mkdocs_open_in_new_tab-1.0.2-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.2.tar.gz.

File metadata

File hashes

Hashes for mkdocs-open-in-new-tab-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9d4f20210205e1bc8565c4d07391edb6823b7226323ec61f1f00f38fcb334eb3
MD5 fbd99af59ef28fe38abb16887acac7c7
BLAKE2b-256 71903e240fb33f0b787cefd834af5afcb5030402c1e9856ff445859a530ec97c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_open_in_new_tab-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d65041f458d3f402cd66008416e81f622c4f60910f96c4616d9681c82c634be
MD5 cd89abe6a3baa52966e580788194633e
BLAKE2b-256 d8721429ff13aeb1bf667d13acb1e5d0d96e8338284d7439cc0f89d065ff87c0

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