diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2018-07-30 05:02:18 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-07-30 14:02:18 +0200 |
commit | c0f78ec0121c2578759e1b7cff561b75a58e3f97 (patch) | |
tree | 9a69bae15f82ac51b6794950407176f220e7a745 /config | |
parent | f2ddd995393bc485880d3e56b277bad6448ad0c3 (diff) | |
download | Nim-c0f78ec0121c2578759e1b7cff561b75a58e3f97.tar.gz |
fixes #8419 fixes #8420 ; workaround #6071 workaround nim-lang/website#98 (#8423)
add --git.devel option to override doc generated "edit" links; add --nimCompiler option to nimweb
Diffstat (limited to 'config')
-rw-r--r-- | config/nimdoc.cfg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index 6b6ec2d83..96e91283a 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -55,6 +55,8 @@ doc.item.toc = """ # HTML rendered for doc.item's seeSrc variable. Note that this will render to # the empty string if you don't pass anything through --docSeeSrcURL. Available # substitutaion variables here are: +# * $commit: branch/commit to use in source link. +# * $devel: branch to use in edit link. # * $path: relative path to the file being processed. # * $line: line of the item in the original source file. # * $url: whatever you did pass through the --docSeeSrcUrl switch (which also @@ -62,7 +64,7 @@ doc.item.toc = """ doc.item.seesrc = """ <a href="${url}/tree/${commit}/${path}#L${line}" class="link-seesrc" target="_blank">Source</a> -<a href="${url}/edit/devel/${path}#L${line}" class="link-seesrc" target="_blank" >Edit</a> +<a href="${url}/edit/${devel}/${path}#L${line}" class="link-seesrc" target="_blank" >Edit</a> """ doc.toc = """ |