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
This commit is contained in:
parent
f2ddd99539
commit
c0f78ec012
5 changed files with 70 additions and 52 deletions
|
|
@ -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 = """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue