Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling misconfiguration #588

Open
ofek opened this issue Jun 7, 2022 · 4 comments
Open

Handling misconfiguration #588

ofek opened this issue Jun 7, 2022 · 4 comments

Comments

@ofek
Copy link
Contributor

ofek commented Jun 7, 2022

To Reproduce

# Utilities

-----

::: extension.utils
    show_root_heading: false
    show_root_toc_entry: false
    heading_level: 1
    members:
    - get_env_option
    filters:
    - "!__all__"

Screenshots

m

System (please complete the following information):

  • mkdocstrings-python version: [e.g. 0.7.0]
  • Python version: 3.8
  • OS: Windows
@pawamoy
Copy link
Member

pawamoy commented Jun 9, 2022

Ah, I didn't see it at first: you're missing the options key 😅

::: extension.utils
    options:
      show_root_heading: false
      show_root_toc_entry: false
      heading_level: 1
      members:
      - get_env_option
      filters:
      - "!__all__"

There was some discussion in this PR about removing the options key since it's redundant most of the time. I've left that as "might change later".

@pawamoy
Copy link
Member

pawamoy commented Jun 9, 2022

I'll leave it open because we could detect such misconfigurations and emit warnings.

@ofek
Copy link
Contributor Author

ofek commented Jun 9, 2022

bruh 🤦‍♂️ sorry

@ofek ofek changed the title No options work on modules Handling misconfiguration Jun 11, 2022
@ofek
Copy link
Contributor Author

ofek commented Jun 11, 2022

removing the options key

I'd recommend not doing that to be more future-proof

@pawamoy pawamoy transferred this issue from mkdocstrings/python Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants