-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
No response
Bug description
Social plugin is not working when using environment variables in plugins.social.cards
Related links
- Bug reporting
- https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#built-in-social-plugin said that you should set environment variable if you want to switch plugin off for local builds
Reproduction
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
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues or discussions.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a minimal reproduction.
dnsmichi
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open