@@ -91,7 +91,7 @@ test.crds-validation:
91
91
.PHONY : conformance
92
92
conformance :
93
93
go test ${GO_TEST_FLAGS} -v ./conformance -run TestConformance -args ${CONFORMANCE_FLAGS}
94
-
94
+
95
95
# Install CRD's and example resources to a preexisting cluster.
96
96
.PHONY : install
97
97
install : crd example
@@ -159,14 +159,27 @@ image.multiarch.setup: image.buildx.verify
159
159
release-staging : image.multiarch.setup
160
160
hack/build-and-push.sh
161
161
162
- # Generate a virtualenv install, which is useful for hacking on the
163
- # docs since it installs mkdocs and all the right dependencies.
164
- #
165
- # On Ubuntu, this requires the python3-venv package.
166
- virtualenv : .venv
167
- .venv : requirements.txt
168
- @echo Creating a virtualenv in $@ " ... "
169
- @python3 -m venv $@ || (rm -rf $@ && exit 1)
170
- @echo Installing packages in $@ " ... "
171
- @$@ /bin/python3 -m pip install -q -r requirements.txt || (rm -rf $@ && exit 1)
172
- @echo To enter the virtualenv type \" source $@ /bin/activate\" , to exit type \" deactivate\"
162
+ # Docs
163
+
164
+ .PHONY : build-docs
165
+ build-docs :
166
+ docker build --pull -t gaie/mkdocs hack/mkdocs/image
167
+ docker run --rm -v ${PWD} :/docs gaie/mkdocs build
168
+
169
+ .PHONY : build-docs-netlify
170
+ build-docs-netlify : api-ref-docs
171
+ pip install -r hack/mkdocs/image/requirements.txt
172
+ python -m mkdocs build
173
+
174
+ .PHONY : live-docs
175
+ live-docs :
176
+ docker build -t gw/mkdocs hack/mkdocs/image
177
+ docker run --rm -it -p 3000:3000 -v ${PWD} :/docs gw/mkdocs
178
+
179
+ .PHONY : api-ref-docs
180
+ api-ref-docs :
181
+ crd-ref-docs \
182
+ --source-path=${PWD} /apis \
183
+ --config=crd-ref-docs.yaml \
184
+ --renderer=markdown \
185
+ --output-path=${PWD} /site-src/reference/spec.md
0 commit comments