Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Minor updates #129

Merged
merged 3 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_test_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'docs/**'
pull_request:
branches:
- main
- "*"
paths-ignore:
- '**/**.md'
- 'docs/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'docs/**'
pull_request:
branches:
- main
- "*"
paths-ignore:
- '**/**.md'
- 'docs/**'
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
paths:
- 'README.md'
- 'docs/book/**'
- 'docs/**'

permissions:
contents: read
Expand All @@ -16,21 +16,28 @@ permissions:
jobs:
generate-docs:
runs-on: ubuntu-latest
container: docker.io/node:20-bullseye-slim
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.35'
run: |
apt-get update
apt-get install curl -y
mkdir mdbook
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
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
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Build with mdBook
run: |
cd docs
mdbook build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with mdBook
run: cd docs/book && mdbook build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/book/book'
path: 'docs/book'

deploy-page:
needs: generate-docs
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ kind-logs-*
cover.out
kubeconfig*
.devbox/*
docs/book
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ to create, configure, and manage Kubernetes clusters.
## Compatibility

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

### Kubernetes Versions

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

## Documentation

Please see our [Book](https://linode.github.io/cluster-api-provider-linode) for in-depth user documentation.

Additional docs can be found in the [/docs](/docs) directory.
Please see our [Book](https://linode.github.io/cluster-api-provider-linode) for in-depth user and developer documentation.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

## Troubleshooting

- [Troubleshooting guide](ihttps://linode.github.io/cluster-api-provider-linode/topics/troubleshooting.html)
- [Troubleshooting guide](https://linode.github.io/cluster-api-provider-linode/topics/troubleshooting.html)
5 changes: 1 addition & 4 deletions docs/book/book.toml → docs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ multilingual = false
src = "src"
title = "Cluster API Provider Linode Book"

[build]
build-dir = "book"

[output.html]
git-repository-url = "https://github.com/linode/cluster-api-provider-linode"
additional-css = ["./theme/mdbook-admonish.css"]
additional-css = ["mdbook-admonish.css"]

[preprocessor]

Expand Down
1 change: 0 additions & 1 deletion docs/book/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion docs/book/src/introduction.md

This file was deleted.

File renamed without changes
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/src/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{#include ../../README.md}}
File renamed without changes.
File renamed without changes.
File renamed without changes.