Skip to content

Commit 9dca50f

Browse files
authored
Merge pull request #229 from AaltoSciComp/rkdarst/opengraph
Add sphinxext-opengraph extension for social previews
2 parents c5283dc + 3c8b148 commit 9dca50f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

content/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# -- Project information -----------------------------------------------------
1919

2020
project = 'Python for Scientific Computing'
21-
copyright = '2020, The contributors'
21+
copyright = '2020-2022, The contributors'
2222
author = 'The contributors'
2323
github_user = 'AaltoSciComp'
2424
github_repo_name = 'python-for-scicomp' # auto-detected from dirname if blank
@@ -40,7 +40,10 @@
4040
'sphinx.ext.mathjax',
4141
'sphinx_aaltoscicomp_branding',
4242
'sphinx_plausible',
43+
'sphinxext.opengraph',
4344
]
45+
ogp_site_name = "Python for Scientific Computing"
46+
ogp_site_url = 'https://aaltoscicomp.github.io/python-for-scicomp/'
4447

4548
import os
4649
plausible_domain = 'aaltoscicomp.github.io/python-for-scicomp'

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ sphinx-lesson
66
https://github.com/aaltoscicomp/sphinx-aaltoscicomp-branding/archive/master.zip
77
sphinx_rtd_theme_ext_color_contrast
88
sphinx-plausible
9+
sphinxext-opengraph

0 commit comments

Comments
 (0)