Skip to content

Commit

Permalink
Release 0.6.6 (#46)
Browse files Browse the repository at this point in the history
* cov

* rearrange, fix pylint

* bump minor version

* changelog
  • Loading branch information
chrieke committed Nov 20, 2023
1 parent 7bbd395 commit 7556808
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ pip show mkdocs-exclude-search

## Versions

### [0.6.6](https://pypi.org/project/mkdocs-exclude-search/) (2023-11-20)
- Prevents long mkdocs logger deprecation warning (#45).

### [0.6.5](https://pypi.org/project/mkdocs-exclude-search/) (2023-02-04)
- Fixes issue of search-plugin not being recognized, mkdocs-material adjusted search namespace (#42).

Expand Down
4 changes: 2 additions & 2 deletions coverage.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions mkdocs_exclude_search/plugin.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import json
from pathlib import Path

import logging
from typing import List, Dict, Tuple, Union, Any
from fnmatch import fnmatch

import mkdocs
from mkdocs.config import config_options
from mkdocs.plugins import BasePlugin
from packaging.version import Version

from mkdocs_exclude_search.utils import explode_navigation

from packaging.version import Version

import logging
logger = logging.getLogger("mkdocs.plugins.mkdocs-exclude-search")
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
logger.addFilter(warning_filter)
def get_logger():
logger = logging.getLogger("mkdocs.plugins.mkdocs-exclude-search")
MKDOCS_LOG_VERSION = "1.2"
if Version(mkdocs.__version__) < Version(MKDOCS_LOG_VERSION):
# filter doesn't do anything since that version
# pylint: disable=import-outside-toplevel, no-name-in-module
from mkdocs.utils import warning_filter

logger.addFilter(warning_filter)

def get_logger():
return logger


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-exclude-search",
version="0.6.5",
version="0.6.6",
description="A mkdocs plugin that lets you exclude selected files or sections "
"from the search index.",
long_description=LONG_DESCRIPTION,
Expand Down

0 comments on commit 7556808

Please sign in to comment.