Skip to content

bug: full summary of attributes not shown if unless I add a module with members #712

@samuelcolvin

Description

@samuelcolvin

Description of the bug

If I add in markdown

::: my_package.my_module
    options:
      members:
        - my_attribute

mkdocstrings displays this beautifully:

image

But if I add it as:

::: my_package.my_module.my_attribute

I only get:

image

no title, no module-attribuet, no code.


versions:

└── mkdocstrings-python v1.12.2 (group: docs)
    ├── griffe v1.3.2 (*)
    ├── mkdocs-autorefs v1.2.0
    │   ├── markdown v3.7
    │   ├── markupsafe v3.0.2
    │   └── mkdocs v1.6.1 (*)
    └── mkdocstrings v0.27.0
        ├── click v8.1.7
        ├── jinja2 v3.1.4 (*)
        ├── markdown v3.7
        ├── markupsafe v3.0.2
        ├── mkdocs v1.6.1 (*)
        ├── mkdocs-autorefs v1.2.0 (*)
        ├── platformdirs v4.3.6
        └── pymdown-extensions v10.12 (*)

Metadata

Metadata

Assignees

Labels

refactorChange 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