Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jan 24, 2020
1 parent c2e88ec commit b03db75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions nimdoc/testproject/expected/subdir/subdir_b/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>

<!-- CSS -->
<title>utils</title>
<title>subdir/subdir_b/utils</title>
<link rel="stylesheet" type="text/css" href="../../nimdoc.out.css">

<script type="text/javascript" src="dochack.js"></script>
Expand Down Expand Up @@ -71,7 +71,7 @@
<body onload="main()">
<div class="document" id="documentId">
<div class="container">
<h1 class="title">utils</h1>
<h1 class="title">subdir/subdir_b/utils</h1>
<div class="row">
<div class="three columns">
<div class="theme-switch-wrapper">
Expand Down
9 changes: 6 additions & 3 deletions tools/kochdocs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,12 @@ proc buildDoc(nimArgs, destPath: string) =
destPath / changeFileExt(splitFile(d).name, "html"), d]
i.inc
for d in items(doc):
commands[i] = nim & " doc $# --git.url:$# -o:$# --index:on $#" %
[nimArgs, gitUrl,
destPath / changeFileExt(splitFile(d).name, "html"), d]
var nimArgs2 = nimArgs
if d.isRelativeTo("compiler"):
when false: # enable this when bugs fixed
nimArgs2.add " --docroot:@pkg"
commands[i] = nim & " doc $# --git.url:$# --outdir:$# --index:on $#" %
[nimArgs2, gitUrl, destPath, d]
i.inc
for d in items(withoutIndex):
commands[i] = nim & " doc2 $# --git.url:$# -o:$# $#" %
Expand Down

0 comments on commit b03db75

Please sign in to comment.