Skip to content

Build docs using package name that differs from repo name #305

Description

@nateraw

I am currently working on building the timm docs, which are at rwightman/pytorch-image-models. The package name itself is timm.

As far as I understand, we use the package input to specify the repo name. It's used to clone the repo here:

repository: '${{ inputs.repo_owner }}/${{ inputs.package }}'

Apparently package is again used to build the documentation here:

doc-builder build ${{ inputs.package }} ../${{ env.doc_folder }} $args

Why aren't we using the package_name env variable that was updated to be package if it wasn't provided to do the above doc-builder build command? I think this is what's going wrong with my PR here. It leads to ModuleNotFoundError: No module named 'pytorch-image-models'.

Am I missing something/doing something wrong?

CC @mishig25 @osanseviero

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions