Skip to content

Flag to upload to auto-build and upload docs as well #8249

@gbaz

Description

@gbaz

Suggested by chris martin in this thread: https://discourse.haskell.org/t/on-onboarding-hackage-missing-documentation/4684/4

dir=$(mktemp -d dist-docs.XXXXXX)
cabal configure --builddir="$dir"
cabal haddock --builddir="$dir" --haddock-for-hackage --haddock-option=--hyperlinked-source
cabal upload --publish -d $dir/*-docs.tar.gz

Generally an all in one workflow to sdist, haddock, and upload both would be very nice and probably improve the docs situation on hackage.

Related discussions: #5064 #7566 and #3837

The latter is arguably the most comprehensive and may subsume this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions