spec-to-readme converts a JSON part spec into the equivalent documentation
found in support-docs/README.md. Some manual additions are expected to be
made after initial generation, but this handles all of the tedious
copy-pasting between files.
This script expects two arguments: a directory with json schema files and the section number
Simple usage:
cat path/to/partspec.json | go run spec-to-readme.go part-spec/passive "3.123"
Complex usage (bash):
CUR=10
for A in passives/ semiconductors/ ic_mic/; do
go run spec-to-readme.go part-spec/$A "3.$CUR"
((CUR++))
done >> support-docs/README.md