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
Built Distribution
File details
Details for the file mkdocs-open-in-new-tab-1.0.1.tar.gz
.
File metadata
- Download URL: mkdocs-open-in-new-tab-1.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d66effdec8ee1bb20028d7bcced8950c9467096636c1089847c1b88fddad94 |
|
MD5 | 02a713e9a2550c157388f1a4df009948 |
|
BLAKE2b-256 | 3c0da554f6e0ef72697966c29e3a9a5327bb1f775553abc02889a5394ec33f3a |
File details
Details for the file mkdocs_open_in_new_tab-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_open_in_new_tab-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8df3ec6015c4433ed2b041b58965709e38da43bf94964b91c5dbe6d83fcc1f4 |
|
MD5 | 6b9d96ccb70a371003cefa20a2b4c7f7 |
|
BLAKE2b-256 | 0c68ad428bba87a07312d6e8c7e28bbf48ca32995f5cfc4f6a770227a75f154c |