Skip to content

Commit 47fde8a

Browse files
authored
docs: fix readthedocs build (#3824)
Mkdocs failing on ``` ERROR - Required dependencies of "social" plugin not found: - ModuleNotFoundError("No module named 'cairosvg'")
1 parent ed56fe3 commit 47fde8a

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@ out
5757
# typescript
5858
*.tsbuildinfo
5959
next-env.d.ts
60+
61+
# added by mkdocs social cards
62+
.cache

docs/mkdocs.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,7 @@ plugins:
166166
- mkdocs-simple-hooks:
167167
hooks:
168168
on_pre_build: "docs.hooks:make_api_docs"
169-
- social
169+
- social:
170+
cards_layout_options:
171+
background_color: "#532687"
172+
cards_dir: social

requirements-docs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ mkdocs-material
1616
mkdocs-macros-plugin
1717
mkdocs-simple-hooks
1818
pymdown-extensions
19+
mkdocs-material[imaging]

0 commit comments

Comments
 (0)