Open alexanderjophus opened 3 years ago
@trelore you need to specify strategy all
:
version: v1beta1
plugins:
- name: doc
out: gen/doc
strategy: all
Thanks! That works as a workaround, however as far as I can tell it combines all the md files into one unordered list, as we have a lot of microservices it'd be amazing to have them all in their own directory or saved as individual files.
Thanks! That works as a workaround, however as far as I can tell it combines all the md files into one unordered list, as we have a lot of microservices it'd be amazing to have them all in their own directory or saved as individual files.
This setup works for me:
-- buf.gen.yaml
version: v1
plugins:
- name: doc
out: docs
opt: markdown,README.md,source_relative
strategy: all
The documentation of each service resides on its own directory:
├── docs
│ ├── cards
│ │ └── v1
│ │ └── README.md
│ ├── checkout
│ │ └── v1
│ │ └── README.md
I have the following structure
I have the following buf.yaml
and buf.gen.yaml
The following error occurs
With the js plugin (and go/swagger/others) a subdirectory is created per service and the
service.js
orservice.pb.go
is placed within that directory, however with the doc plugin no subdirectory is made leading to the duplicate files above.Is there an option to use the subdirectory the .proto file was found in as the output like the other plugins?