Skip to content

Commit

Permalink
Merge pull request #1227 from ejoerns/topic/opengraph
Browse files Browse the repository at this point in the history
add opengraph sphinx extension for social media preview
  • Loading branch information
jluebbe committed Aug 17, 2023
2 parents aee0bfd + 6d8cb23 commit d61a99d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ build:

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: docs/requirements.txt
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@
'sphinx.ext.autodoc',
'sphinx.ext.coverage',
'sphinx.ext.ifconfig',
'sphinxext.opengraph',
]

ogp_site_url = 'https://rauc.readthedocs.io/en/latest/'
ogp_image = 'https://rauc.readthedocs.io/en/latest/_static/RAUC_Logo_outline.svg'

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sphinxext-opengraph
2 changes: 2 additions & 0 deletions test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ RUN apt-get update && apt-get install -y \
lcov \
slirp \
python3-sphinx \
python3-sphinx-rtd-theme \
python3-sphinxext-opengraph \
dbus-x11 \
user-mode-linux \
grub-common \
Expand Down

0 comments on commit d61a99d

Please sign in to comment.