Skip to content

Link between source code and documentation incorrect (documentation issue) #615

Description

@clefourrier

System Info

- System info not relevant
- doc at main
- source at main

Information

  • The official example scripts

Tasks

  • Documentation

Reproduction

Hi!
The doc "source" links of Accelerate are not sending to the proper place in the source code.
For example, "source" button of https://huggingface.co/docs/accelerate/main/en/accelerator#accelerate.Accelerator.prepare (far right in the capture) redirects to https://github.com/huggingface/accelerate/blob/main/src/accelerate/accelerator.py#L554 which is about 10 lines above the relevant function prepare.

image

Expected behavior

The source button should send to the correct place in code.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions