Skip to content

Commit

Permalink
Converting html to rst crds doc
Browse files Browse the repository at this point in the history
Signed-off-by: Soule BA <[email protected]>
  • Loading branch information
souleb committed Aug 12, 2024
1 parent 4fdb6a3 commit 0b99960
Show file tree
Hide file tree
Showing 5 changed files with 927 additions and 2,204 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ download-branch-api: | $(CRD_API_DEP_ROOT)
curl -sL ${BRANCH_REPO_URL} \
| tar -xz -C ${CRD_API_DEP_ROOT}

.PHONY: gen-crd-api-docs
gen-crd-api-docs: | $(GEN_CRD_API_REFERENCE_DOCS)
gen-crd-api-docs: | $(GEN_CRD_API_REFERENCE_DOCS) download-branch-api
cd ${CRD_API_DEP_ROOT}/network-operator-${BRANCH}/api/v1alpha1 && \
$(GEN_CRD_API_REFERENCE_DOCS) -api-dir=. -config=${CURDIR}/hack/api-docs/config.json -template-dir=${CURDIR}/hack/api-docs/templates -out-file=${CURDIR}/docs/customizations/crds-api.html
$(GEN_CRD_API_REFERENCE_DOCS) -api-dir=. -config=${CURDIR}/hack/api-docs/config.json -template-dir=${CURDIR}/hack/api-docs/templates -out-file=${BUILDDIR}/crds-api.html

.PHONY: api-docs
api-docs: gen-crd-api-docs
docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` pandoc/minimal -f html -t rst --columns 200 /data/build/_output/crds-api.html -o /data/docs/customizations/crds.rst

.PHONY: gen-docs
gen-docs:
Expand Down
Loading

0 comments on commit 0b99960

Please sign in to comment.