[V3 Docs] expand info.json docs (#1699)

This commit is contained in:
palmtree5 2018-05-25 02:38:33 -08:00 committed by Kowlin
parent c58c55b752
commit 7e98076e4a

View File

@ -6,22 +6,31 @@ Downloader Framework
Info.json Info.json
********* *********
The info.json file may exist inside every package folder in the repo, The optional info.json file may exist inside every package folder in the repo,
it is optional however. This string describes the valid keys within as well as in the root of the repo. The following sections describe the valid
an info file (and maybe how the Downloader cog uses them). keys within an info file (and maybe how the Downloader cog uses them).
KEYS (case sensitive): Keys common to both repo and cog info.json (case sensitive)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- ``author`` (list of strings) - list of names of authors of the cog - ``author`` (list of strings) - list of names of authors of the cog or repo.
- ``description`` (string) - A long description of the cog or repo. For cogs, this
is displayed when a user executes ``!cog info``.
- ``install_msg`` (string) - The message that gets displayed when a cog
is installed or a repo is added
- ``short`` (string) - A short description of the cog or repo. For cogs, this info
is displayed when a user executes ``!cog list``
Keys specific to the cog info.json (case sensitive)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- ``bot_version`` (list of integer) - Min version number of Red in the format ``(MAJOR, MINOR, PATCH)`` - ``bot_version`` (list of integer) - Min version number of Red in the format ``(MAJOR, MINOR, PATCH)``
- ``description`` (string) - A long description of the cog that appears when a user executes ```!cog info``.
- ``hidden`` (bool) - Determines if a cog is available for install. - ``hidden`` (bool) - Determines if a cog is available for install.
- ``install_msg`` (string) - The message that gets displayed when a cog is installed
- ``required_cogs`` (map of cogname to repo URL) - A map of required cogs that this cog depends on. - ``required_cogs`` (map of cogname to repo URL) - A map of required cogs that this cog depends on.
Downloader will not deal with this functionality but it may be useful for other cogs. Downloader will not deal with this functionality but it may be useful for other cogs.
@ -29,9 +38,6 @@ KEYS (case sensitive):
passed to pip on cog install. ``SHARED_LIBRARIES`` do NOT go in this passed to pip on cog install. ``SHARED_LIBRARIES`` do NOT go in this
list. list.
- ``short`` (string) - A short description of the cog that appears when
a user executes `!cog list`
- ``tags`` (list of strings) - A list of strings that are related to the - ``tags`` (list of strings) - A list of strings that are related to the
functionality of the cog. Used to aid in searching. functionality of the cog. Used to aid in searching.