audeering / audbcards

Data cards for audio datasets
https://audeering.github.io/audbcards/
Other
0 stars 0 forks source link

Set audb repositories automatically? #79

Closed hagenw closed 2 months ago

hagenw commented 3 months ago

In the sphinx extension of audbcards we can configure which repositories should be used to list datasets. But if those are not set in audb.config.REPOSITORIES, they will not be found. So we might consider to add/set those repositories automatically inside the extension.

hagenw commented 2 months ago

The default config value uses already audb.config.REPOSITORIES:

https://github.com/audeering/audbcards/blob/b5c942509c144e3897e584ea7d2a9eccab1be2a6/audbcards/sphinx/__init__.py#L19-L27

In addition, if a user provides a list of repositories to use in the config, audb.config.REPOSITORIES is changed accordingly during the execution of the extension:

https://github.com/audeering/audbcards/blob/b5c942509c144e3897e584ea7d2a9eccab1be2a6/audbcards/sphinx/__init__.py#L63-L65

So, I think we are fine here.