From cffeb597474070cba6c3e27b66ac3af8be16ff75 Mon Sep 17 00:00:00 2001 From: toonn <toonn@toonn.io> Date: Mon, 19 Aug 2019 12:45:16 +0200 Subject: [PATCH] Improve docs for html-location Someone mentioned this section was confusing in #haskell. I added an example of command line usage so there is no confusion. [ci skip] --- Cabal/doc/nix-local-build.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Cabal/doc/nix-local-build.rst b/Cabal/doc/nix-local-build.rst index a4733b2883..a865c12c6d 100644 --- a/Cabal/doc/nix-local-build.rst +++ b/Cabal/doc/nix-local-build.rst @@ -1829,6 +1829,7 @@ running ``setup haddock``. (TODO: Where does the documentation get put.) ``haddock`` command). .. cfg-field:: haddock-html-location: templated path + --html-location=TEMPLATE :synopsis: Haddock HTML templates location. Specify a template for the location of HTML documentation for @@ -1839,15 +1840,19 @@ running ``setup haddock``. (TODO: Where does the documentation get put.) :: - html-location: 'http://hackage.haskell.org/packages/archive/$pkg/latest/doc/html' + html-location: http://hackage.haskell.org/packages/archive/$pkg/latest/doc/html + + The command line variant of this flag is ``--html-location`` (for + the ``haddock`` subcommand). + + :: + + --html-location='http://hackage.haskell.org/packages/archive/$pkg/latest/doc/html' Here the argument is quoted to prevent substitution by the shell. If this option is omitted, the location for each package is obtained using the package tool (e.g. ``ghc-pkg``). - The command line variant of this flag is ``--html-location`` (for - the ``haddock`` subcommand). - .. cfg-field:: haddock-executables: boolean :synopsis: Generate documentation for executables. -- GitLab