Skip to content

Expand documentation with description of sub objects #2251

@luilegeant

Description

@luilegeant

Summary

When reading the documentation, and looking for the manifests specifications, I'm often slowed down to figure out the fields and properties of an object.

I propose to auto-generate any object definitions pages and add links to these pages everytime object is specified as the type in the manifests definitions.

Image

Nice to have:

  • When reading a sub-object (see basic example bellow), having a "used by" section with links to all the parents objects referencing the one being read.
  • An example of configuration (from an existing test or something equivalent).
  • How to set up/use autocomplete, linter, code suggestion tool for the updatecli manifest structure.

Basic example

For this example, I wish to configure the credentials to access a private registry.
I need to configure the auths field when configuring my Dockerfile UpdateCli manifest.

To understand the keywords available and format to use, I need to go and read the updatecli code.

Motivation

The documentation (link provided as an example) states Auths provides a map of registry credentials where the key is the registry URL without scheme. If you're not versed into the language (and its constraints or requirement of the parser used) used for configuration it's hard to understand what/how to do things.

Reduce search time and increase accessibility to the various configuration options.

How to address this issue

Generate documentation page for each configuration object/item.

Link from the keyword type to the generated documentation.

Provide a list of links to places where this "object" is used/applicable.

Provide configuration examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions