Skip to content
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

docs: improve tetragon option reference page #1932

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Jan 4, 2024

Fixes #1839.

Preview here.

This YAML file is used in the docs to display a reference of the
tetragon options.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
@mtardy mtardy added area/documentation Improvements or additions to documentation release-note/docs This PR updates the documentation. labels Jan 4, 2024
@mtardy mtardy requested a review from lambdanis January 4, 2024 18:31
@mtardy mtardy requested review from a team and willfindlay as code owners January 4, 2024 18:31
Copy link

netlify bot commented Jan 4, 2024

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit e932de1
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/6596fcbf9451e30009170553
😎 Deploy Preview https://deploy-preview-1932--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mtardy mtardy force-pushed the pr/mtardy/cobra-generate-docs branch 2 times, most recently from 8eba9ea to 628dd82 Compare January 4, 2024 18:43
Previously we were just dumping the result of the `--help` flag. This
commit introduces a shortcode template that uses the YAML data file from
the --generate-docs flag to generate an HTML table displaying all the
flags, their usage and default value.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
@mtardy mtardy force-pushed the pr/mtardy/cobra-generate-docs branch from 628dd82 to e932de1 Compare January 4, 2024 18:45
Copy link
Contributor

@lambdanis lambdanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks!

@mtardy mtardy merged commit a97e4ee into main Jan 5, 2024
36 checks passed
@mtardy mtardy deleted the pr/mtardy/cobra-generate-docs branch January 5, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Improvements or additions to documentation release-note/docs This PR updates the documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: generated page displayed in section /docs/reference/
2 participants