Closed airycanon closed 8 months ago
Support for outputting multiple files
Add an output-mode command line option, supported values: single | multiple
output-mode
single | multiple
$ crd-ref-docs --source-path=./pkg/apis \ --config=config.yaml \ --renderer=markdown \ --output-path ./output \ --output-mode=single $ tree output output └── out.md 1 directory, 1 file
$ crd-ref-docs --source-path=./pkg/apis \ --config=config.yaml \ --renderer=markdown \ --output-path ./output \ --output-mode=multiple $ tree output output ├── <group one>.md └── <group two>.md 1 directory, 2 files
Add an output-mode command line option, supported values: single | group | group-version
single | group | group-version
$ crd-ref-docs --source-path=./pkg/apis \ --config=config.yaml \ --renderer=markdown \ --output-path ./output \ --output-mode=group $ tree output output ├── <group one>.md └── <group two>.md 1 directory, 2 files
$ crd-ref-docs --source-path=./pkg/apis \ --config=config.yaml \ --renderer=markdown \ --output-path ./output \ --output-mode=group-version $ tree output output ├── <group one>/v1alpha1.md ├── <group one>/v1beta1.md └── <group two>/v1alpha1.md 1 directory, 3 files
Description
Support for outputting multiple files
Option 1
Add an
output-mode
command line option, supported values:single | multiple
Example
single mode
multiple mode
Option 2
Add an
output-mode
command line option, supported values:single | group | group-version
Example
single mode
group mode
group-version mode