hub-docs
hub-docs copied to clipboard
URLs for generate parameters carry type hints
If we copy the URL for generate parameters that are formatted as: parameter(type hint)
, the type hint is copied into the URL link.
For example, on the Generation doc page, if we try and copy the link for bad_words_ids
, we get:
https://huggingface.co/docs/transformers/main_classes/text_generation#transformers.GenerationConfig.bad_words_ids(List[List[int]],
We can see that the URL erroneously contains the Python type hints here. This plays very badly with the markdown editor on the Hub:
https://user-images.githubusercontent.com/93869735/221201581-73d2bbb1-51c9-456d-aa21-643176208465.mov
Not sure if this is a moon-landing issue or a hub docs one -> can repost the issue on moon-landing if it's the former!