<@ULVA73B9P> how can I add Prefect doc to my inter...
# ask-marvin
f
@Marvin how can I add Prefect doc to my intersphinx config? What's the good url?
m
thought for 105.8 seconds
Short answer: you can’t. Prefect’s docs (in 3.x) don’t publish a Sphinx intersphinx inventory (
objects.inv
), so there’s no “good URL” to add to
intersphinx_mapping
. Workable alternatives: - Use Sphinx extlinks to make stable shortcuts to Prefect pages:
Copy code
# conf.py
  extensions = ["sphinx.ext.extlinks"]
  extlinks = {
      "prefect": ("<https://docs.prefect.io/%s>", ""),      # generic
      "prefectv3": ("<https://docs.prefect.io/v3/%s>", ""), # versioned
  }
Then link like:
Copy code
See :prefectv3:`concepts/flows` or :prefectv3:`api-ref/flows/flow`.
- Link directly with standard reST links to the docs: - Prefect docs home - Prefect v3 docs If you specifically need cross-refs to Python objects (what intersphinx provides), the Prefect site doesn’t expose that. The usual workaround is to rely on direct page links via
extlinks
as above. If you need more, tell me what objects you want to reference and I can suggest stable target URLs in the v3 docs.