[commit: haddock] master: Update docs with information about source hyperlinking. (9c156cd)
git at git.haskell.org
git at git.haskell.org
Wed Jul 8 08:42:45 UTC 2015
Repository : ssh://git@git.haskell.org/haddock
On branch : master
Link : http://git.haskell.org/haddock.git/commitdiff/9c156cdcfd7d042ed9cfa242871846291af5cf0a
>---------------------------------------------------------------
commit 9c156cdcfd7d042ed9cfa242871846291af5cf0a
Author: Łukasz Hanuszczak <lukasz.hanuszczak at gmail.com>
Date: Sat Jul 4 16:28:26 2015 +0200
Update docs with information about source hyperlinking.
>---------------------------------------------------------------
9c156cdcfd7d042ed9cfa242871846291af5cf0a
doc/haddock.xml | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/doc/haddock.xml b/doc/haddock.xml
index b528fdb..6c83f61 100644
--- a/doc/haddock.xml
+++ b/doc/haddock.xml
@@ -530,6 +530,43 @@ $ pdflatex <replaceable>package</replaceable>.tex</screen>
<varlistentry>
<term>
+ <indexterm><primary><option>--hyperlinked-source</option></primary></indexterm>
+ <option>--hyperlinked-source</option>
+ </term>
+ <listitem>
+ <para>Generate hyperlinked source code (as HTML web page). All
+ rendered files will be put into
+ <filename class='directory'>src/</filename> subfolder of output
+ directory.</para>
+ <para>Usually, this should be used in combination with
+ <option>--html</option> option - generated documentation will then
+ contain references to appropriate code fragments. Previously, this
+ behaviour could be achieved by generating sources using external
+ tool and specifying <option>--source-base</option>,
+ <option>--source-module</option>, <option>--source-entity</option>
+ and related options. Note that these flags are ignored once
+ <option>--hyperlinked-source</option> is set.</para>
+ <para>In order to make cross-package source hyperlinking possible,
+ appropriate source paths have to be set up when providing
+ interface files using <option>--read-interface</option>
+ option.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>
+ <indexterm><primary><option>--source-style</option></primary></indexterm>
+ <option>--source-style=<replaceable>style</replaceable></option>
+ </term>
+ <listitem>
+ <para>Use custom CSS file for sources rendered by the
+ <option>--hyperlinked-source</option> option. If no custom style
+ file is provided, Haddock will use default one.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>
<indexterm><primary><option>-S</option></primary></indexterm>
<option>-S</option>
</term>
More information about the ghc-commits
mailing list