Sort components in docs by alphabetic order (#3152)

* alhabetic ordering of components

* changelog
This commit is contained in:
Ali Abdalla 2023-02-08 19:07:23 -08:00 committed by GitHub
parent 559de6eee9
commit 1bc817a600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ No changes to highlight.
No changes to highlight.
## Documentation Changes:
* Sort components in docs by alphabetic order by [@aliabd](https://github.com/aliabd) in [PR 3152](https://github.com/gradio-app/gradio/pull/3152)
* Changes to W&B guide by [@scottire](https://github.com/scottire) in [PR 3153](https://github.com/gradio-app/gradio/pull/3153)
## Testing and Infrastructure Changes:

View File

@ -9,6 +9,7 @@ TEMPLATE_FILE = os.path.join(DIR, "template.html")
DEMOS_DIR = os.path.join(GRADIO_DIR, "demo")
docs = generate_documentation()
docs["component"].sort(key=lambda x: x["name"])
def add_component_shortcuts():