Skip to content

Rockcraft: Add rockcraft.yaml reference powered by Kitbash #304

@medubelko

Description

@medubelko

Background

We developed Kitbash, a special Sphinx extension for generating references for keys in project files based on Pydantic fields.

Rockcraft's rockcraft.yaml reference comprises two pages that are maintained manually. It should be scrapped and replaced with a Kitbash-powered reference.

Request

Replicate the work in Snapcraft to add a single rockcraft.yaml reference driven by Kitbash.

Convert the attributes in Rockcraft's Project model to pydantic.Field instances with well-formed descriptions and examples.

Guidelines

Before you begin, review the Rockcraft contribution guidelines.

This task requires knowledge of Rockcraft, and some knowledge of Python. You can copy most of the code from Snapcraft, but you'll need an awareness of Rockcraft's project file, the order of keys, and experience writing references to update its strings.

For a complete list of Rockcraft's keys, run:

source .venv/bin/activate
python3 -c "from rockcraft.models.project import Project; print('\n'.join(Project.model_fields))"

Note that some of these keys, such as name and title, come from upstream models and should be included in the document without modification of their respective fields.

For well-formed key descriptions, consult the snapcraft.yaml reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    codeThis task may require some programming knowledge.newAdding new or missing documentation for a specific tool, feature, or function.referenceWrite or update reference materialsize 5Fix a known documentation issue (size 5/8)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions