{"categories":[{"label":"Documentation","url":"https://skillfed.io/packages/category/documentation"}],"enrichment":{"capability":"A MkDocs plugin that injects JavaScript to automatically open external links and downloadable files (PDFs, documents, archives) in a new browser tab while keeping relative links in the same tab.","skillfed_tags":["mkdocs-plugin","link-behavior"],"use_cases":["Documentation sites that link to external resources and want to keep readers on the site.","Adding visual indicators to external links for better UX and accessibility.","Ensuring PDF downloads and file links open in new tabs without modifying Markdown.","Sites using mkdocs-material that need consistent link behavior across instant-loaded pages."],"what_it_does":"This plugin modifies the behavior of links in a MkDocs-generated site by injecting JavaScript that detects external links and files, then forces them to open in a new tab. It distinguishes between external URLs (by comparing hostname) and downloadable file types (PDF, Office documents, archives) and applies the `target=\"_blank\"` and `rel=\"noopener\"` attributes to them. Relative links within your documentation remain unaffected and open in the same tab.\n\nThe plugin is designed to improve user experience and accessibility by preventing external navigation from losing the reader's place in your documentation. It works by hooking into MkDocs' page context and injecting a small JavaScript file into every page. It includes optional styling to add a visual indicator (\u2197 arrow) next to links that will open in a new tab, and it explicitly handles compatibility with mkdocs-material's instant loading feature.","worth_installing":"Yes, if you maintain a MkDocs site and want external links to open in new tabs without manual Markdown edits. The plugin is stable, has no security vulnerabilities, and adds minimal overhead. Dormant maintenance is acceptable here since the feature is simple and unlikely to break with MkDocs updates; however, verify compatibility with your specific MkDocs version and theme before relying on it for production."},"id":"mkdocs-open-in-new-tab","links":{"html":"https://skillfed.io/packages/mkdocs-open-in-new-tab","md":"https://skillfed.io/packages/mkdocs-open-in-new-tab.md","pypi":"https://pypi.org/project/mkdocs-open-in-new-tab/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-11-18","license_spdx":null,"license_treatment":"permissive","name":"mkdocs-open-in-new-tab","python_support":"supports_current","summary":"MkDocs plugin to open outgoing links and PDFs in new tab."},"popularity":{"monthly_downloads":197746,"position":9749,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.8"}
