mkdocs-meta-descriptions-plugin icon indicating copy to clipboard operation
mkdocs-meta-descriptions-plugin copied to clipboard

Review code to take into account the changes from MkDocs 1.4.0

Open prcr opened this issue 2 years ago • 2 comments

Go through the breaking changes from the MkDocs 1.4.0 changelog and make any necessary changes to the code to ensure that it is compatible with MkDocs 1.4.0.

Supersedes https://github.com/prcr/mkdocs-meta-descriptions-plugin/issues/193.

prcr avatar May 23 '23 12:05 prcr

Based on the file-level summary, it appears that no changes are needed in the project's setup.py and plugin.py files to ensure compatibility with MkDocs 1.4.0. Therefore, you can continue to use these files as is without any modifications.

Changes on setup.py

No changes are needed in this file to ensure compatibility with MkDocs 1.4.0.

Changes on mkdocs_meta_descriptions_plugin/plugin.py

No changes are needed in this file based on the MkDocs 1.4.0 changelog.

codeautopilot[bot] avatar May 23 '23 12:05 codeautopilot[bot]

Consider applying the following:

  • Replace File.src_path to not deal with backslashes
  • Type annotations for event handler methods
  • Rework ConfigOption schemas as class-based

prcr avatar May 23 '23 13:05 prcr