generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 11
docs: initial COSI docs website #16
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
06ee293
docs: initial boilerplate for COSI docs website
shanduur cd70ec0
feat: add pages workflow
shanduur a58d3fe
fix: apply Scality suggestin
shanduur f2ba462
docs: added few other sections
shanduur 40867d0
feat: fetch binary release of mdbook
shanduur 88e7887
feat: add guides placeholder
shanduur 90e6d64
feat: generate CRD ref docs
shanduur 724115f
feat: add docs target to makefile
shanduur e766044
docs: refactor
shanduur 28595c1
feat: version tools
shanduur 6ffeaa8
docs: add dev guidelines
shanduur a51d303
docs: add troubleshooting guide
shanduur 9eacfc3
docs: mention KEP
shanduur 028fbd8
fix: invalid path
shanduur 3ef2987
fix: address tooling review comments
shanduur f9528d2
feat: display version
shanduur c0af796
feat: disable build on prerelease tags
shanduur d7fcd83
fix: remove at from Makefile
shanduur 5f45478
fix: revert image name/tag changes
shanduur 3694bfc
fix: install golangci-lint using recommended method
shanduur 3f3b230
fix: use branch instead of tag
shanduur df4e5fa
fix: few typos
shanduur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| version: 2 | ||
| enable-beta-ecosystems: true | ||
| updates: | ||
|
|
||
| - package-ecosystem: "gomod" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| groups: # batch updates together for fewer dependabot PRs | ||
| golang-dependencies: | ||
| patterns: | ||
| - "github.com/golang*" | ||
| - "golang.org/x*" | ||
| k8s-dependencies: | ||
| patterns: | ||
| - "k8s.io*" | ||
| - "sigs.k8s.io*" | ||
| exclude-patterns: | ||
| # controller-runtime has history of breaking API changes more often than other k8s projects | ||
| - "sigs.k8s.io/controller-runtime" | ||
| github-dependencies: | ||
| patterns: | ||
| - "github.com*" | ||
|
|
||
| - package-ecosystem: "docker" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # Sample workflow for building and deploying a mdBook site to GitHub Pages | ||
| # | ||
| # To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html | ||
| # | ||
| name: Deploy mdBook site to Pages | ||
|
|
||
| on: | ||
| # Runs on only core version tags | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| - '!v*-alpha*' | ||
| - '!v*-beta*' | ||
| - '!v*-pre*' | ||
| - '!v*-rc*' | ||
|
|
||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
|
|
||
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| # Build job | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install mdBook | ||
| run: | | ||
| make mdbook | ||
| - name: Setup Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: ./client/go.mod | ||
| - name: Setup Pages | ||
| id: pages | ||
| uses: actions/configure-pages@v5 | ||
| - name: Build with mdBook | ||
| run: | | ||
| make build-docs | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: ./docs/book | ||
|
|
||
| # Deployment job | ||
| deploy: | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| processor: | ||
| # RE2 regular expressions describing types that should be excluded from the generated documentation. | ||
| ignoreTypes: [] | ||
| # RE2 regular expressions describing type fields that should be excluded from the generated documentation. | ||
| ignoreFields: [] | ||
| render: | ||
| # Version of Kubernetes to use when generating links to Kubernetes API documentation. | ||
| kubernetesVersion: '1.32' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| book | ||
| theme/index.hbs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [book] | ||
| title = "Container Object Storage Interface" | ||
| description = "This site documents how to develop and deploy a Container Object Storage Interface (COSI) driver on Kubernetes." | ||
| authors = ["The Kubernetes Authors"] | ||
|
|
||
| [output.html] | ||
| git-repository-url = "https://github.com/kubernetes-sigs/container-object-storage-interface/tree/main/docs" | ||
| edit-url-template = "https://github.com/kubernetes-sigs/container-object-storage-interface/tree/main/docs/{path}" | ||
| additional-css = ["theme/custom.css"] | ||
| theme = "theme" | ||
|
|
||
| [preprocessor.generate-version] | ||
| renderers = ["html"] | ||
| command = """sh -c 'scripts/generate-version.sh'""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -eu | ||
|
|
||
| jq ".[1]" | ||
|
|
||
| SHA=$(git rev-parse HEAD) | ||
| VERSION="Commit: <a target="_blank" href=\"https:\/\/github.com\/kubernetes-sigs\/container-object-storage-interface\/tree\/${SHA}\"><code>${SHA}<\/code><\/a>" | ||
| BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
|
|
||
| if [ -n "$BRANCH" ]; then | ||
| VERSION="Branch: <a target="_blank" href=\"https:\/\/github.com\/kubernetes-sigs\/container-object-storage-interface\/tree\/${BRANCH}\"><code>${BRANCH}<\/code><\/a> ${VERSION}" | ||
| fi | ||
|
|
||
| sed "s/VERSION-PLACEHOLDER/${VERSION}/" theme/index-template.hbs > theme/index.hbs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Summary | ||
|
|
||
| - [Introduction](./introduction.md) | ||
| - [Quick Start](./quick-start.md) | ||
| - [Tasks](./operations/tasks.md) | ||
| - [Installing COSI Driver](./operations/installing-driver.md) | ||
| - [Troubleshooting](./operations/troubleshooting.md) | ||
| - [Monitoring](./operations/monitoring.md) | ||
| - [Developer guide](./developing/guide.md) | ||
| - [Developing "core" COSI](./developing/core.md) | ||
| - [Developing a COSI Driver](./developing/drivers.md) | ||
| - [Developing client applications](./developing/clients.md) | ||
| - [Go](./developing/clients/go.md) | ||
| <!-- TODO(guides): add new guides --> | ||
| - [Drivers](./drivers.md) | ||
| - [API Reference](./api/out.md) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.