Skip to content

Commit

Permalink
Remove warning about filter (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Franceschetti committed Aug 3, 2023
1 parent 1308248 commit 73b261e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions mermaid2/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@
"""
import os
import requests
import logging
import logging
from packaging.version import Version
import mkdocs

from mkdocs.utils import warning_filter


# -------------------
# Logging
# -------------------
log = logging.getLogger("mkdocs.plugins." + __name__)
log.addFilter(warning_filter)

MKDOCS_LOG_VERSION = '1.2'
if Version(mkdocs.__version__) < Version(MKDOCS_LOG_VERSION):
# filter doesn't do anything since that version
from mkdocs.utils import warning_filter
log.addFilter(warning_filter)

MERMAID_LABEL = "MERMAID2 -" # plugin's signature label
def info(*args) -> str:
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages


VERSION = '1.0.5'
VERSION = '1.0.6'

# required if you want to run tests
# pip install 'mkdocs-mermaid2-plugin[test]'
Expand All @@ -15,8 +15,8 @@ def readme():


LONG_DESCRIPTION = (
"A mkdocs plugin that interprets mermaid graphs in the markdown file."
"To install, please follow instructions in the readme file."
"An Mkdocs plugin that renders Mermaid graphs in the markdown file. "
"To install, please follow instructions in the Readme file.\n"
"This is a fork of the Pugong Liu's excellent project, "
"which is no longer maintained."
)
Expand Down

0 comments on commit 73b261e

Please sign in to comment.