You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./node_modules/documentation/bin/documentation.js build src_gen/libs_frontend/*.js src_gen/libs_backend/*.js --github -f html -o docs
Using the default theme. With version 4.0.0-beta.18 and previous versions (tested with every version from 4.0.0-beta.14 to 4.0.0-beta.18) the github links correctly appear. However, with 4.0.0-beta.19 the github links are no longer shown (even though I'm still using the same command). This happens with every repository I have tested with, but if you need a sample example see https://github.com/habitlab/habitlab
The text was updated successfully, but these errors were encountered:
I've located the issue: it seems in module.exports for lib/github.js the format has changed, but the default template doesn't seem to have been updated accordingly. As reverting back to the version of lib/github.js in 4.0.0-beta.18 fixes this issue:
'use strict';/* @flow */varpath=require('path');varfindGit=require('../lib/git/find_git');vargetGithubURLPrefix=require('../lib/git/url_prefix');/** * Attempts to link code to its place on GitHub. * * @name linkGitHub * @param {Object} comment parsed comment * @return {Object} comment with github inferred */module.exports=function(comment/*: Comment*/){varrepoPath=findGit(comment.context.file);varroot=repoPath ? path.dirname(repoPath) : '.';varurlPrefix=getGithubURLPrefix(root);varfileRelativePath=comment.context.file.replace(root+path.sep,'').split(path.sep).join('/');if(urlPrefix){comment.context.github=urlPrefix+fileRelativePath+'#L'+comment.context.loc.start.line+'-'+'L'+comment.context.loc.end.linecomment.context.path=fileRelativePath}returncomment;};
I am using the command
Using the default theme. With version 4.0.0-beta.18 and previous versions (tested with every version from 4.0.0-beta.14 to 4.0.0-beta.18) the github links correctly appear. However, with 4.0.0-beta.19 the github links are no longer shown (even though I'm still using the same command). This happens with every repository I have tested with, but if you need a sample example see https://github.com/habitlab/habitlab
The text was updated successfully, but these errors were encountered: