mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
fd5978e81b
commit
e03f3a1a6b
@@ -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 ,"")
|
||||
})
|
||||
});
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user