Skip to content

Commit fa8f9c2

Browse files
committed
opening code source links in the same window
1 parent ec6836a commit fa8f9c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

generateDoc.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
var typedoc = require('typedoc');
22

33
async function main() {
4-
const app = await typedoc.Application.bootstrapWithPlugins();
5-
var gitLink = "https://github.com/ajaxorg/ace/tree/" + process.env.ACE_VERSION + "/{path}#L{line}";
6-
app.options.setValue("sourceLinkTemplate", gitLink);
4+
const app = await typedoc.Application.bootstrapWithPlugins({
5+
sourceLinkExternal: false,
6+
sourceLinkTemplate: "https://github.com/ajaxorg/ace/tree/" + process.env.ACE_VERSION + "/{path}#L{line}",
7+
});
78

89
const projectReflection = await app.convert();
910

0 commit comments

Comments
 (0)