Skip to content

Commit 16aedb0

Browse files
committed
DOCSP-15685 hardcode legacy EOL extlinks
1 parent 867558f commit 16aedb0

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

conf.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,20 @@ def has(self, *args):
112112
'csharp-docs': ('https://mongodb.github.io/mongo-csharp-driver/2.4/reference/%s', ''),
113113
'java-async-docs': ('https://mongodb.github.io/mongo-java-driver-reactivestreams/1.6/%s', ''),
114114
'java-async-api': ('https://mongodb.github.io/mongo-java-driver-reactivestreams/1.6/javadoc/%s', ''),
115-
'go-api': ('https://godoc.org/github.com/mongodb/mongo-go-driver/%s', '')
115+
'go-api': ('https://godoc.org/github.com/mongodb/mongo-go-driver/%s', ''),
116+
'v4.0': ('https://docs.mongodb.com/v4.0/%s', ''),
117+
'v3.6': ('https://docs.mongodb.com/v3.6/%s', ''),
118+
'v3.4': ('https://docs.mongodb.com/v3.4/%s', ''),
119+
'v3.2': ('https://docs.mongodb.com/v3.2/%s', ''),
120+
'v3.0': ('https://docs.mongodb.com/v3.0/%s', ''),
121+
'v2.6': ('https://docs.mongodb.com/v2.6/%s', ''),
122+
'v2.4': ('https://docs.mongodb.com/v2.4/%s', ''),
123+
'v2.2': ('https://docs.mongodb.com/v2.2/%s', '')
116124
}
117125

118126
## add `extlinks` for each published version.
119-
for i in conf.git.branches.published:
120-
extlinks[i] = ( ''.join([ conf.project.url, '/', i, '%s' ]), '' )
127+
#for i in conf.git.branches.published:
128+
# extlinks[i] = ( ''.join([ conf.project.url, '/', i, '%s' ]), '' )
121129

122130
intersphinx_mapping = {}
123131
for i in conf.system.files.data.intersphinx:

0 commit comments

Comments
 (0)