Using READMEs
Use READMEs to support operating installs.
App READMEs allow you to define documentation for an app that can be rendered per-install. This guide will get you started using READMEs to support operating installs of your apps.
Adding a README to an App
To add a README to an app, define the readme
field in your app config. We’ll start with something simple.
Sync your config, and you should see this rendered on the Overview of each install of that app.
Formatting
READMEs are technically just a string field, but our rendering in the Dashboard supports Markdown. You can also use TOML’s multi-line strings to make formatting easier. Let’s use both to add some more structure and content.
Variables
READMEs support variables. These will be rendered server-side in the context of each install, just as they are in component and actions fields. We will use variables here to add some install info. We can also parametrize the app info, to make sure the README is up to date if we change the app config later.
Additionally, because READMEs are designed to be rendered on a webpage, and variables use Golang templating, you have access to the full power of Golang’s templating language. Let’s use that to add component statuses.
Because the Dashboard polls the Control Plane, you will get get near-real-time statuses for each component.
Conclusion
You should now have the basic info you need to get started creating READMEs for your own apps.