File tree 2 files changed +13
-0
lines changed 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ Sphinx extension to generate [Open Graph metadata](https://ogp.me/) for each pag
11
11
python -m pip install sphinxext-opengraph
12
12
```
13
13
14
+ The ` matplotlib ` package is required to generate social cards:
15
+
16
+ ``` sh
17
+ python -m pip install sphinxext-opengraph[social_cards]
18
+ ```
19
+
14
20
## Usage
15
21
Just add ` sphinxext.opengraph ` to your extensions list in your ` conf.py `
16
22
@@ -19,6 +25,8 @@ extensions = [
19
25
" sphinxext.opengraph" ,
20
26
]
21
27
```
28
+
29
+
22
30
## Options
23
31
These values are placed in the ` conf.py ` of your Sphinx project.
24
32
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ dependencies = [
43
43
]
44
44
dynamic = [" version" ]
45
45
46
+ [project .optional-dependencies ]
47
+ social_cards = [
48
+ " matplotlib>=3" ,
49
+ ]
50
+
46
51
[[project .authors ]]
47
52
name = " Itay Ziv"
48
53
You can’t perform that action at this time.
0 commit comments