We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff69d8e commit fa5e49bCopy full SHA for fa5e49b
sphinxext/opengraph/__init__.py
@@ -1,7 +1,6 @@
1
from typing import Any, Dict
2
from urllib.parse import urljoin, urlparse, urlunparse
3
from pathlib import Path
4
-import hashlib
5
6
import docutils.nodes as nodes
7
from sphinx.application import Sphinx
@@ -181,8 +180,9 @@ def get_tags(
181
180
ogp_image_alt = description
182
183
# Link the image in our page metadata
184
- url = app.config.ogp_site_url.strip("/")
185
- image_url = f"{url}/{image_path}"
+ # We use os.path.sep to standardize behavior acros *nix and Windows
+ url = app.config.ogp_site_url.strip(os.path.sep)
+ image_url = f"{url}/{image_path}".replace(os.path.sep, "/")
186
187
fields.pop("og:image:alt", None)
188
0 commit comments