Source Code Link
Depends on generating links to the source code, maintains theirs output HTML, styling, and behavior. It allows management (edit) the HTML output without regenerating API References, which is important for released docs versions.
Flow:
- When
npm run docs:apigenerates API References pages, to all classes members is added::: source-code-link <URL> - The
<URL>points on the GitHub repository, to the commit hash, file, and line. - Then during
npm run docs:buildornpm run docs:startthe markdown loader recognizes this container and outputs the Vue template. - Then Vue loader handles the template and the OutboundLink within (a Vue component).
- Finally, the link HTML is on the output, with an applied CSS class which allows to style this element.