@@ -7,10 +7,6 @@ var prettySize = require('prettysize');
7
7
var common = require ( './util/common' ) ;
8
8
var constants = require ( './util/constants' ) ;
9
9
var pkgVersion = require ( '../package.json' ) . version ;
10
- var majorVersion = pkgVersion . split ( '.' ) [ 0 ] ;
11
- var theLatest = 'latest' + (
12
- ( majorVersion === '1' ) ? '' : ( '-v' + majorVersion )
13
- ) ;
14
10
15
11
var pathDistREADME = path . join ( constants . pathToDist , 'README.md' ) ;
16
12
var cdnRoot = 'https://cdn.plot.ly/plotly-' ;
@@ -81,7 +77,6 @@ function getInfoContent() {
81
77
'Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.' ,
82
78
'Many other localizations are available - here is an example using Swiss-German (de-CH),' ,
83
79
'see the contents of this directory for the full list.' ,
84
- 'They are also available on our CDN as ' + cdnRoot + 'locale-de-ch-' + theLatest + '.js OR ' + cdnRoot + 'locale-de-ch-' + pkgVersion + '.js' ,
85
80
'Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.' ,
86
81
'' ,
87
82
'*After* the plotly.js script tag, add:' ,
@@ -116,12 +111,12 @@ function getMainBundleInfo() {
116
111
'' ,
117
112
'It be can imported as minified javascript' ,
118
113
'- using dist file `dist/plotly.min.js`' ,
119
- '- using CDN URL ' + cdnRoot + theLatest + MINJS + ' OR ' + cdnRoot + pkgVersion + MINJS ,
114
+ '- using CDN URL ' + cdnRoot + pkgVersion + MINJS ,
120
115
'' ,
121
116
'or as raw javascript:' ,
122
117
'- using the `plotly.js-dist` npm package (starting in `v1.39.0`)' ,
123
118
'- using dist file `dist/plotly.js`' ,
124
- '- using CDN URL ' + cdnRoot + theLatest + JS + ' OR ' + cdnRoot + pkgVersion + JS ,
119
+ '- using CDN URL ' + cdnRoot + pkgVersion + JS ,
125
120
'- using CommonJS with `require(\'plotly.js\')`' ,
126
121
'' ,
127
122
'If you would like to have access to the attribute meta information ' +
@@ -192,8 +187,6 @@ function makeBundleInfo(pathObj) {
192
187
'' ,
193
188
'| Flavor | URL |' ,
194
189
'| ------ | --- |' ,
195
- '| Latest | ' + cdnRoot + name + '-' + theLatest + JS + ' |' ,
196
- '| Latest minified | ' + cdnRoot + name + '-' + theLatest + MINJS + ' |' ,
197
190
'| Tagged | ' + cdnRoot + name + '-' + pkgVersion + JS + ' |' ,
198
191
'| Tagged minified | ' + cdnRoot + name + '-' + pkgVersion + MINJS + ' |' ,
199
192
'' ,
0 commit comments