facebookresearch / hydra

Hydra is a framework for elegantly configuring complex applications
https://hydra.cc
MIT License
8.78k stars 630 forks source link

keyword documentation for config.yaml #1622

Open Jasha10 opened 3 years ago

Jasha10 commented 3 years ago

In yaml files, there are several keywords that hydra treats specially. It would be nice to have a page in the Hydra reference manual listing all of these keywords in once place.

Here are the keywords I'm aware of, as well as links to their primary documentation:

For use with instantiate:

omry commented 3 years ago

Those keywords are from many different levels of the stack.

I am not sure where such a catchall page would fit or if it's worth replicating the information in the docs you linked to to it.

Jasha10 commented 3 years ago

where such a catchall page would fit

Here's what I was thinking:

Anyway, organizing this info was helpful to me in trying to understand the features of Hydra, especially for packages and default lists. Even if we don't add a page to the docs, maybe the issue above can provide reference for future users.

omry commented 3 years ago

the page could be titled something like "YAML Keyword Reference", included as part of the "Reference Manual" section of the docs.

This is not just YAML, most of these will work in the defaults list of Structured Configs as well. The only thing that is yaml specific is the package header, and even that got an equivalent when using the ConfigStore.

jieru-hu commented 2 years ago

I think such a page would be really helpful! Have such a page will also help reinforce the idea that ConfigStore and YAML two different ways of providing configs to Hydra for composition.