docs: show supported platforms for each util #3374
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A few examples:
A util that supports Linux (unix) and Mac:
![image](https://user-images.githubusercontent.com/11643477/162206993-a23e2251-5ca8-408c-8214-99838b9d2d98.png)
A utils that requires SELinux (and thus supports only Linux):
![image](https://user-images.githubusercontent.com/11643477/162207078-8cccb004-ee0c-4389-b5b9-60c56eb14687.png)
A util that supports all platforms:
![image](https://user-images.githubusercontent.com/11643477/162207168-729d2359-c11f-45e7-9d6b-a481e22cebdb.png)
The data is collected by running
./util/show-utils.sh
with different feature sets.I also refactored the
uudoc
code a bit. I wanted to include FreeBSD as well, but the icon for that was only added in FontAwesome 5, which mdbook does not use yet.