Skip to content

Commit 199da53

Browse files
committed
Update documentation links and wording from wiki to 'doc/'
1 parent dc22790 commit 199da53

File tree

11 files changed

+37
-57
lines changed

11 files changed

+37
-57
lines changed

ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Major changes:
9595
* Respect TemplateHaskell addDependentFile dependency changes ([#105](https://github.com/commercialhaskell/stack/issues/105))
9696
* TH dependent files are taken into account when determining whether a package needs to be built.
9797
* Overhauled target parsing, added `--test` and `--bench` options [#651](https://github.com/commercialhaskell/stack/issues/651)
98-
* For details, see [Build commands Wiki page](https://github.com/commercialhaskell/stack/wiki/Build-command)
98+
* For details, see [Build commands documentation](doc/build_command.md)
9999

100100
Other enhancements:
101101

doc/GUIDE.md

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ all commands work cross-platform, unless explicitly stated otherwise.
4545

4646
## Downloading and Installation
4747

48-
The [wiki page dedicated to downloading
49-
stack](https://github.com/commercialhaskell/stack/wiki/Downloads) has the most
48+
The [documentation dedicated to downloading
49+
stack](install_and_upgrade.md) has the most
5050
up-to-date information for a variety of operating systems, including multiple
5151
GNU/Linux flavors. Instead of repeating that content here, please go check out
5252
that page and come back here when you can successfully run `stack --version`.
@@ -616,8 +616,8 @@ At the time of writing:
616616
* Experimental GHCJS support
617617
* Experimental custom snapshot support
618618

619-
The most up-to-date information can always be found on the [stack.yaml wiki
620-
page](https://github.com/commercialhaskell/stack/wiki/stack.yaml#resolver).
619+
The most up-to-date information can always be found in the
620+
[stack.yaml documentation](yaml_configuration.md#resolver).
621621

622622
## Existing projects
623623

@@ -722,9 +722,8 @@ Please choose one of the following commands to get started.
722722
stack init --resolver nightly-2015-08-26
723723
stack init --resolver lts-2.22
724724
725-
You'll then need to add some extra-deps. See:
726-
727-
https://github.com/commercialhaskell/stack/wiki/stack.yaml#extra-deps
725+
You'll then need to add some extra-deps. See the
726+
[stack.yaml documentation](yaml_configuration.md#extra-deps).
728727
729728
You can also try falling back to a dependency solver with:
730729
@@ -1026,8 +1025,8 @@ to achieve a high level of flexibility in telling stack exactly what you want
10261025
to build.
10271026

10281027
We're not going to cover the full generality of these arguments here; instead,
1029-
there's [a Wiki page covering the full build command
1030-
syntax](https://github.com/commercialhaskell/stack/wiki/Build-command).
1028+
there's [documentation covering the full build command
1029+
syntax](build_command.md).
10311030
Here, we'll just point out a few different types of arguments:
10321031

10331032
* You can specify a *package name*, e.g. `stack build vector`.
@@ -1162,10 +1161,9 @@ Notice that multiple directories are listed in the `packages` key.
11621161

11631162
In addition to local directories, you can also refer to packages available in a
11641163
Git repository or in a tarball over HTTP/HTTPS. This can be useful for using a
1165-
modified version of a dependency that hasn't yet been released upstream. This
1166-
is a slightly more advanced usage that we won't go into detail with here, but
1167-
it's covered in the [stack.yaml wiki
1168-
page](https://github.com/commercialhaskell/stack/wiki/stack.yaml#packages).
1164+
modified version of a dependency that hasn't yet been released upstream. This is
1165+
a slightly more advanced usage that we won't go into detail with here, but it's
1166+
covered in the [stack.yaml documentation](yaml_configuration.md#packages).
11691167

11701168
## Flags and GHC options
11711169

@@ -1252,8 +1250,8 @@ confusion.
12521250

12531251
Final point: if you have GHC options that you'll be regularly passing to your
12541252
packages, you can add them to your stack.yaml file (starting with
1255-
stack-0.1.4.0). See [the wiki page section on
1256-
ghc-options](https://github.com/commercialhaskell/stack/wiki/stack.yaml#ghc-options)
1253+
stack-0.1.4.0). See [the documentation section on
1254+
ghc-options](yaml_configuration.md#ghc-options)
12571255
for more information.
12581256

12591257
## path
@@ -1513,8 +1511,8 @@ There are lots of resources available for learning more about stack:
15131511
* `--verbose` (or `-v`) — much more info about internal operations (useful for bug reports)
15141512
* The [README](https://github.com/commercialhaskell/stack#readme)
15151513
* The [stack mailing list](https://groups.google.com/d/forum/haskell-stack)
1516-
* The [stack wiki](https://github.com/commercialhaskell/stack/wiki),
1517-
* in particular [the FAQ page](https://github.com/commercialhaskell/stack/wiki/FAQ)
1514+
* The [the FAQ](faq.md)
1515+
* The [stack wiki](https://github.com/commercialhaskell/stack/wiki)
15181516
* The [haskell-stack tag on Stack Overflow](http://stackoverflow.com/questions/tagged/haskell-stack)
15191517
* [Another getting started with stack tutorial](http://seanhess.github.io/2015/08/04/practical-haskell-getting-started.html)
15201518
* [Why is stack not cabal?](https://www.fpcomplete.com/blog/2015/06/why-is-stack-not-cabal)
@@ -1568,10 +1566,9 @@ getting type information in Emacs. For more information, see
15681566
15691567
### Visualizing dependencies
15701568
1571-
If you'd like to get some insight into the dependency tree of your packages,
1572-
you can use the `stack dot` command and Graphviz. More information is
1573-
[available on the
1574-
wiki](https://github.com/commercialhaskell/stack/wiki/Visualizing-dependencies-with-Graphviz).
1569+
If you'd like to get some insight into the dependency tree of your packages, you
1570+
can use the `stack dot` command and Graphviz. More information is
1571+
[available in the Dependency visualization documentation](dependency_visualization.md).
15751572
15761573
### Travis with caching
15771574
@@ -1656,8 +1653,8 @@ code inside a Docker image, which means:
16561653
* the Docker images ship with entire precompiled snapshots. That means you have
16571654
a large initial download, but much faster builds
16581655

1659-
For more information, see [the Docker wiki
1660-
page](https://github.com/commercialhaskell/stack/wiki/Docker).
1656+
For more information, see
1657+
[the Docker-integration documentation](docker_integration.md).
16611658

16621659
stack can also generate Docker images for you containing your built executables.
16631660
This feature is great for automating deployments from CI. This feature is not

doc/faq.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Like all other targets, `stack test` runs test suites in parallel by default. Th
153153
154154
#### Can I get bash autocompletion?
155155
156-
Yes, see the [Shell-autocompletion](https://github.com/commercialhaskell/stack/wiki/Shell-autocompletion) wiki entry
156+
Yes, see the [shell-autocompletion documentation](shell_autocompletion.md)
157157
158158
#### How do I update my package index?
159159
@@ -206,28 +206,7 @@ packages and the tools. See [Docker integration](docker_integration.md) for deta
206206
207207
#### How do I use this with Travis CI?
208208
209-
Stack is in beta now, so keep in mind that the tool's interface is still under flux. For early adopters, here's a sample `.travis.yaml` file:
210-
211-
```YAML
212-
language: haskell
213-
214-
before_install:
215-
# Instructions taken from https://github.com/commercialhaskell/stack/wiki/Downloads
216-
- wget -q -O- http://download.fpcomplete.com/ubuntu/fpco.key | sudo apt-key add -
217-
- echo 'deb http://download.fpcomplete.com/ubuntu/precise stable main' | sudo tee /etc/apt/sources.list.d/fpco.list
218-
- sudo apt-get update
219-
- sudo apt-get install stack -y
220-
221-
install:
222-
- stack setup
223-
224-
script:
225-
- stack test
226-
```
227-
228-
If you wish to use stack as part of a larger matrix, à la [hvr/multi-ghc-travis](https://github.com/hvr/multi-ghc-travis), then you need to do a bit more work. Take a look at [tebello-thejane/bitx-haskell/.travis.yml](https://github.com/tebello-thejane/bitx-haskell/blob/master/.travis.yml), and note the extensive use of `if` statements to select between building with Cabal and stack.
229-
230-
Also, note that some `stack` commands have been known to take longer than 20 minutes when on Travis, thus causing Travis to kill the build. A cheap trick is to cause `stack` to display verbose output (with the `-v` option), which causes it to display more often and thus Travis is less likely to kill it due to lack of perceived activity.
209+
See the [Travis section in the GUIDE](GUIDE.md#travis-with-caching)
231210
232211
#### What is licensing restrictions on Windows?
233212

doc/shell_autocompletion.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Shell Autocompletion:
22

3+
Note: if you installed a package for you Linux distribution, the bash completion
4+
file was automatically installed (you may need the `bash-completion` package to
5+
have it take effect).
6+
37
The following adds support for shell tab completion for standard Stack arguments, although completion for filenames and executables etc. within stack is still lacking (see [issue 82](https://github.com/commercialhaskell/stack/issues/832)).
48

59
### for bash users
@@ -28,4 +32,4 @@ eval "$(stack --bash-completion-script "$(which stack)")"
2832

2933
:information_source: If you already have quite a large zshrc, or if you use oh-my-zsh, **compinit** will probably already be loaded. If you have a blank zsh config, all of the 3 lines above are necessary.
3034

31-
:gem: tip: instead of running those 3 lines from your shell every time you want to use stack, you can add those 3 lines in your $HOME/.zshrc file
35+
:gem: tip: instead of running those 3 lines from your shell every time you want to use stack, you can add those 3 lines in your $HOME/.zshrc file

doc/yaml_configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Specifies how dependencies are resolved. There are currently four resolver types
8585
* No snapshot, just use packages shipped with the compiler
8686
* For GHC this looks like `resolver: ghc-7.10.2`
8787
* For GHCJS this looks like `resolver: ghcjs-0.1.0_ghc-7.10.2`.
88-
* [Custom snapshot](/commercialhaskell/stack/wiki/Custom-Snapshot)
88+
* [Custom snapshot](https://github.com/commercialhaskell/stack/wiki/Custom-Snapshot)
8989

9090
Each of these resolvers will also determine what constraints are placed on the compiler version. See the [compiler-check](#compiler-check) option for some additional control over compiler version.
9191

etc/scripts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ currently handles some tasks that need to be performed on each platform:
66
building the release, running some pre-release checks, and uploading binaries to
77
a Github release.
88

9-
See [Checklist](https://github.com/commercialhaskell/stack/wiki/Checklist) of
9+
See [Checklist](../../doc/MAINTAINER_GUIDE.md) of
1010
additional manual release steps.
1111

1212
Prerequisites

src/Stack/Config.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ resolvePackageEntry menv projRoot pe = do
372372
subs -> mapM (resolveDir entryRoot) subs
373373
case peValidWanted pe of
374374
Nothing -> return ()
375-
Just _ -> $logWarn "Warning: you are using the deprecated valid-wanted field. You should instead use extra-dep. See: https://github.com/commercialhaskell/stack/wiki/stack.yaml#packages"
375+
Just _ -> $logWarn "Warning: you are using the deprecated valid-wanted field. You should instead use extra-dep. See: https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md#packages"
376376
return $ map (, not $ peExtraDep pe) paths
377377

378378
-- | Resolve a PackageLocation into a path, downloading and cloning as

src/Stack/Init.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ renderStackYaml p =
118118
_ -> assert False $ B.byteString $ Yaml.encode p
119119
where
120120
renderObject o =
121-
B.byteString "# For more information, see: https://github.com/commercialhaskell/stack/wiki/stack.yaml\n\n" <>
121+
B.byteString "# For more information, see: https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md\n\n" <>
122122
F.foldMap (goComment o) comments <>
123123
goOthers (o `HM.difference` HM.fromList comments) <>
124124
B.byteString
@@ -170,7 +170,7 @@ getSnapshots' =
170170
$logError ""
171171
$logError "You can try again, or create your stack.yaml file by hand. See:"
172172
$logError ""
173-
$logError " https://github.com/commercialhaskell/stack/wiki/stack.yaml"
173+
$logError " https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md"
174174
$logError ""
175175
$logError $ "Exception was: " <> T.pack (show e)
176176
return Nothing

src/Stack/Setup.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ instance Show SetupException where
145145
[ "The GHC located at "
146146
, toFilePath ghc
147147
, " failed to compile a sanity check. Please see:\n\n"
148-
, " https://github.com/commercialhaskell/stack/wiki/Downloads\n\n"
148+
, " https://github.com/commercialhaskell/stack/blob/master/doc/install_and_upgrade.md\n\n"
149149
, "for more information. Exception was:\n"
150150
, show e
151151
]

src/Stack/Types/Config.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ instance Show ConfigException where
719719
, toFilePath configFile
720720
, "':\n"
721721
, show exception
722-
, "\nSee https://github.com/commercialhaskell/stack/wiki/stack.yaml."
722+
, "\nSee https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md."
723723
]
724724
show (ParseResolverException t) = concat
725725
[ "Invalid resolver value: "
@@ -757,7 +757,7 @@ instance Show ConfigException where
757757
(\name -> " stack init --resolver " ++ T.unpack (renderSnapName name))
758758
names
759759
, "\nYou'll then need to add some extra-deps. See:\n\n"
760-
, " https://github.com/commercialhaskell/stack/wiki/stack.yaml#extra-deps"
760+
, " https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md#extra-deps"
761761
, "\n\nYou can also try falling back to a dependency solver with:\n\n"
762762
, " stack init --solver"
763763
]

0 commit comments

Comments
 (0)