我正在使用mkdocs
、mkdocs-smae-dir
、mkdocs-simple
、mkdocstrings
和mkdocstrings-python-legacy
记录一个小软件包。当我尝试使用mkdocs-serve
查看我的文档时,它产生了以下属性错误:
AttributeError: module 'mkdocstrings_handlers.python' has no attribute 'get_handler'
我的mkdocs.yml
的内容是,
site_name: TOLIMAN
docs_dir: .
extra_css:
- extra.css
plugins:
- search
- same-dir
- simple
- mkdocstrings:
default_handler: python
- spellcheck
theme:
name: material
和poetry show --only=docs
产生,
certifi 2022.12.7 Python package for providing Mozilla's CA Bundle.
charset-normalizer 3.0.1 The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
click 8.1.3 Composable command line interface toolkit
codespell 2.2.2 Codespell
colorama 0.4.6 Cross-platform colored terminal text.
docstring-parser 0.15 Parse Python docstrings in reST, Google and Numpydoc format
editdistpy 0.1.3 Fast Levenshtein and Damerau optimal string alignment algorithms.
ghp-import 2.1.0 Copy your docs directly to the gh-pages branch.
idna 3.4 Internationalized Domain Names in Applications (IDNA)
jinja2 3.1.2 A very fast and expressive template engine.
markdown 3.3.7 Python implementation of Markdown.
markupsafe 2.1.2 Safely add untrusted strings to HTML/XML markup.
mergedeep 1.3.4 A deep merge function for 🐍.
mkdocs 1.4.2 Project documentation with Markdown.
mkdocs-autorefs 0.4.1 Automatically link across pages in MkDocs.
mkdocs-material 9.0.5 Documentation that simply works
mkdocs-material-extensions 1.1.1 Extension pack for Python Markdown and MkDocs Material.
mkdocs-same-dir 0.1.2 MkDocs plugin to allow placing mkdocs.yml in the same directory as documentation
mkdocs-simple-plugin 2.1.2 Plugin for adding simple wiki site creation from markdown files interspersed within your code with MkDocs.
mkdocs-spellcheck 1.0.0 A spell checker plugin for MkDocs.
mkdocstrings 0.19.1 Automatic documentation from sources, for MkDocs.
mkdocstrings-python-legacy 0.2.3 A legacy Python handler for mkdocstrings.
packaging 23.0 Core utilities for Python packages
pygments 2.14.0 Pygments is a syntax highlighting package written in Python.
pymdown-extensions 9.9.1 Extension pack for Python Markdown.
python-dateutil 2.8.2 Extensions to the standard Python datetime module
pytkdocs 0.16.1 Load Python objects documentation.
pyyaml 6.0 YAML parser and emitter for Python
pyyaml-env-tag 0.1 A custom YAML tag for referencing environment variables in YAML files.
regex 2022.10.31 Alternative regular expression module, to replace re.
requests 2.28.2 Python HTTP for Humans.
six 1.16.0 Python 2 and 3 compatibility utilities
symspellpy 6.7.7 Python SymSpell
urllib3 1.26.14 HTTP library with thread-safe connection pooling, file post, and more.
watchdog 2.2.1 Filesystem events monitoring
我该如何解决这个错误?
1条答案
按热度按时间92dk7w1h1#
相当无聊的是,我不得不使用
poetry install
重新安装环境。