Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gbaz opened this issue Jun 23, 2022 · 2 comments
Open

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

gbaz opened this issue Jun 23, 2022 · 2 comments

Comments

@gbaz
Copy link
Collaborator

gbaz commented Jun 23, 2022

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.

@ulysses4ever
Copy link
Collaborator

Related discussion in #5821

@ulysses4ever
Copy link
Collaborator

Probably related works as standalone tools:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants