File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,18 @@ PROTOC_GEN_DOC_VERSION='1.5.1'
1111# --
1212
1313rm -f -R " $DOCS_PATH "
14- mkdir -p " $DOCS_PATH /" {1.3,1.4,1.5,1.6}
1514
1615generate () {
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
You can’t perform that action at this time.
0 commit comments