generate-md-doc.sh 328 B

12345678910111213
  1. #!/usr/bin/env bash
  2. # Directory to write generated documentation to
  3. OUT_DIR_DOC="./doc"
  4. mkdir -p ${OUT_DIR_DOC}
  5. # Gernerate Markdown docs
  6. protoc \
  7. --doc_out="${OUT_DIR_DOC}" --doc_opt=markdown,index.md \
  8. proto/*.proto
  9. # Append some custom docs to generated protocol docs
  10. cat doc-appendix.md >> ${OUT_DIR_DOC}/index.md