Skip to content

Commit

Permalink
Make intersphinx use the default Python version
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Oct 5, 2023
1 parent 1f7e189 commit b9f2ed4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions product/runtime/docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

from datetime import datetime
import re
import sys


# -- General configuration ------------------------------------------------
Expand Down Expand Up @@ -186,8 +187,12 @@

# -- Options for Intersphinx ----------------------------------------------

intersphinx_mapping = {'https://docs.python.org/3': None}

intersphinx_mapping = {
'python': (
f'https://docs.python.org/{".".join(map(str, sys.version_info[:2]))}',
None,
)
}

# -- Local extensions -----------------------------------------------------

Expand Down

0 comments on commit b9f2ed4

Please sign in to comment.