Skip to content

how to write a functional griffe extension? (all current examples in documentation are broken?) #373

Answered by pawamoy
kratsg asked this question in Q&A
Discussion options

You must be logged in to vote

TypeError: InspectSpecificObjects.init() missing 1 required positional argument: 'objects'

Indeed in the first example the extension requires an argument:

plugins:
- mkdocstrings:
    handlers:
      python:
        options:
          extensions:
          - docs/my_extension.py:
              objects: [some, objects]

Your second error message looks super weird to me. "No such command 'build'" then proceeds to build anyway?

Could not collect 'module_qc_database_tools.yarr.direct'

Try running in verbose mode to get more logs: mkdocs build -v. I won't be able to help without more info 😄

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kratsg
Comment options

@pawamoy
Comment options

Answer selected by kratsg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
docs Improvements or additions to documentation
2 participants