Closed Julian closed 1 year ago
Sorry, there's an open PR for this issue I've forgotten about. I'll see to that.
No need at all for apologies! I saw that PR and wasn't 100% sure it was meant to address this specifically, but yeah thanks for the response and having a look!
Oh! I lied! I saw #56 and completely missed #84 which of course is relevant!
v0.7.3 has been released and should fix your issue.
Amazing, thank you! Indeed seems to.
(Hello! Thanks for the library!)
I've recently began to notice CI
dirhtml
builds which use sphinxext.opengraph fail after bumping dependencies. The kinds of errors (across projects) look like:where there's
replace
being called onNone
rather than astr
.Some minor debugging showed that what's happening is that autodetection of the
READTHEDOCS
environment variable obviously doesn't work when the build is running in CI (or in tox locally), soogp_site_url
ends up beingNone
, whichmake_tag
won't like very much.I didn't track down what changed if anything (either here or in other deps) -- I'm happy to do so if that's helpful, as I've definitely successfully used this library before, but it seems that things are a bit awkward if one relies entirely on the ReadTheDocs autodetection, so I thought I'd file this anyhow. Specifically I of course want my site URL autodetected, and "real" doc builds will run in RTD. But it seems without manually specifying
ogp_site_url
, I can't actually test doc builds.Concrete suggestions (possibly not all needed) in case that's helpful (and I'm sure I may be missing even better ones):
dirhtml
externallyNone
inmake_tag
or in the frame above it (and do some nonsense thing, since that may be better than jjust blowing up)ogp_site_url
just for this case (CI for builds) in a way that the value isn't "in danger" of being used, but where it's still usable during CI builds (e.g. via an envvar which is used only when READTHEDOCS is not set or something)(Again I may have missed something, so apologies for any errors! And thanks again)