summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMiran <narimiran@users.noreply.github.com>2018-10-31 07:40:05 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-10-31 07:40:05 +0100
commit313bbf5b9b1898fd7f6ec7378f71cfa06ffe52ec (patch)
tree08612be85b0a4e2fbbd5d0e2e8f326a7d37c95b3
parent48f73aaa1cc4228e5ba58f471c5f66116c9e59ad (diff)
downloadNim-313bbf5b9b1898fd7f6ec7378f71cfa06ffe52ec.tar.gz
Change documentation details (closes #5525) (#9542)
-rw-r--r--compiler/docgen.nim2
-rw-r--r--nimdoc/testproject/expected/subdir/subdir_b/utils.html4
-rw-r--r--nimdoc/testproject/expected/testproject.html4
3 files changed, 5 insertions, 5 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index f5795e1d2..6f61d020d 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -897,7 +897,7 @@ proc genOutFile(d: PDoc): Rope =
     setIndexTerm(d[], external, "", title)
   else:
     # Modules get an automatic title for the HTML, but no entry in the index.
-    title = "Module " & extractFilename(changeFileExt(d.filename, ""))
+    title = extractFilename(changeFileExt(d.filename, ""))
 
   let bodyname = if d.hasToc and not d.isPureRst: "doc.body_toc_group"
                  elif d.hasToc: "doc.body_toc"
diff --git a/nimdoc/testproject/expected/subdir/subdir_b/utils.html b/nimdoc/testproject/expected/subdir/subdir_b/utils.html
index 60050d8ae..2c89acce4 100644
--- a/nimdoc/testproject/expected/subdir/subdir_b/utils.html
+++ b/nimdoc/testproject/expected/subdir/subdir_b/utils.html
@@ -16,7 +16,7 @@
 <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
 
 <!-- CSS -->
-<title>Module utils</title>
+<title>utils</title>
 <style type="text/css" >
 /*
 Stylesheet for use with Docutils/rst2html.
@@ -1219,7 +1219,7 @@ function main() {
 <body onload="main()">
 <div class="document" id="documentId">
   <div class="container">
-    <h1 class="title">Module utils</h1>
+    <h1 class="title">utils</h1>
     <div class="row">
   <div class="three columns">
   <div id="global-links">
diff --git a/nimdoc/testproject/expected/testproject.html b/nimdoc/testproject/expected/testproject.html
index 83de0d894..2e23a64d5 100644
--- a/nimdoc/testproject/expected/testproject.html
+++ b/nimdoc/testproject/expected/testproject.html
@@ -16,7 +16,7 @@
 <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
 
 <!-- CSS -->
-<title>Module testproject</title>
+<title>testproject</title>
 <style type="text/css" >
 /*
 Stylesheet for use with Docutils/rst2html.
@@ -1219,7 +1219,7 @@ function main() {
 <body onload="main()">
 <div class="document" id="documentId">
   <div class="container">
-    <h1 class="title">Module testproject</h1>
+    <h1 class="title">testproject</h1>
     <div class="row">
   <div class="three columns">
   <div id="global-links">