Skip to content

remove string_types for compability with new mkdocs #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions mkdocs_git_revision_date_localized_plugin/plugin.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import re
from mkdocs.config import config_options
from mkdocs.plugins import BasePlugin
from mkdocs.utils import string_types
from .util import Util

class GitRevisionDateLocalizedPlugin(BasePlugin):
config_scheme = (
('locale', config_options.Type(string_types, default='')),
('type', config_options.Type(string_types, default='date'))
('locale', config_options.Type(str, default='')),
('type', config_options.Type(str, default='date'))
)

def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='mkdocs-git-revision-date-localized-plugin',
version='0.4.5',
version='0.4.6',
description='Mkdocs plugin that enables displaying the localized date of the last git modification of a markdown file.',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down