Skip to content

Commit

Permalink
doc: add social cards generation support in sphinxext-opengraph (pyth…
Browse files Browse the repository at this point in the history
  • Loading branch information
FFY00 authored and srinivasreddy committed Jan 21, 2025
1 parent 2da89ed commit a9501f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ JOBS = auto
PAPER =
SOURCES =
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
REQUIREMENTS = requirements.txt
IS_PYTHON_BUILD = $(shell $(PYTHON) -c 'import sysconfig; print("true") if sysconfig.is_python_build() else None')
REQUIREMENTS = $(if $(IS_PYTHON_BUILD),requirements.txt,requirements-no-build.txt)
SPHINXERRORHANDLING = --fail-on-warning

# Internal variables.
Expand Down
7 changes: 7 additions & 0 deletions Doc/requirements-no-build.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-r requirements.txt

# Requirements when not running the build Python,
# such as optional native extensions.

# Needed to support generating social cards in sphinxext-opengraph.
--only-binary matplotlib

0 comments on commit a9501f2

Please sign in to comment.