Skip to content

bug: Docstring Style Local Override Does Not Work #183

Open
@triley13

Description

@triley13

Description of the bug

Local override docstring_style for global configuration doesn't work.

To Reproduce

Declare in mkdocs.yaml:

plugins:
  - mkdocstrings:
      enabled: true
      default_handler: python
      handlers:
        python:
          options:
            docstring_style: google

-->

Inside file.md

::: path.to.module
    options:
      docstring_style: sphinx

Full traceback

Full traceback
N/A

Expected behavior

Override the default google style with the sphinx style for that one module.

Environment information

  • System: Windows-10-10.0.19045-SP0
  • Python: cpython 3.10.11
  • Environment variables:
  • Installed packages:
    • mkdocs v1.6.0
    • mkdocstrings v0.26.0
    • mkdocstrings-python v1.10.5
    • griffe v0.47.0

Additional context

I am using path: to load the module and I'm using mkdocs-monorepo-plugin.

Metadata

Metadata

Assignees

Labels

extractor: griffeRelated to grifferefactorChange suggestion, not a bug nor a feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions