From 2e5c759736a9458b192a3beb2cf3a38b2f198887 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Fri, 28 Sep 2018 13:12:28 -0400 Subject: [PATCH] Make "koch docs" copy the dochack.js to the right location too - Fixes https://github.com/nim-lang/Nim/issues/9104. - Fixes https://github.com/nim-lang/Nim/issues/9095. Expect dochack.js to be fetched from the doc/html/ dir instead of from doc/. Also remove an unused and unexported proc pathPart. --- .travis.yml | 5 +---- config/nimdoc.cfg | 2 +- .../expected/subdir/subdir_b/utils.html | 2 +- nimdoc/testproject/expected/testproject.html | 2 +- nimdoc/testproject/expected/theindex.html | 2 +- tools/kochdocs.nim | 18 +++++++++++------- 6 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1e20226547..51e5d48413 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,12 +53,9 @@ script: - nim c -r nimdoc/tester before_deploy: - # Generate the dochack.js for the doc search to work. - - nim js ./tools/dochack/dochack.nim - - cp -f ./tools/dochack/nimcache/dochack.js ./doc/. # Make https://nim-lang.github.io/Nim work the same as https://nim-lang.github.io/Nim/overview.html - cp -f ./doc/html/overview.html ./doc/html/index.html -deploy: +deploy: # https://nim-lang.github.io/Nim provider: pages # local-dir *has* to be a relative path from the repo root. local-dir: "doc/html" diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index 960c58c9e2..a955254f25 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -1374,7 +1374,7 @@ span.pragmawrap { - + + + +