summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKaushal Modi <kaushal.modi@gmail.com>2021-11-02 05:34:11 -0400
committerGitHub <noreply@github.com>2021-11-02 10:34:11 +0100
commitefaaa38eefa38d842ef9225b6ac3f60c4c842209 (patch)
tree72d61ff88d199b999c779507382a22865ef5190d
parent12d2901e89d394cb1eb1242acc0107a2d20e3b3d (diff)
downloadNim-efaaa38eefa38d842ef9225b6ac3f60c4c842209.tar.gz
docstyle.rst: Do not export it to HTML as a standalone doc (#19083)
.. This doc is included in contributing.rst.

Fixes https://github.com/nim-lang/Nim/issues/14593.
-rw-r--r--tools/kochdocs.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim
index 0c5c8f4a3..42e648fb4 100644
--- a/tools/kochdocs.nim
+++ b/tools/kochdocs.nim
@@ -111,7 +111,10 @@ proc getRst2html(): seq[string] =
   for a in walkDirRecFilter("doc"):
     let path = a.path
     if a.kind == pcFile and path.splitFile.ext == ".rst" and path.lastPathPart notin
-        ["docs.rst", "nimfix.rst"]:
+        ["docs.rst", "nimfix.rst",
+         "docstyle.rst" # docstyle.rst shouldn't be converted to html separately;
+                        # it's included in contributing.rst.
+        ]:
           # maybe we should still show nimfix, could help reviving it
           # `docs` is redundant with `overview`, might as well remove that file?
       result.add path