Skip to content

Commit 5a15cd6

Browse files
[docs] Minor updates (#129)
* minor doc corrections * fix test actions to not run for any docs-only changes * tweak gh-pages workflow for admonish install
1 parent 5cf2c34 commit 5a15cd6

19 files changed

+22
-20
lines changed

.github/workflows/build_test_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- 'docs/**'
1010
pull_request:
1111
branches:
12-
- main
12+
- "*"
1313
paths-ignore:
1414
- '**/**.md'
1515
- 'docs/**'

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- 'docs/**'
1010
pull_request:
1111
branches:
12-
- main
12+
- "*"
1313
paths-ignore:
1414
- '**/**.md'
1515
- 'docs/**'

.github/workflows/gh-pages.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77
paths:
88
- 'README.md'
9-
- 'docs/book/**'
9+
- 'docs/**'
1010

1111
permissions:
1212
contents: read
@@ -16,21 +16,28 @@ permissions:
1616
jobs:
1717
generate-docs:
1818
runs-on: ubuntu-latest
19+
container: docker.io/node:20-bullseye-slim
1920
timeout-minutes: 2
2021
steps:
2122
- uses: actions/checkout@v4
2223
- name: Setup mdBook
23-
uses: peaceiris/actions-mdbook@v1
24-
with:
25-
mdbook-version: '0.4.35'
24+
run: |
25+
apt-get update
26+
apt-get install curl -y
27+
mkdir mdbook
28+
curl -sSL https://github.com/rust-lang/mdbook/releases/download/v0.4.37/mdbook-v0.4.37-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
29+
curl -sSL https://github.com/tommilligan/mdbook-admonish/releases/download/v1.15.0/mdbook-admonish-v1.15.0-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
30+
echo `pwd`/mdbook >> $GITHUB_PATH
31+
- name: Build with mdBook
32+
run: |
33+
cd docs
34+
mdbook build
2635
- name: Setup Pages
2736
uses: actions/configure-pages@v4
28-
- name: Build with mdBook
29-
run: cd docs/book && mdbook build
3037
- name: Upload artifact
3138
uses: actions/upload-pages-artifact@v3
3239
with:
33-
path: 'docs/book/book'
40+
path: 'docs/book'
3441

3542
deploy-page:
3643
needs: generate-docs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ kind-logs-*
55
cover.out
66
kubeconfig*
77
.devbox/*
8+
docs/book

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ to create, configure, and manage Kubernetes clusters.
3838
## Compatibility
3939

4040
### Cluster API Versions
41-
CAPL is compatible only with the `v1beta1` version of CAPI (v1.0.x).
41+
CAPL is compatible only with the `v1beta1` version of CAPI (v1.x).
4242

4343
### Kubernetes Versions
4444

@@ -48,6 +48,4 @@ CAPL is able to install and manage the [versions of Kubernetes supported by the
4848

4949
## Documentation
5050

51-
Please see our [Book](https://linode.github.io/cluster-api-provider-linode) for in-depth user documentation.
52-
53-
Additional docs can be found in the [/docs](/docs) directory.
51+
Please see our [Book](https://linode.github.io/cluster-api-provider-linode) for in-depth user and developer documentation.

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111

1212
## Troubleshooting
1313

14-
- [Troubleshooting guide](ihttps://linode.github.io/cluster-api-provider-linode/topics/troubleshooting.html)
14+
- [Troubleshooting guide](https://linode.github.io/cluster-api-provider-linode/topics/troubleshooting.html)

docs/book/book.toml renamed to docs/book.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ multilingual = false
55
src = "src"
66
title = "Cluster API Provider Linode Book"
77

8-
[build]
9-
build-dir = "book"
10-
118
[output.html]
129
git-repository-url = "https://github.com/linode/cluster-api-provider-linode"
13-
additional-css = ["./theme/mdbook-admonish.css"]
10+
additional-css = ["mdbook-admonish.css"]
1411

1512
[preprocessor]
1613

docs/book/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/book/src/introduction.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)