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

Introducing mkdocs generated github pages for etcd-druid documentation #909

Merged
merged 20 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
603bace
WIP changes for mkdocs
unmarshall Oct 29, 2024
d00f4b8
reduce empty space around the svg image
unmarshall Oct 29, 2024
8ba3b2b
updated mkdocs yaml and added custom css, made misc corrections to docs
unmarshall Nov 7, 2024
4e8658b
removed toc from proposals, added admonition to mkdocs and adjust md …
unmarshall Nov 7, 2024
3374fb1
adapted admonitions
unmarshall Nov 7, 2024
75848bb
adding github action to publish mkdocs as github pages
unmarshall Nov 7, 2024
3baef98
for testing added tracking of mkdocs branch
unmarshall Nov 7, 2024
6f0e685
p align was deprecated, corrected it and removed redundent img closin…
unmarshall Nov 8, 2024
f9c19ac
corrected github actions checkout version
unmarshall Nov 8, 2024
57ef5f8
added badge for documentation and removed mkdocs branch from github a…
unmarshall Nov 8, 2024
0c40828
changed the order of nav and corrected a small grammatical error in o…
unmarshall Nov 8, 2024
31d30b4
addressed review comments from shreyas, readded mkdocs branch trackin…
unmarshall Nov 8, 2024
10deffd
added css to highlight current page in left nav panel
unmarshall Nov 9, 2024
da60b3f
cleaned up css
unmarshall Nov 9, 2024
06ab0a4
added pymdownx.inlinehilite and configured pymdownx.highlight mkdocs …
unmarshall Nov 9, 2024
e414173
switched to using elastic crd-ref-docs which generates a proper md
unmarshall Nov 11, 2024
742ccfd
removed toc from proposal template as suggested by sesha
unmarshall Nov 11, 2024
d5e8f5d
fixed target generate
unmarshall Nov 11, 2024
40d6033
addressed review comments from saketh
unmarshall Nov 11, 2024
78f6625
changed the font for section tabs
unmarshall Nov 11, 2024
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
29 changes: 29 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish docs via Github pages
on:
push:
branches:
- master
- mkdocs
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install \
mkdocs-material \
pymdown-extensions \
mkdocs-glightbox \
mkdocs-pymdownx-material-extras
- run: mkdocs gh-deploy --force
renormalize marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@ manifests: $(VGOPATH) $(CONTROLLER_GEN)
@find "$(REPO_ROOT)/config/crd/bases" -name "*.yaml" -exec cp '{}' "$(REPO_ROOT)/charts/druid/charts/crds/templates/" \;
@controller-gen rbac:roleName=manager-role paths="./internal/controller/..."

.PHONY: generate-api-docs
generate-api-docs: $(CRD_REF_DOCS)
@crd-ref-docs --source-path "$(REPO_ROOT)/api" --config "$(HACK_DIR)/api-reference/config.yaml" --output-path "$(REPO_ROOT)/docs/api-reference/etcd-druid-api.md" --renderer markdown

# Generate code
.PHONY: generate
generate: manifests $(CONTROLLER_GEN) $(GOIMPORTS) $(MOCKGEN)
generate: manifests generate-api-docs $(CONTROLLER_GEN) $(GOIMPORTS) $(MOCKGEN)
@go generate "$(REPO_ROOT)/internal/..."
@"$(HACK_DIR)/update-codegen.sh"

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="docs/assets/logo/etcd-druid-with-tagline.png" style="width:120%"></img>

[![REUSE status](https://api.reuse.software/badge/github.com/gardener/etcd-druid)](https://api.reuse.software/info/github.com/gardener/etcd-druid) [![CI Build status](https://concourse.ci.gardener.cloud/api/v1/teams/gardener/pipelines/etcd-druid-master/jobs/master-head-update-job/badge)](https://concourse.ci.gardener.cloud/teams/gardener/pipelines/etcd-druid-master/jobs/master-head-update-job) [![Go Report Card](https://goreportcard.com/badge/github.com/gardener/etcd-druid)](https://goreportcard.com/report/github.com/gardener/etcd-druid) [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE) [![Release](https://img.shields.io/github/v/release/gardener/etcd-druid.svg?style=flat)](https://github.com/gardener/etcd-druid) [![Go Reference](https://pkg.go.dev/badge/github.com/gardener/etcd-druid.svg)](https://pkg.go.dev/github.com/gardener/etcd-druid)
[![REUSE status](https://api.reuse.software/badge/github.com/gardener/etcd-druid)](https://api.reuse.software/info/github.com/gardener/etcd-druid) [![CI Build status](https://concourse.ci.gardener.cloud/api/v1/teams/gardener/pipelines/etcd-druid-master/jobs/master-head-update-job/badge)](https://concourse.ci.gardener.cloud/teams/gardener/pipelines/etcd-druid-master/jobs/master-head-update-job) [![Go Report Card](https://goreportcard.com/badge/github.com/gardener/etcd-druid)](https://goreportcard.com/report/github.com/gardener/etcd-druid) [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE) [![Release](https://img.shields.io/github/v/release/gardener/etcd-druid.svg?style=flat)](https://github.com/gardener/etcd-druid) [![Go Reference](https://pkg.go.dev/badge/github.com/gardener/etcd-druid.svg)](https://pkg.go.dev/github.com/gardener/etcd-druid) [![Docs](https://img.shields.io/badge/Docs-reference-orange)](https://gardener.github.io/etcd-druid/index.html)

`etcd-druid` is an [etcd](https://github.com/etcd-io/etcd) [operator](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/) which makes it easy to configure, provision, reconcile, monitor and delete etcd clusters. It enables management of etcd clusters through [declarative Kubernetes API model](config/crd/bases/crd-druid.gardener.cloud_etcds.yaml).

Expand All @@ -14,7 +14,7 @@ In every etcd cluster managed by `etcd-druid`, each etcd member is a two contain
- Restoration - In case of a DB corruption for a single-member cluster it helps in restoring from latest set of snapshots (full & delta).
- Member control operations.

`etcd-druid` additional provides the following capabilities:
`etcd-druid` additionally provides the following capabilities:

- Facilitates declarative scale-out of [etcd](https://github.com/etcd-io/etcd) clusters.
- Provides protection against accidental deletion/mutation of resources provisioned as part of an etcd cluster.
Expand All @@ -29,7 +29,7 @@ If you are looking to try out druid then you can use a [Kind](https://kind.sigs.

https://github.com/user-attachments/assets/cfe0d891-f709-4d7f-b975-4300c6de67e4

For detailed documentation, see our `/docs` folder. Please find the [index](docs/README.md) here.
For detailed documentation, see our [docs](https://gardener.github.io/etcd-druid/index.html).

## Contributions

Expand Down
Loading