Skip to content

Commit 775ab75

Browse files
committed
docs: docsgen resture output for website
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent a9e11e8 commit 775ab75

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docgen/proto/gen.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ PROTOC_GEN_DOC_VERSION='1.5.1'
1111
# --
1212

1313
rm -f -R "$DOCS_PATH"
14-
mkdir -p "$DOCS_PATH/"{1.3,1.4,1.5,1.6}
1514

1615
generate () {
1716
version="$1"
1817
title="CycloneDX v$version Proto Reference"
1918
echo "Generating: $title"
2019

20+
OUT_DIR="$DOCS_PATH/$version/proto/"
21+
mkdir -p "$OUT_DIR"
22+
2123
## docs: https://github.com/pseudomuto/protoc-gen-doc
2224
docker run --rm \
23-
-v "${DOCS_PATH}/${version}:/out" \
25+
-v "${OUT_DIR}:/out" \
2426
-v "${SCHEMA_PATH}:/protos:ro" \
2527
-v "${TEMPLATES_PATH}:/templates:ro" \
2628
"pseudomuto/protoc-gen-doc:${PROTOC_GEN_DOC_VERSION}" \
@@ -29,7 +31,7 @@ generate () {
2931

3032
# fix file permissions
3133
docker run --rm \
32-
-v "${DOCS_PATH}/${version}:/out" \
34+
-v "${OUT_DIR}:/out" \
3335
--entrypoint chown \
3436
"pseudomuto/protoc-gen-doc:${PROTOC_GEN_DOC_VERSION}" \
3537
"$(id -g):$(id -u)" -R /out

0 commit comments

Comments
 (0)