Skip to content

SocialPlugin fails to use environment variables #4819

@jasonren0403

Description

@jasonren0403

Context

No response

Bug description

Social plugin is not working when using environment variables in plugins.social.cards

Related links

Reproduction

example.zip

Steps to reproduce

set plugins.social.cards to !ENV [CARDS, false], just like what document says, then an Exception is encountered:

AttributeError: 'SocialPlugin' object has no attribute '_image_promises'

An minimum mkdocs.yml should be this:

site_name: Test site

theme:
  name: material

plugins:
  - social:
      cards: !ENV [CARDS, false]
  - search

Browser

Chrome, Safari, Edge, Firefox, Opera

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions