-
+
This is a description of the utils module.
+
Links work:
+
+
@@ -526,6 +537,18 @@
comment
+
+
+
+
+
+
+
diff --git a/nimdoc/testproject/subdir/subdir_b/utils.nim b/nimdoc/testproject/subdir/subdir_b/utils.nim
index 1d5c24ab4bd10..563ac0365f4d3 100644
--- a/nimdoc/testproject/subdir/subdir_b/utils.nim
+++ b/nimdoc/testproject/subdir/subdir_b/utils.nim
@@ -1,5 +1,7 @@
##[
+.. include:: ./utils_overview.rst
+
# This is now a header
## Next header
@@ -34,6 +36,8 @@ Ref. type like G_ and `type G`_ and `G[T]`_ and `type G*[T]`_.
]##
+include ./utils_helpers
+
type
SomeType* = enum
enumValueA,
diff --git a/nimdoc/testproject/subdir/subdir_b/utils_helpers.nim b/nimdoc/testproject/subdir/subdir_b/utils_helpers.nim
new file mode 100644
index 0000000000000..2c45ffb8347bd
--- /dev/null
+++ b/nimdoc/testproject/subdir/subdir_b/utils_helpers.nim
@@ -0,0 +1 @@
+proc funWithGenerics*[T, U: SomeFloat](a: T, b: U) = discard
diff --git a/nimdoc/testproject/subdir/subdir_b/utils_overview.rst b/nimdoc/testproject/subdir/subdir_b/utils_overview.rst
new file mode 100644
index 0000000000000..58ce930bfc07b
--- /dev/null
+++ b/nimdoc/testproject/subdir/subdir_b/utils_overview.rst
@@ -0,0 +1,8 @@
+This is a description of the utils module.
+
+Links work:
+
+* other module: `iterators
`_ (not in this dir, just an example)
+* internal: `fn2(x)`_
+* internal included from another module: `funWithGenerics*[T, U:
+ SomeFloat](a: T, b: U)`_.