transformers icon indicating copy to clipboard operation
transformers copied to clipboard

Wrong "view source" links on main docs

Open gau-nernst opened this issue 1 year ago • 2 comments

System Info

NA

Who can help?

@sgugger

Information

  • [ ] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

When viewing the latest docs, "view source" link expansion leads to an invalid GitHub link.

e.g. https://huggingface.co/docs/transformers/model_doc/bert#transformers.BertConfig

View source link: https://github.com/huggingface/transformers/blob/v4.27.0/src/transformers/models/bert/configuration_bert.py#L72

Since v4.27.0 tag does not exist, GitHub reports an invalid link. It should be main instead. I believe this is a problem of configuring the auto-generate docs.

Expected behavior

Show correct link to source code.

gau-nernst avatar Mar 15 '23 01:03 gau-nernst

cc @stevhliu

amyeroberts avatar Mar 15 '23 11:03 amyeroberts

The tag will be out in a couple of hours. The doc for the v4.27.0 release was pushed last night and the rest of the release will follow this morning. Thanks for catching this so quicly!

sgugger avatar Mar 15 '23 12:03 sgugger