mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
70ebf698fa
* fix audio output cache (#804) * fix audio output cache * changes * version update Co-authored-by: Ali Abid <aliabid94@gmail.com> * Website Tracker Slackbot (#797) * added commands to reload script * catch errors with git pull * read new webhook from os variable * correcting bash * bash fixes * formatting * more robust error checking * only sends success if git changes * catching error from script * escaping error text to send with curl * correct text escaping for error message * fix search bug in guides (#809) * Update getting_started.md (#808) * Fix type of server returned by `Launchable` (#810) * `Launchable` returns a FastAPI now * Update .gitignore * Add a missing line to getting started (#816) Former-commit-id:81e271ca22
[formerly96f203108b
] Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f * Add a missing line to getting started (#816) Former-commit-id:81e271ca22
[formerly81e271ca22
[formerly96f203108b
]] Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f Former-commit-id:b5112c3f42
* Add a missing line to getting started (#816) Former-commit-id:81e271ca22
[formerly81e271ca22
[formerly81e271ca22
[formerly96f203108b
]]] Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f Former-commit-id:b5112c3f42
Former-commit-id:bce6f9c4c5
* Add a missing line to getting started (#816) Former-commit-id:81e271ca22
[formerly81e271ca22
[formerly81e271ca22
[formerly81e271ca22
[formerly96f203108b
]]]] Former-commit-id: eaff13262853078e0c6c0baa54c731d9e56bc73f Former-commit-id:b5112c3f42
Former-commit-id:bce6f9c4c5
Former-commit-id:feba0888e3
* Add a missing line to getting started (#816) * Clean-History - Remove 51MB file with this commit Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c * Clean-History - Remove 51MB file with this commit Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c Former-commit-id:dd700c33cc
* Clean-History - Remove 51MB file with this commit Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c Former-commit-id:dd700c33cc
Former-commit-id:0d80e6a056
* Clean-History - Remove 51MB file with this commit Former-commit-id: 34b6a2325d613eeef622410f2d1ff3d869d3133c Former-commit-id:dd700c33cc
Former-commit-id:0d80e6a056
Former-commit-id:20523b0519
* changes * changes * Homepage: header image size (#1347) * image size * image in local assets * add dall-e mini banner * undo ui changes * changes * changes * updates * updates * changes * changes * changes * h11 dependency * add npm build-mac * expand demo button to all classes * add demos to docstrings * add anchor tags to headers * add required tag to param table * add consistent styling for headers * skip param beginning with underscore from docs * skip kwargs param from docs * remove types in param docstring * override signature to reflect usage * add supported events * add step-by-step guides * fix guide contribution link * add related spaces * fix img styling on guides * pin quickstart, advanced, and block guides to top * margin fix * autogenerated copy buttons for all codeblocks * changes * documentaiton * format * launch * formatting * style changes * remove backticks * changes * changes Co-authored-by: Ali Abid <aliabid94@gmail.com> Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> Co-authored-by: Julien Chaumond <julien@huggingface.co> Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com> Co-authored-by: Ali <ali.abid@huggingface.co> Co-authored-by: Victor Muštar <victor.mustar@gmail.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
30 lines
2.0 KiB
Markdown
30 lines
2.0 KiB
Markdown
# Contributing a Guide
|
|
|
|
Want to help teach Gradio? Consider contributing a Guide! 🤗
|
|
|
|
Broadly speaking, there are two types of guides:
|
|
|
|
* **Use cases**: guides that cover step-by-step how to build a particular type of machine learning demo or app using Gradio. Here's an example: [_Creating a Chatbot_](https://github.com/gradio-app/gradio/blob/master/guides/creating_a_chatbot.md)
|
|
* **Feature explanation**: guides that describe in detail a particular feature of Gradio. Here's an example: [_Using Flagging_](https://github.com/gradio-app/gradio/blob/master/guides/using_flagging.md)
|
|
|
|
We encourage you to submit either type of Guide! (Looking for ideas? We may also have open [issues](https://github.com/gradio-app/gradio/issues?q=is%3Aopen+is%3Aissue+label%3Aguides) where users have asked for guides on particular topics)
|
|
|
|
## Guide Structure
|
|
|
|
As you can see with the previous examples, Guides are standard markdown documents. They usually:
|
|
* start with an Introduction section describing the topic
|
|
* include subheadings to make articles easy to navigate
|
|
* include real code snippets that make it easy to follow along and implement the Guide
|
|
* include embedded Gradio demos to make them more interactive and provide immediate demonstrations of the topic being discussed. These Gradio demos are hosted on [Hugging Face Spaces](https://huggingface.co/spaces) and are embedded using the standard \<iframe\> tag.
|
|
|
|
|
|
## How to Contribute a Guide
|
|
|
|
1. Clone or fork this `gradio` repo
|
|
2. Add a new markdown document with a descriptive title to the `/guides` folder
|
|
3. Write your Guide in standard markdown! Embed Gradio demos wherever helpful
|
|
4. Add a list of `related_spaces` at the top of the markdown document (see the previously linked Guides for how to do this)
|
|
5. Add 3 `tags` at the top of the markdown document to help users find your guide (again, see the previously linked Guides for how to do this)
|
|
6. Open a PR to have your guide reviewed
|
|
|
|
That's it! We're looking forward to reading your Guide 🥳 |