Merge pull request #1764 from boydgreenfield/further_doc_fixes

Further doc fixes
This commit is contained in:
Andreas Rumpf
2014-12-22 18:51:07 +01:00
5 changed files with 33 additions and 16 deletions

View File

@@ -130,7 +130,7 @@ html {
-ms-text-size-adjust: 100%; }
/* Where we want fancier font if available */
h1, h2, h3, h4, h5, h6, p.module-desc, blockquote p {
h1, h2, h3, h4, h5, h6, p.module-desc, table.docinfo + blockquote p, table.docinfo blockquote p, h1 + blockquote p {
font-family: "Raleway", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif !important; }
h1.title {
@@ -523,9 +523,13 @@ abbr.initialism {
blockquote {
padding: 0 0 0 15px;
margin: 0 0 20px;
border-left: 5px solid #c9c9c9; }
border-left: 5px solid #EFEBE0; }
blockquote p {
table.docinfo + blockquote, table.docinfo blockquote, h1 + blockquote {
border-left: 5px solid #c9c9c9;
}
table.docinfo + blockquote p, table.docinfo blockquote p, h1 + blockquote p {
margin-bottom: 0;
font-size: 15px;
font-weight: 200;
@@ -605,6 +609,10 @@ table {
border-collapse: collapse;
border-spacing: 0; }
table th, table td {
padding: 0px 8px 0px;
}
.table {
width: 100%;
margin-bottom: 20px; }

View File

@@ -1,5 +1,6 @@
Usage::
nim command [options] [projectfile] [arguments]
::
nim command [options] [projectfile] [arguments]
Command:
//compile, c compile project with default code generator (C)

View File

@@ -2,11 +2,15 @@
Nim's Garbage Collector
==========================
:Author: Andreas Rumpf
:Version: |nimversion|
:Author: Andreas Rumpf
:Version: |nimversion|
..
"The road to hell is paved with good intentions."
Introduction
============

View File

@@ -28,10 +28,14 @@ Compiler Usage
Command line switches
---------------------
Basic command line switches are:
Basic command line switches are:
Usage:
.. include:: basicopt.txt
----
Advanced command line switches are:
.. include:: advopt.txt

View File

@@ -268,18 +268,18 @@ proc buildDoc(c: var TConfigData, destPath: string) =
commands = newSeq[string](len(c.doc) + len(c.srcdoc) + len(c.srcdoc2))
i = 0
for d in items(c.doc):
commands[i] = "nim rst2html $# --docSeeSrcUrl:$#/$#/$# -o:$# --index:on $#" %
[c.nimArgs, c.gitRepo, c.gitCommit, splitFile(d).dir,
commands[i] = "nim rst2html $# --docSeeSrcUrl:$#/$# -o:$# --index:on $#" %
[c.nimArgs, c.gitRepo, c.gitCommit,
destPath / changeFileExt(splitFile(d).name, "html"), d]
i.inc
for d in items(c.srcdoc):
commands[i] = "nim doc $# --docSeeSrcUrl:$#/$#/$# -o:$# --index:on $#" %
[c.nimArgs, c.gitRepo, c.gitCommit, splitFile(d).dir,
commands[i] = "nim doc $# --docSeeSrcUrl:$#/$# -o:$# --index:on $#" %
[c.nimArgs, c.gitRepo, c.gitCommit,
destPath / changeFileExt(splitFile(d).name, "html"), d]
i.inc
for d in items(c.srcdoc2):
commands[i] = "nim doc2 $# --docSeeSrcUrl:$#/$#/$# -o:$# --index:on $#" %
[c.nimArgs, c.gitRepo, c.gitCommit, splitFile(d).dir,
commands[i] = "nim doc2 $# --docSeeSrcUrl:$#/$# -o:$# --index:on $#" %
[c.nimArgs, c.gitRepo, c.gitCommit,
destPath / changeFileExt(splitFile(d).name, "html"), d]
i.inc
@@ -311,8 +311,8 @@ proc buildAddDoc(c: var TConfigData, destPath: string) =
# build additional documentation (without the index):
var commands = newSeq[string](c.webdoc.len)
for i, doc in pairs(c.webdoc):
commands[i] = "nim doc $# --docSeeSrcUrl:$#/$#/$# -o:$# $#" %
[c.nimArgs, c.gitRepo, c.gitCommit, splitFile(doc).dir,
commands[i] = "nim doc $# --docSeeSrcUrl:$#/$# -o:$# $#" %
[c.nimArgs, c.gitRepo, c.gitCommit,
destPath / changeFileExt(splitFile(doc).name, "html"), doc]
mexec(commands, c.numProcessors)