Contributing
We welcome contributions and feedback! Please open an issue or submit a pull request to suggest additions, improvements, or to report bugs.
Adding a new schema
To add a new schema:
- Create a directory in either experimentalorextensionwith the schema name (ensure the name is unique).
- Add a <schema_name>.ymlfile using the Infrahub schema format.
- Update the .metadata.ymlfile to include your schema, providing itsname,description, anddependencies.
- To verify integration, run invoke schemas.load-all-schemasto load the entire schema library in your local Infrahub instance.
To add documentation for your schema:
- Run invoke docs.generateto generate documentation files.
- Then run invoke docs.buildandinvoke docs.serveto build and serve the documentation locally.
Documentation
Most documentation is generated automatically:
- The docs.pytask generates documentation.
- home.mdxis generated from the- _templates/home_page.j2template.
- Each file in the referencedirectory is generated from the_templates/schema_reference.j2template.
important
To modify the documentation, edit the templates in the _templates directory.
After making changes, run invoke docs.generate to update the documentation.