[ADF-3323] Fixed broken links in doc files (#3662)

* [ADF-3323] Fixed URL path to Typescript source files

* [ADF-3323] Fixed and checked broken links caused by previous bug
This commit is contained in:
Andy Stark
2018-08-07 16:00:58 +01:00
committed by Eugenio Romano
parent fd5978e81b
commit e03f3a1a6b
125 changed files with 845 additions and 829 deletions

View File

@@ -127,7 +127,7 @@ function makeToc(tree) {
context.headings.push({
"level": heading.item.depth - 2,
"title": heading.textValue,
"anchor": "#" + heading.textValue.toLowerCase().replace(/ /g, "-").replace(/[\.,]/g ,"")
"anchor": "#" + heading.textValue.toLowerCase().replace(/ /g, "-").replace(/[\.,'"`$]/g ,"")
})
});

View File

@@ -1,5 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.__esModule = true;
var path = require("path");
var fs = require("fs");
/*
@@ -321,7 +321,7 @@ function resolveTypeLink(aggData, text) {
var kebabName = ngHelpers.kebabifyClassName(possTypeName);
var possDocFile = aggData.docFiles[kebabName];
//let url = "../../lib/" + ref.sources[0].fileName;
var url = classInfo.sourcePath; //"../../lib/" + classInfo.items[0].source.path;
var url = "../../" + classInfo.sourcePath; //"../../lib/" + classInfo.items[0].source.path;
if (possDocFile) {
url = "../" + possDocFile;
}

View File

@@ -386,7 +386,7 @@ function resolveTypeLink(aggData, text): string {
let possDocFile = aggData.docFiles[kebabName];
//let url = "../../lib/" + ref.sources[0].fileName;
let url = classInfo.sourcePath; //"../../lib/" + classInfo.items[0].source.path;
let url = "../../" + classInfo.sourcePath; //"../../lib/" + classInfo.items[0].source.path;
if (possDocFile) {
url = "../" + possDocFile;