Make docs work when published

This commit is contained in:
ahocevar
2018-05-13 11:15:31 -05:00
parent 8657e31b00
commit 527331a797
2 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ $(function () {
var srcLinks = $('div.tag-source'); var srcLinks = $('div.tag-source');
srcLinks.each(function(i, el) { srcLinks.each(function(i, el) {
var textParts = el.innerHTML.trim().split(', '); var textParts = el.innerHTML.trim().split(', ');
var link = 'https://github.com/openlayers/openlayers/blob/v' + currentVersion + '/' + var link = 'https://github.com/openlayers/openlayers/blob/v' + currentVersion + '/src/ol/' +
textParts[0]; textParts[0];
el.innerHTML = '<a href="' + link + '">' + textParts[0] + '</a>, ' + el.innerHTML = '<a href="' + link + '">' + textParts[0] + '</a>, ' +
'<a href="' + link + textParts[1].replace('line ', '#L') + '">' + '<a href="' + link + textParts[1].replace('line ', '#L') + '">' +

View File

@@ -1,6 +1,6 @@
{ {
"name": "openlayers", "name": "openlayers",
"version": "4.6.5", "version": "5.0.0-beta.12",
"description": "Build tools and sources for developing OpenLayers based mapping applications", "description": "Build tools and sources for developing OpenLayers based mapping applications",
"keywords": [ "keywords": [
"map", "map",
@@ -23,7 +23,7 @@
"src-closure": "babel -q --out-dir build/src-closure src/", "src-closure": "babel -q --out-dir build/src-closure src/",
"pretypecheck": "npm run src-closure", "pretypecheck": "npm run src-closure",
"typecheck": "node tasks/typecheck", "typecheck": "node tasks/typecheck",
"apidoc": "jsdoc config/jsdoc/api/index.md -c config/jsdoc/api/conf.json -d build/apidoc" "apidoc": "jsdoc config/jsdoc/api/index.md -c config/jsdoc/api/conf.json -P package.json -d build/apidoc"
}, },
"main": "src/ol/index.js", "main": "src/ol/index.js",
"repository": { "repository": {