Skip to content

Commit

Permalink
Fix include_package_data
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubAndrysek committed Nov 18, 2024
1 parent 4d9116b commit 51327e1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
8 changes: 0 additions & 8 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ plugins:
The plugin supports the following configuration option:
- `add_icon:` (default: false)
- If set to true, the plugin will add an icon next to external links.

Expand Down Expand Up @@ -143,13 +142,6 @@ if (typeof document$ !== "undefined") {
</details>






<!-- ## Known issues
This extension does not work with mkdocs-material [navigation.instant](https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#instant-loading). JS could not be loaded when the page is loaded instantly. If you know how to fix it, please let me know. Issue is [here](https://github.com/JakubAndrysek/mkdocs-open-in-new-tab/issues/2). -->

## License

This project is licensed under the terms of the MIT license.
18 changes: 11 additions & 7 deletions open_in_new_tab/css/open_in_new_tab.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
/*
* Materialize links that open in a new window with a right-up arrow icon
* Materialize external links that open in a new window with a right-up arrow icon
* (except those in the header and footer).
* Works with the material and readthedocs themes.
* Author: @ebouchut (https://github.com/ebouchut)
* https://github.com/JakubAndrysek/mkdocs-open-in-new-tab/issues/4
*/
a[target="_blank"]::after {
content: "↗";
display: inline-block;
margin-left: 0.2em;
width: 1em;
height: 1em;

.md-main a[target="_blank"]::after,
.document a[target="_blank"]::after {
content: "↗";
display: inline-block;
margin-left: 0.2em;
width: 1em;
height: 1em;
}
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def import_dev_requirements():
# https://pypi.org/project/mkdocs-open-in-new-tab/
setup(
name="mkdocs-open-in-new-tab",
version="1.0.6",
version="1.0.8",
description="MkDocs plugin to open outgoing links and PDFs in new tab.",
long_description=readme(),
long_description_content_type="text/markdown",
Expand All @@ -47,6 +47,9 @@ def import_dev_requirements():
],
packages=find_packages(),
include_package_data=True,
package_data={
'open_in_new_tab': ['css/*.css', 'js/*.js'],
},
entry_points={
"mkdocs.plugins": [
"open-in-new-tab = open_in_new_tab.plugin:OpenInNewTabPlugin",
Expand Down

0 comments on commit 51327e1

Please sign in to comment.