Skip to content

Commit a891d9e

Browse files
author
Rafid Bin Mostofa
authored
chore: add CI checks (#8)
Adds basic CI checks and fixes the problematic files already present. The tests include checks for: - spelling - inclusive language - broken links - markdown style
1 parent cc3943d commit a891d9e

File tree

13 files changed

+112
-12
lines changed

13 files changed

+112
-12
lines changed

.github/workflows/tests.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
workflow_dispatch:
10+
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
17+
jobs:
18+
docs-check:
19+
name: "Check docs"
20+
uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main
21+
with:
22+
working-directory: "docs"
23+
fetch-depth: 0
24+
25+
markdown-lint:
26+
name: "Lint Markdown"
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: DavidAnson/markdownlint-cli2-action@v19
31+
with:
32+
config: "docs/.sphinx/.markdownlint.json"
33+
globs: |
34+
**/*.{md,markdown}
35+
! docs/.sphinx/**

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Documentation pages for Chisel.
1515
## Contribution guides
1616

1717
Prior to contributing, you must -
18+
1819
- read and get acquainted with the [Ubuntu Code of Conduct] and
1920
- sign the [Canonical contributor license agreement].
2021

docs/.custom_wordlist.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,28 @@ AGPL
22
Armored
33
Levenshtein
44
OpenPGP
5+
SBOM
6+
SDFs
57
Starlark
68
Subcommands
79
ZSTD
810
armor
911
armored
1012
basename
13+
chiseled
14+
distroless
1115
esm
1216
fips
1317
http
1418
https
1519
jsonwall
1620
optimize
21+
recognized
22+
runtime
23+
schemas
1724
subcommand
1825
subcommands
1926
symlink
2027
ubuntu
28+
whitespace
2129
yaml

docs/explanation/mode-of-operation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(chisel_mo_explanation)=
2+
23
# How Chisel works
34

45
The purpose of Chisel is to create a minimal Ubuntu root file system comprising

docs/explanation/slices.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(slices_explanation)=
2+
23
# Slices
34

45
## What are package slices?

docs/how-to/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(how_to_guides)=
2+
23
# How-to guides
34

45
These guides will walk you through steps of using Chisel through its operations

docs/how-to/install-chisel.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ methods:
99

1010

1111
(install_chisel_binary)=
12+
1213
## Install the binary
1314

1415
We publish pre-built binaries for every version of Chisel on GitHub. To install
@@ -49,6 +50,7 @@ the latest Chisel binary:
4950
<!-- End: Install Chisel binary -->
5051

5152
(install_chisel_source)=
53+
5254
## Install from source
5355

5456
Alternatively, you can install the latest version of Chisel from source:
@@ -67,6 +69,7 @@ Alternatively, you can install the latest version of Chisel from source:
6769

6870

6971
(install_chisel_snap)=
72+
7073
## Install Snap
7174

7275
You can also install the latest version of Chisel from the Snap store. Run the

docs/reference/chisel-releases/chisel.yaml.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
(chisel_yaml_ref)=
2+
23
# chisel.yaml
34

45
The `chisel.yaml` file defines various configuration values for Chisel,
56
for a given _chisel-release_.
67

78

89
(chisel_yaml_location)=
10+
911
## Location
1012

1113
The file must be placed in the root level of a {ref}`chisel-releases_ref`
1214
directory.
1315

1416

1517
(chisel_yaml_format_spec)=
18+
1619
## Format specification
1720

1821
(chisel_yaml_format_spec_format)=
22+
1923
### `format`
2024

2125
| Field | Type | Required | Supported values |
@@ -36,6 +40,7 @@ introduce disruptive changes to the previous formats.
3640

3741

3842
(chisel_yaml_format_spec_archives)=
43+
3944
### `archives`
4045

4146
| Field | Type | Required |
@@ -73,6 +78,7 @@ otherwise, the archive point to the Ubuntu Pro archives listed
7378

7479

7580
(chisel_yaml_format_spec_archives_default)=
81+
7682
### `archives.<name>.default`
7783

7884
| Field | Type | Required | Supported values |
@@ -93,6 +99,7 @@ so use {ref}`chisel_yaml_format_spec_archives_priority` instead.
9399

94100

95101
(chisel_yaml_format_spec_archives_version)=
102+
96103
### `archives.<name>.version`
97104

98105
| Field | Type | Required | Supported values |
@@ -105,6 +112,7 @@ the archive behaviour.
105112

106113

107114
(chisel_yaml_format_spec_archives_suites)=
115+
108116
### `archives.<name>.suites`
109117

110118
| Field | Type | Required | Supported values |
@@ -117,6 +125,7 @@ guide](https://canonical-ubuntu-packaging-guide.readthedocs-hosted.com/en/latest
117125

118126

119127
(chisel_yaml_format_spec_archives_components)=
128+
120129
### `archives.<name>.components`
121130

122131
| Field | Type | Required | Supported values |
@@ -132,6 +141,7 @@ locate packages.
132141

133142

134143
(chisel_yaml_format_spec_archives_public_keys)=
144+
135145
### `archives.<name>.public-keys`
136146

137147
| Field | Type | Required | Supported values |
@@ -144,6 +154,7 @@ file signatures. These key names must be defined in
144154

145155

146156
(chisel_yaml_format_spec_archives_priority)=
157+
147158
### `archives.<name>.priority`
148159

149160
| Field | Type | Required | Supported values |
@@ -156,11 +167,13 @@ available in two archives, it is fetched from the archive with higher priority,
156167
unless the package's slice definitions file specifies {ref}`"archive"<slice_definitions_format_archive>`.
157168

158169
Note that:
170+
159171
- an unspecified `priority` field **does not** yield a 0 value, and
160172
- two archives cannot have the same `priority` value.
161173

162174

163175
(chisel_yaml_format_spec_archives_pro)=
176+
164177
### `archives.<name>.pro`
165178

166179
| Field | Type | Required | Supported values |
@@ -201,14 +214,15 @@ Although not enforced, the following `priority` values are suggested when
201214
```
202215

203216
(chisel_yaml_format_spec_public_keys)=
217+
204218
### `public-keys`
205219

206220
| Field | Type | Required |
207221
| ------------- | -------- | -------- |
208222
| `public-keys` | `object` | Required |
209223

210224
The top-level `public-keys` field is used to define OpenPGP public keys that are
211-
needed to verify the `InRelease` file signatures of the
225+
needed to verify the `InRelease` file signatures of the
212226
{ref}`chisel_yaml_format_spec_archives`.
213227

214228
For example:
@@ -230,6 +244,7 @@ The key names are then referenced in
230244

231245

232246
(chisel_yaml_format_spec_public_keys_id)=
247+
233248
### `public-keys.<name>.id`
234249

235250
| Field | Type | Required |
@@ -242,6 +257,7 @@ fingerprint in {ref}`chisel_yaml_format_spec_public_keys_armor`.
242257

243258

244259
(chisel_yaml_format_spec_public_keys_armor)=
260+
245261
### `public-keys.<name>.armor`
246262

247263
| Field | Type | Required |
@@ -253,6 +269,7 @@ key.
253269

254270

255271
(chisel_yaml_example)=
272+
256273
## Example
257274

258275
The following `chisel.yaml` is used in Ubuntu 24.04 (Noble) release:

docs/reference/chisel-releases/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(chisel-releases_ref)=
2+
23
# chisel-releases
34

45
Chisel uses **slice definitions files** (aka SDFs) to define the slices of packages.

0 commit comments

Comments
 (0)