nixpkgs/pkgs/development/python-modules/mkdocs-gitlab-plugin/mkdocs-gitlab-plugin.diff
Philippe Schaaf c082233850 python3Packages.mkdocs-gitlab-plugin: init at 0.1.4
Signed-off-by: Philippe Schaaf <philippe.schaaf@secunet.com>
2022-06-01 10:23:11 +02:00

37 lines
1.1 KiB
Diff

diff --git a/mkdocs_gitlab_plugin/plugin.py b/mkdocs_gitlab_plugin/plugin.py
index e8d7ab7..8b883f5 100644
--- a/mkdocs_gitlab_plugin/plugin.py
+++ b/mkdocs_gitlab_plugin/plugin.py
@@ -3,7 +3,7 @@
import re
import mkdocs
-from mkdocs.config import Config
+from mkdocs.config.config_options import Type
from mkdocs.plugins import BasePlugin
class GitlabLinksPlugin(BasePlugin):
@@ -13,8 +13,8 @@ class GitlabLinksPlugin(BasePlugin):
'''
config_scheme = (
- ('gitlab_url', mkdocs.config.config_options.Type(str, default='http://gitlab.com/XXX')),
- ('verbose', mkdocs.config.config_options.Type(bool, default=False))
+ ('gitlab_url', Type(str, default='http://gitlab.com/XXX')),
+ ('verbose', Type(bool, default=False))
)
TOKEN_PATHS = {
diff --git a/mkdocs_gitlab_plugin/test.py b/mkdocs_gitlab_plugin/test.py
index 4a5c35f..d5a19c6 100644
--- a/mkdocs_gitlab_plugin/test.py
+++ b/mkdocs_gitlab_plugin/test.py
@@ -1,7 +1,7 @@
import sys
-from plugin import GitlabLinksPlugin
+from .plugin import GitlabLinksPlugin
if __name__ == '__main__':
plugin = GitlabLinksPlugin()