Skip to content

Commit 2c73504

Browse files
authored
The image and text alignment fixed (#377)
1 parent 9cf944f commit 2c73504

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks-contribution-guide.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ The task pages avoid jargon to let everyone understand the documentation, and if
1010

1111
### How to Contribute
1212
You can open a pull request to [hub-docs repository](https://github.com/huggingface/hub-docs) to contribute a new documentation about a new task. Under `tasks/src` we have a folder for every task that contains two files, `about.md` and `data.ts`. `about.md` contains the markdown part of the page, use cases, resources and minimal code block to infer a model that belongs to the task. `data.ts` contains redirections to canonical models and datasets, metrics, the schema of the task and the information the inference widget needs.
13+
1314
![Anatomy of a Task Page](tasks/assets/contribution-guide/anatomy.png)
15+
1416
We have `tasks/assets` that contains data used in the inference widget and images used in the markdown file. The last file is `const.ts`, which has the task to library mapping (e.g. spacy to token-classification) where you can add a library. They will look in the top right corner like below.
17+
1518
![Libraries of a Task](tasks/assets/contribution-guide/libraries.png)
19+
1620
This might seem overwhelming, but you don't necessarily need to add all of these in one pull request or on your own, you can simply contribute one section. Feel free to ask for help whenever you need.

0 commit comments

Comments
 (0)