简体   繁体   English

来自 TypeDoc 文档的源代码链接

[英]Link to Source Code from TypeDoc Documentation

I've documented a function and I can see that the generator has captured the line number:我已经记录了一个function并且我可以看到生成器已经捕获了行号:

SASjs 示例获取计算上下文函数定义

Is it possible to configure TypeDoc so that a user can click through to see the actual source code?是否可以配置 TypeDoc 以便用户可以点击查看实际的源代码? The full repository is here .完整的存储库在这里

There is a TypeDoc plugin that might address your problem:有一个 TypeDoc 插件可以解决你的问题:

https://github.com/gdelmas/typedoc-plugin-sourcefile-url https://github.com/gdelmas/typedoc-plugin-sourcefile-url

It doesn't work for my situation because for some reason the URLs to the GitHub source I'm connecting to must contain blob/master , which this plugin doesn't add.它不适用于我的情况,因为由于某种原因,我连接到的 GitHub 源的 URL 必须包含blob/master ,这个插件没有添加。 But I add it here in case it's useful to you.但是我在这里添加它以防它对您有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM