Skip to content

Commit c8dac09

Browse files
committed
clean up linking in docs
1 parent 7a34ac5 commit c8dac09

9 files changed

Lines changed: 27 additions & 50 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@ Before pushing, apply the linting rules (this calls uv under the hood):
1919
```
2020
./lint
2121
```
22+
## building the docs
23+
24+
The documentation for Stackinator is built from the markdown files in the `docs` path using MkDocs and MkDocs-material.
25+
You can view the latest documentation online at [github.io](https://eth-cscs.github.io/stackinator/)
26+
27+
To view work in progress docs, run the serve script and follow the link it provides to view a local copy of the docs in your browser.
28+
```bash
29+
./serve
30+
```

docs/building.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
[](){#ref-building}
12
# Building Spack Stacks
23

3-
Once a stack has been [configured](configuring.md) using `stack-config`, it's time to build the software stack.
4+
Once a stack has been [configured][ref-configuring] using `stack-config`, it's time to build the software stack.
45

56
## How to Build
67

@@ -18,7 +19,7 @@ env --ignore-environment PATH=/usr/bin:/bin:`pwd -P`/spack/bin make modules stor
1819
The call to `make` is wrapped with with `env --ignore-env` to unset all environment variables, to improve reproducability of builds.
1920

2021
Build times for stacks typically vary between 30 minutes to 3 hours, depending on the specific packages that have to be built.
21-
Using [build caches](build-caches.md) and building in shared memory (see below) are the most effective methods to speed up builds.
22+
Using [build caches][ref-mirrors] and building in shared memory (see below) are the most effective methods to speed up builds.
2223

2324
## Where to Build
2425

docs/cluster-config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[](){#ref-cluster-config}
12
# Cluster Configuration
23

34
Spack stacks are built on bare-metal clusters using a minimum of dependencies from the underlying system.
@@ -10,7 +11,7 @@ A cluster configuration is a directory with the following structure:
1011
└─ repos.yaml # optional reference to additional site packages
1112
```
1213

13-
The configuration is provided during the [configuration](configuring.md) step with the `--system/-s` flag.
14+
The configuration is provided during the [configuration][ref-configuring] step with the `--system/-s` flag.
1415
The following example targets the Clariden system at CSCS:
1516

1617
```bash
@@ -98,7 +99,7 @@ packages:
9899
Mirrors and caches are **not** part of the system configuration.
99100
They are supplied per-invocation with `stack-config --mirror <file>`, because the locations involved (build caches, source caches) are often specific to the user running the build and may not be accessible to everyone using a system.
100101

101-
See [Mirrors and Build Caches](build-caches.md) for the full reference and examples.
102+
See [Mirrors and Build Caches][ref-mirrors] for the full reference and examples.
102103

103104
## Site and System Configurations
104105

docs/configuring.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[](){#ref-configuring}
12
# Configuring Spack Stacks
23

34
Stackinator generates the make files and spack configurations that build the spack environments that are packaged together in the spack stack.
@@ -10,13 +11,13 @@ stack-config --build $BUILD_PATH --recipe $RECIPE_PATH --system $SYSTEM_CONFIG_P
1011

1112
The following flags are required:
1213

13-
* `-b/--build`: the path where the [build](building.md) is to be performed.
14-
* `-r/--recipe`: the path with the [recipe](recipes.md) yaml files that describe the environment.
15-
* `-s/--system`: the path containing the [system configuration](cluster-config.md) for the target cluster.
14+
* `-b/--build`: the path where the [build][ref-building] is to be performed.
15+
* `-r/--recipe`: the path with the [recipe][ref-recipes] yaml files that describe the environment.
16+
* `-s/--system`: the path containing the [system configuration][ref-cluster-config] for the target cluster.
1617

1718
The following flags are optional:
1819

19-
* `--mirror`: path to a [mirrors.yaml](build-caches.md) file configuring build caches and mirrors.
20+
* `--mirror`: path to a [mirrors.yaml][ref-mirrors] file configuring build caches and mirrors.
2021
* `-c/--cache`: legacy build cache configuration file (deprecated; use `--mirror`).
2122
* `-m/--mount`: override the [mount point](installing.md) where the stack will be installed.
2223
* `--version`: print the stackinator version.

docs/installing.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[](){#ref-installing}
12
# Installing Stacks
23

34
The installation path of the software stack is set when the stack is configured.
@@ -45,4 +46,6 @@ The `store` sub-directory contains the full software stack installation tree.
4546
### SquashFS installation
4647

4748
The `store.squashfs` file is a compressed [SquashFS](https://tldp.org/HOWTO/SquashFS-HOWTO/whatis.html) image of the contents of the `store` path.
48-
This can be mounted at runtime using [`squashfs-mount`](https://github.com/eth-cscs/squashfs-mount) or the [Slurm plugin](https://github.com/eth-cscs/slurm-uenv-mount/), or mounted by a system-administrator using [`mount`](https://man7.org/linux/man-pages/man2/mount.2.html), in order the to take advantage of the benefits of SquashFS over shared file systems.
49+
This can be mounted at runtime using [`uenv`](https://github.com/eth-cscs/uenv) or the uenv Slurm plugin.
50+
51+
Images can also be mounted by a system-administrator using [`mount`](https://man7.org/linux/man-pages/man2/mount.2.html), which is used in production at CSCS to permanantly mount software stacks used by the weather service on their operational cluster when nodes boot.

docs/mirrors.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[](){#ref-mirrors}
12
# Mirrors and Build Caches
23

34
Spack can use *mirrors* and *caches* to speed up image builds and to build on systems with limited or no internet access.
@@ -8,7 +9,7 @@ They are configured in a single YAML file passed to `stack-config` using the `--
89
stack-config -b $build -r $recipe -s $system --mirror mirrors.yaml
910
```
1011

11-
The file is not part of the [system configuration](cluster-config.md): mirror locations are usually specific to the person running the build, so each invocation provides its own.
12+
The file is not part of the [system configuration][ref-cluster-config]: mirror locations are usually specific to the person running the build, so each invocation provides its own.
1213

1314
A `mirrors.yaml` can describe five kinds of entry, each optional and each documented below:
1415

docs/readme.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/recipes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[](){#ref-recipes}
12
# Recipes
23

34
A recipe is a description of all of the compilers and software packages to be installed, along with configuration of modules and environment scripts the stack will provide to users.

docs/tutorial.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)