File tree Expand file tree Collapse file tree 8 files changed +16
-2340
lines changed Expand file tree Collapse file tree 8 files changed +16
-2340
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ build-docs: generate mdbook
119119MDBOOK_PORT ?= 3000
120120
121121.PHONY : serve-docs
122- serve-docs : generate mdbook
122+ serve-docs : generate mdbook build-docs
123123 cd docs; $(MDBOOK ) serve --port $(MDBOOK_PORT )
124124
125125.PHONY : clean
@@ -175,7 +175,7 @@ CTLPTL_VERSION ?= v0.8.39
175175GOLANGCI_LINT_VERSION ?= v1.64.7
176176KIND_VERSION ?= v0.27.0
177177KUSTOMIZE_VERSION ?= v5.6.0
178- MDBOOK_VERSION ?= v0.4.47
178+ MDBOOK_VERSION ?= v0.4.45
179179
180180.PHONY : chainsaw
181181chainsaw : $(CHAINSAW ) -$(CHAINSAW_VERSION )
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ authors = ["The Kubernetes Authors"]
66[output .html ]
77git-repository-url = " https://github.com/kubernetes-sigs/container-object-storage-interface/tree/main/docs"
88edit-url-template = " https://github.com/kubernetes-sigs/container-object-storage-interface/tree/main/docs/{path}"
9- additional-css = [" custom.css" ]
9+ additional-css = [" theme/custom.css" ]
10+ theme = " theme"
1011
1112[preprocessor .generate-version ]
1213renderers = [" html" ]
Original file line number Diff line number Diff line change 1- jq " .[1]" ;
1+ #! /usr/bin/env bash
2+
3+ set -eu
4+
5+ jq " .[1]"
6+
27SHA=$( git rev-parse HEAD)
3- VERSION=" Built from: <a target=" _blank" href=\" https:\/\/github.com\/kubernetes-sigs\/container-object-storage-interface\/tree\/${SHA} \" ><code>${SHA} <\/code><\/a>"
4- TAG=$( git tag --contains " $SHA " | grep -E ' ^v[0-9]+\.[0-9]+\.[0-9]+$' )
5- if [ -n " $TAG " ]; then
6- VERSION=" Version: <a target=" _blank" href=\" https:\/\/github.com\/kubernetes-sigs\/container-object-storage-interface\/tree\/${TAG} \" ><code>${TAG} <\/code><\/a> ${VERSION} "
8+ VERSION=" Commit: <a target=" _blank" href=\" https:\/\/github.com\/kubernetes-sigs\/container-object-storage-interface\/tree\/${SHA} \" ><code>${SHA} <\/code><\/a>"
9+ BRANCH=$( git rev-parse --abbrev-ref HEAD)
10+
11+ if [ -n " $BRANCH " ]; then
12+ VERSION=" Branch: <a target=" _blank" href=\" https:\/\/github.com\/kubernetes-sigs\/container-object-storage-interface\/tree\/${BRANCH} \" ><code>${BRANCH} <\/code><\/a> ${VERSION} "
713fi
14+
815sed " s/VERSION-PLACEHOLDER/${VERSION} /" theme/index-template.hbs > theme/index.hbs
File renamed without changes.
You can’t perform that action at this time.
0 commit comments