-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitLab support for the docgen git.url #16642
Comments
what do you mean? does |
Template is |
indeed,
PR welcome. it doesn't sound hard to fix. doc.item.seesrc = """ <a
href="${url}/tree/${commit}/${path}#L${line}"
class="link-seesrc" target="_blank">Source</a> => doc.item.seesrc = """ <a
href="${urlModif}/tree/${commit}/${path}#L${line}"
class="link-seesrc" target="_blank">Source</a> and then in docgen.nim: dispA(d.conf, result, "$1", "", [ropeFormatNamedVars(d.conf, docItemSeeSrc,
["path", "line", "url", "commit", "devel"], [rope path.string,
rope($line), rope gitUrl, rope commit, rope develBranch])]) compute
|
I dived a bit into the documentation. Seems it can be solved through the configuration options. I put the following to the git.url = "https://gitlab.com/username/projectname"
git.commit = "master"
doc.item.seesrc = """ <a href="${url}/-/blob/${commit}/${path}#L${line}" class="link-seesrc" target="_blank">Source</a>
<a href="${url}/-/edit/${commit}/${path}#L${line}" class="link-seesrc" target="_blank" >Edit</a>
""" |
ya but it's better to make it work without user having to change |
Now docgen support only GitHub. It would be nice to add others.
The text was updated successfully, but these errors were encountered: