Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows docs to use pipeline icons #317

Merged
merged 6 commits into from
Oct 26, 2022
Merged

Allows docs to use pipeline icons #317

merged 6 commits into from
Oct 26, 2022

Conversation

mishig25
Copy link
Contributor

@mishig25 mishig25 commented Oct 26, 2022

Not the best solution, but for the moment, copying pipeline icons from https://github.com/huggingface/hub-docs/blob/main/js/src/lib/components/PipelineIcon/PipelineIcon.svelte so that docs can use those icons as well

as needed in huggingface/transformers#19852 & huggingface/transformers#19767

Usage inside docs (you can use icons only or icons with tag text):

<PipelineIcon pipeline="image-classification" />

Screenshot 2022-10-26 at 12 14 14

<PipelineTag pipeline="image-classification" />

Screenshot 2022-10-26 at 12 14 18

please refer to this list for the exact pipeline ids

@mishig25 mishig25 merged commit 64c5456 into main Oct 26, 2022
@mishig25 mishig25 deleted the pipeline_icons branch October 26, 2022 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant