Skip to content

Commit 2afb230

Browse files
committed
Merge branch 'mkdocs-test' into master-merge-mkdocs
2 parents c640f51 + efda48f commit 2afb230

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+373
-335
lines changed

doc/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Stack can be installed directly or by using the GHCup tool.
143143
!!! info
144144

145145
By default, the Windows installer will set the
146-
[Stack root](stack_root.md) to `C:\sr`.
146+
[Stack root](topics/stack_root.md) to `C:\sr`.
147147

148148
!!! note
149149

@@ -318,13 +318,13 @@ section.
318318

319319
That was a really fast introduction on how to start to code in Haskell using
320320
Stack. If you want to go further, we highly recommend you read Stack's
321-
introductory [user's guide](GUIDE.md).
321+
introductory [user's guide](tutorial/index.md).
322322

323323
## Complete guide to Stack
324324

325-
A complete [user's guide](GUIDE.md) to Stack is available, covering all of
326-
the most common ways to use Stack. Terms used in Stack's documentation are also
327-
explained in the [glossary](glossary.md).
325+
A complete [user's guide](tutorial/index.md) to Stack is available, covering all
326+
of the most common ways to use Stack. Terms used in Stack's documentation are
327+
also explained in the [glossary](glossary.md).
328328

329329
## Why Stack?
330330

doc/commands/build_command.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ stack build [TARGET] [--dry-run] [--pedantic] [--fast] [--ghc-options OPTIONS]
2929
interface for simple tasks and flexibility for more complicated goals.
3030

3131
See the introductory part of Stack's
32-
[user's guide](GUIDE.md#the-stack-build-command) for an introduction to the
33-
command.
32+
[user's guide](../tutorial/hello_world_example.md#the-stack-build-command) for
33+
an introduction to the command.
3434

3535
## Synonyms
3636

@@ -206,15 +206,16 @@ its subdirectories.
206206
## Controlling what gets built
207207

208208
Stack will automatically build the necessary dependencies. See the introductory
209-
part of Stack's [user's guide](GUIDE.md#the-stack-build-command) for information
210-
about how these dependencies get specified.
209+
part of Stack's
210+
[user's guide](../tutorial/building_your_project.md#adding-dependencies) for
211+
information about how these dependencies get specified.
211212

212213
In addition to specifying targets, you can also control what gets built, or
213214
retained, with the flags and options listed below. You can also affect what gets
214215
built by specifying Cabal (the library) options for the configure step
215216
of the Cabal build process (for further information, see the documentation for
216-
the [configure-options](yaml_configuration.md#configure-options) configuration
217-
option).
217+
the [configure-options](../configure/yaml/non-project.md#configure-options)
218+
configuration option).
218219

219220
### `--[no-]allow-newer` flag
220221

@@ -298,7 +299,7 @@ This overrides:
298299
!!! note
299300

300301
In order to set a Cabal flag for a GHC boot package, the package must be
301-
specified as an [extra-dep](yaml_configuration.md#extra-deps).
302+
specified as an [extra-dep](../configure/yaml/project.md#extra-deps).
302303

303304
### `--[no-]force-dirty` flag
304305

@@ -736,20 +737,22 @@ The effect of `--fast` can be overriden with Stack's
736737
Cabal's default behaviour). The exception is if Cabal's
737738
`--disable-optimization` flag or `--enable-optimization[=n]`, `-O[n]`
738739
options are used during the configure step of the Cabal build process; see
739-
Stack's [`configure-options`](yaml_configuration.md#configure-options) YAML
740-
configuration option.
740+
Stack's
741+
[`configure-options`](../configure/yaml/non-project.md#configure-options)
742+
YAML configuration option.
741743

742744
### `--ghc-options` option
743745

744746
GHC command line options can be specified for a package in its Cabal file
745747
(including one created from a `package.yaml` file). This option augments and, if
746748
applicable (see below), overrides any such GHC command line options and those
747749
specified in Stack's YAML configuration files - see the
748-
[`ghc-options`](yaml_configuration.md#ghc-options) configuration option.
750+
[`ghc-options`](../configure/yaml/non-project.md#ghc-options) configuration
751+
option.
749752

750753
`stack build --ghc-options <ghc_options>` passes the specified command line
751754
options to GHC, depending on Stack's
752-
[`apply-ghc-options`](yaml_configuration.md#apply-ghc-options) YAML
755+
[`apply-ghc-options`](../configure/yaml/non-project.md#apply-ghc-options) YAML
753756
configuration option. This option can be specified multiple times.
754757

755758
GHC's command line options are _order-dependent_ and evaluated from left to
@@ -849,14 +852,14 @@ to `happy` its `--ghc` flag.
849852
By default, all and any `--PROG-option` options on Stack's command line are
850853
applied to all project packages (targets or otherwise). This behaviour can be
851854
changed. See the
852-
[`apply-prog-options`](yaml_configuration.md#apply-prog-options) configuration
853-
option.
855+
[`apply-prog-options`](../configure/yaml/non-project.md#apply-prog-options)
856+
configuration option.
854857

855858
Stack can also be configured to pass Cabal's `--PROG-option`, `--PROG-options`
856859
or other options to Cabal during the configuration step. For further
857860
information, see the documentation for the
858-
[configure-options](yaml_configuration.md#configure-options) configuration
859-
option.
861+
[configure-options](../configure/yaml/non-project.md#configure-options)
862+
configuration option.
860863

861864
## Flags relating to build outputs
862865

@@ -969,9 +972,9 @@ package is targetted in a multi-package project (for example, using
969972
contents of the log files to the standard error output stream of the console
970973
at the end of the build, use Stack's `dump-logs` option. For further
971974
information about that option, see the
972-
[YAML configuration](yaml_configuration.md#dump-logs) documentation. The
973-
default `dump-logs` mode is to output the contents of any log files that
974-
include GHC warnings.
975+
[YAML configuration](../configure/yaml/non-project.md#dump-logs)
976+
documentation. The default `dump-logs` mode is to output the contents of any
977+
log files that include GHC warnings.
975978

976979
### `--[no]-open` flag
977980

@@ -1024,8 +1027,8 @@ All the following examples assume that:
10241027
`stack.yaml` file in the current directory or ancestor directory and,
10251028
consequently, the project-level configuration will be determined by a
10261029
`stack.yaml` file in the `global-project` directory in the
1027-
[Stack root](stack_root.md) (for further information, see the
1028-
[YAML configuration](yaml_configuration.md) documentation); and
1030+
[Stack root](../topics/stack_root.md) (for further information, see the
1031+
[YAML configuration](../configure/yaml_configuration.md) documentation); and
10291032

10301033
* if `stack build` is commanded in a project directory, there is a
10311034
`stack.yaml` file in that directory.

doc/commands/config_command.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The command also accepts flags and options of the
3838
[`stack build`](build_command.md#flags-affecting-ghcs-behaviour) command that
3939
affect the location of the local project installation directory, such as
4040
`--profile` and `--no-strip`. For further information, see the documentation of
41-
the [project Stack work directory](stack_work.md#project-stack-work-directory).
41+
the [project Stack work directory](../topics/stack_work.md).
4242

4343
## The `stack config set` commands
4444

doc/commands/docker_command.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Stack is able to build your code inside a Docker image, which means even more
1414
reproducibility to your builds, since you and the rest of your team will always
1515
have the same system libraries.
1616

17-
For further information, see the [Docker integration](docker_integration.md)
18-
documentation.
17+
For further information, see the
18+
[Docker integration](../topics/docker_integration.md) documentation.
1919

2020
## The `stack docker pull` command
2121

doc/commands/exec_command.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ The command also accepts flags and options of the
6969
[`stack build`](build_command.md#flags-affecting-ghcs-behaviour) command that
7070
affect the location of the local project installation directory, such as
7171
`--profile` and `--no-strip`. For further information, see the documentation of
72-
the [project Stack work directory](stack_work.md#project-stack-work-directory).
72+
the [project Stack work directory](../topics/stack_work.md).

doc/commands/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Commands (advanced)
44

55
Some of Stack's features will not be needed regularly or by all users. This part
6-
of the guide and the part on [configuration](configure/index.md) provide
6+
of the guide and the part on [configuration](../configure/index.md) provide
77
information about somethose features, organised as a reference guide. Some of
88
the features are complex and separate pages are dedicated to them.
99

@@ -14,8 +14,8 @@ the features are complex and separate pages are dedicated to them.
1414
* [`setup`](setup_command.md) - get GHC for a Stack project (usually not needed)
1515
* [`update`](update_command.md) - update the package index (usually not needed)
1616
* [`new`](new_command.md) - create a new project with Stack
17-
* [`init`](init_command.md) - initialise Stack's project-level YAML configuration file for an
18-
existing project
17+
* [`init`](init_command.md) - initialise Stack's project-level YAML
18+
configuration file for an existing project
1919

2020
### Building
2121

@@ -79,8 +79,8 @@ the features are complex and separate pages are dedicated to them.
7979

8080
* [`hoogle`](hoogle_command.md) - run `hoogle`
8181
* [`dot`](dot_command.md) - dependency visualization
82-
* [`hpc`](hpc_command.md) - generate Haskell Program Coverage (HPC) code coverage
83-
reports
82+
* [`hpc`](hpc_command.md) - generate Haskell Program Coverage (HPC) code
83+
coverage reports
8484

8585
### Managing Stack versions
8686

@@ -100,14 +100,14 @@ Stack's commands are listed below, in alphabetical order.
100100
* [`exec`](exec_command.md) - executate a command in the Stack environment
101101
* [`haddock`](build_command.md) - a synonym for `stack build --haddock`
102102
* [`hoogle`](hoogle_command.md) - run `hoogle`
103-
* [`hpc`](hpc_command.md) - generate Haskell Program Coverage (HPC) code coverage
104-
reports
103+
* [`hpc`](hpc_command.md) - generate Haskell Program Coverage (HPC) code
104+
coverage reports
105105
* [`ghc`](ghc_command.md) - run `ghc`
106106
* [`ghci`](ghci_command.md) - run GHCi, a REPL environment
107107
* [`ide`](ide_command.md) - information for an integrated development
108108
environment (IDE)
109-
* [`init`](init_command.md) - initialise Stack's project-level YAML configuration file for an
110-
existing project
109+
* [`init`](init_command.md) - initialise Stack's project-level YAML
110+
configuration file for an existing project
111111
* [`install`](build_command.md) - a synonym for `stack build --copy-bins`
112112
* [`list`](list_command.md) - list packages on Hackage or in a snapshot
113113
* [`ls`](ls_command.md) - list information about Stack

doc/commands/init_command.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ By default:
2727

2828
If a snapshot is specified at the command line, `stack init` will try to use it.
2929
For further information, see the documentation for the
30-
[`--snapshot`](global_flags.md#-snapshot-option) and
31-
[`--resolver`](global_flags.md#-resolver-option) options.
30+
[`--snapshot`](../configure/global_flags.md#-snapshot-option) and
31+
[`--resolver`](../configure/global_flags.md#-resolver-option) options.
3232

3333
Otherwise, `stack init` will try to use the following Stackage snapshots in
3434
order of preference, using the first that is compatable: the most recent LTS

doc/commands/new_command.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ By default:
1919
skip such initialisation; and
2020

2121
* the project template is the one specified by the
22-
[default-template](yaml_configuration.md#default-template) option.
22+
[default-template](../configure/yaml/non-project.md#default-template) option.
2323

2424
A package name acceptable to Cabal comprises an alphanumeric 'word'; or two or
2525
more such words, with the words separated by a hyphen/minus character (`-`). A
@@ -49,8 +49,9 @@ These arguments are ignored if the `--no-init` flag is passed.
4949

5050
If a snapshot is specified at the command line and the project is initialised
5151
for use with Stack, `stack new` will try to use it. For further information, see
52-
the documentation for the [`--snapshot`](global_flags.md#-snapshot-option) and
53-
[`--resolver`](global_flags.md#-resolver-option) options.
52+
the documentation for the
53+
[`--snapshot`](../configre/global_flags.md#-snapshot-option) and
54+
[`--resolver`](../configure/global_flags.md#-resolver-option) options.
5455

5556
## Project templates
5657

doc/commands/path_command.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ The command also accepts flags and options of the
4646
[`stack build`](build_command.md#flags-affecting-ghcs-behaviour) command that
4747
affect the location of the local project installation directory, such as
4848
`--profile` and `--no-strip`. For further information, see the documentation of
49-
the [project Stack work directory](stack_work.md#project-stack-work-directory).
49+
the [project Stack work directory](../topics/stack_work.md).

doc/commands/script_command.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ Non-project level configuration options in global configuration files
2121
!!! info
2222

2323
Non-project level configuration options may be useful if
24-
[`allow-newer`](yaml_configuration.md#allow-newer) and/or
25-
[`allow-newer-deps`](yaml_configuration.md#allow-newer-deps) are required.
24+
[`allow-newer`](../configure/yaml/non-project.md#allow-newer) and/or
25+
[`allow-newer-deps`](../configure/yaml/non-project.md#allow-newer-deps) are
26+
required.
2627

2728
## Project-level configuration file
2829

@@ -39,8 +40,8 @@ Stack root.
3940
## GHC
4041

4142
The `stack script` command behaves as if the
42-
[`--install-ghc`](global_flags.md#--no-install-ghc-flag) flag had been passed at
43-
the command line.
43+
[`--install-ghc`](../configure/global_flags.md#--no-install-ghc-flag) flag had
44+
been passed at the command line.
4445

4546
## Snapshot and extra-deps
4647

@@ -202,7 +203,7 @@ outputs will be written to a directory named `MyScript.hs` at
202203

203204
As for Example 1, but `acme-missiles-0.2` is specified by adding it to the
204205
snapshot as an extra-dep. The `stack script` command is specified using Stack's
205-
[script interpreter](scripts.md).
206+
[script interpreter](../topics/scripts.md).
206207

207208
~~~haskell
208209
{- stack script
@@ -243,7 +244,7 @@ Consequently, for example, Stack will:
243244
Consider also the following script extract, based on snapshot Stackage
244245
LTS Haskell 20.25, where considerations on Windows differ from non-Windows. The
245246
`stack script` command is specified using Stack's
246-
[script interpreter](scripts.md).
247+
[script interpreter](../topics/scripts.md).
247248

248249
=== "Windows"
249250

0 commit comments

Comments
 (0)