Skip to content

Commit 44eb8c3

Browse files
committed
📖 Quickstart / add other sections
Signed-off-by: Vince Prignano <[email protected]>
1 parent a3417af commit 44eb8c3

28 files changed

+560
-36
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,4 @@ diagrams: ## Build proposal diagrams
280280

281281
.PHONY: serve-book
282282
serve-book: ## Build and serve the book with live-reloading enabled
283-
(cd ./docs/book && mdbook serve)
283+
$(MAKE) -C docs/book serve

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- [Scope, objectives, goals and requirements](./docs/scope-and-objectives.md)
1313
- [Feature proposals](./docs/proposals)
1414
- [Reference use cases](./docs/staging-use-cases.md)
15-
- [Quick Start](https://cluster-api.sigs.k8s.io/quick-start.html)
15+
- [Quick Start](https://cluster-api.sigs.k8s.io/user/quick-start.html)
1616

1717
## What is the Cluster API?
1818

docs/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
1717
SOURCES := $(shell find ${ROOT_DIR} -name \*.plantuml)
1818
DIAGRAMS := $(SOURCES:%.plantuml=%.png)
1919

20+
.PHONY: diagrams
2021
diagrams: $(DIAGRAMS)
2122

2223
%.png: %.plantuml
@@ -26,5 +27,3 @@ diagrams: $(DIAGRAMS)
2627
--user $(shell id -u):$(shell id -g) \
2728
us.gcr.io/k8s-artifacts-prod/cluster-api/plantuml:1.2019.6 \
2829
-v /workdir/$(shell echo '$^' | sed -e 's,.*docs/,,g' )
29-
30-
.PHONY: diagrams

docs/book/Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2019 The Kubernetes Authors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Directories.
16+
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
17+
TOOLS_DIR := ../../hack/tools
18+
TOOLS_BIN_DIR := $(TOOLS_DIR)/bin
19+
BIN_DIR := bin
20+
21+
# Binaries.
22+
TABULATE := $(TOOLS_BIN_DIR)/tabulate
23+
24+
$(TABULATE): $(TOOLS_DIR)/go.mod
25+
cd $(TOOLS_DIR); go build -tags=tools -o $(BIN_DIR)/tabulate ./tabulate
26+
27+
.PHONY: serve
28+
serve:
29+
mdbook serve

docs/book/book.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ title = "The Cluster API Book"
88
[output.html]
99
curly-quotes = true
1010
git-repository-url = "https://sigs.k8s.io/cluster-api"
11+
12+
[preprocessor.foo]
13+
command = "./tabulate.sh"

docs/book/install-and-build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ curl -sL -o /tmp/mdbook.${ext} "https://github.com/rust-lang-nursery/mdBook/rele
6060
${cmd} /tmp/mdbook.${ext}
6161
chmod +x /tmp/mdbook
6262

63-
/tmp/mdbook build docs/book
63+
# Finally build the book.
64+
(cd docs/book && /tmp/mdbook build)

docs/book/src/SUMMARY.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22

33
[Introduction](./introduction.md)
44

5-
[Quick Start](./quick-start.md)
5+
- [User Guide](./user/guide.md)
6+
- [Concepts](./user/concepts.md)
7+
- [Quick Start](./user/quick-start.md)
68

7-
- [Architecture](./architecture/architecture.md)
9+
- [Developer Guide](./architecture/developer-guide.md)
810
- [Repository Layout](./architecture/repository-layout.md)
911
- [Controllers](./architecture/controllers.md)
1012
- [Cluster](./architecture/controllers/cluster.md)
1113
- [Machine](./architecture/controllers/machine.md)
1214
- [MachineSet](./architecture/controllers/machine-set.md)
1315
- [MachineDeployment](./architecture/controllers/machine-deployment.md)
14-
15-
- [Clusterctl](./clusterctl/clusterctl.md)
16-
17-
- [Provider Implementers](./providers/implementers.md)
16+
- [Provider Implementers](./providers/implementers.md)
17+
- [v1alpha1 to v1alpha2](./providers/v1alpha1-to-v1alpha2.md)
18+
- [Tooling](./tooling/tooling.md)
19+
- [Clusterctl](./tooling/clusterctl.md)
1820

1921
- [Reference](./reference/reference.md)
2022
- [Abbreviations](./reference/abbreviations.md)

docs/book/src/architecture/architecture.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Developer Guide

docs/book/src/glossary.md

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

0 commit comments

Comments
 (0)