Skip to content

Allows docs to use pipeline icons#317

Merged
mishig25 merged 6 commits into
mainfrom
pipeline_icons
Oct 26, 2022
Merged

Allows docs to use pipeline icons#317
mishig25 merged 6 commits into
mainfrom
pipeline_icons

Conversation

@mishig25

@mishig25 mishig25 commented Oct 26, 2022

Copy link
Copy Markdown
Contributor

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 requested a review from stevhliu October 26, 2022 10:22
@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