-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make docs to build all docs #12499
Comments
To embed the docs we run the following target in the makefile for each plugin type: go generate -run="readme_config_includer/generator$$" ./plugins/$*/... which translates to: go generate -run="readme_config_includer/generator$" ./plugins/inputs/...
go generate -run="readme_config_includer/generator$" ./plugins/outputs/...
go generate -run="readme_config_includer/generator$" ./plugins/processors/...
go generate -run="readme_config_includer/generator$" ./plugins/aggregators/...
go generate -run="readme_config_includer/generator$" ./plugins/secretstores/... Per Running the go generate 3x times for Windows, Linux, and Darwin seems excessive. @srebhan thoughts here? |
I have no idea on how to work around the |
I tried with the 4 types on my machine and it runs fast enough IMHO. Only problem I had was figuring out how to run these steps multiple times in the makefile. |
In order to correctly update all READMEs during go generate, pass the primary three GOOS that we support. This way all README will get any necessary changes. fixes: influxdata#12499
That's also a way to achieve it 😄 |
Use Case
When running
make docs
on a system, it currently only does that for plugins of your current operating system as this has been pointed out in #12426 (comment).Expected behavior
The tool should build all docs regardless of current operating system.
Actual behavior
The tool only builds the docs for plugins that work on current operating system.
Additional info
Building for example Windows docs works fine with the following command:
GOOS=windows make docs
.The text was updated successfully, but these errors were encountered: