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

CONTRIBUTION doesn't mention how to build the docs #1057

Closed
k-bx opened this issue Oct 20, 2018 · 15 comments
Closed

CONTRIBUTION doesn't mention how to build the docs #1057

k-bx opened this issue Oct 20, 2018 · 15 comments

Comments

@k-bx
Copy link
Contributor

k-bx commented Oct 20, 2018

Doing the stack test doesn't seem to build the docs, which is slightly inconvenient, since I can't really check if I got them right without Travis.

Would be a nice addition.

@alpmestan
Copy link
Contributor

Right, we use sphinx for this, see this file for some instructions.

I guess it wouldn't hurt to have the contributing document mention this indeed.

Note that if you're a nix enthusiast, nix/shell.nix can also provision the whole sphinx business.

@vcunat
Copy link

vcunat commented Feb 2, 2019

BTW, with new sphinx the documentation won't build unless you remove a line from config:
https://github.com/haskell-servant/servant/blob/4b247ee801/doc/conf.py#L170

source_parser for 'md' is already registered

@phadej
Copy link
Contributor

phadej commented Feb 2, 2019

@vcunat
Copy link

vcunat commented Feb 2, 2019

I see, though ==1.7.5 seems a bit strict requirement to me personally. This way one would end up keeping a dozen versions in each distribution. Docs built fine with 1.7.9 for us and it's a simple one-liner for 1.8.3, but if you prefer it this way...

@phadej
Copy link
Contributor

phadej commented Feb 2, 2019 via email

@phadej
Copy link
Contributor

phadej commented Feb 2, 2019

Actually make html works, that Makefile is smart.

Anyway, building-the-docs describes how to build docs, and CONTRIBUTION.md could point to it.

Adding to CI is a bonus of course, it would be nice if haskell-ci could include needed parts from configuration (so we don't need to edit .travis.yml manually).

@vcunat
Copy link

vcunat commented Feb 2, 2019

For reference, I actually use nix wherever I can, and regression in the nixos.org build farm is what lead me here. I didn't want to mention that specifically, but I see I'm not the first nixer in this thread. With nix we technically can have many versions of packages, but we're trying to restrict that, so I just patched that single line in the nixpkgs official repo...

@phadej
Copy link
Contributor

phadej commented Feb 2, 2019

Wait, does nixpkgs include/build servant's doc/ tutorial or what? Or how the failure there lead you, @vcunat here?

@vcunat
Copy link

vcunat commented Feb 2, 2019

@phadej
Copy link
Contributor

phadej commented Feb 2, 2019

@vcunat that's very nice 👍

@domenkozar
Copy link
Contributor

I used to do Python, so I made #1124

@domenkozar
Copy link
Contributor

Can be closed, fixed.

@k-bx
Copy link
Contributor Author

k-bx commented Feb 12, 2019

Thanks!

@k-bx k-bx closed this as completed Feb 12, 2019
@k-bx
Copy link
Contributor Author

k-bx commented Feb 12, 2019

Forgot one essential point: does it check the code in docs compiles well? If not – we should mention that in README imo @domenkozar

@alpmestan
Copy link
Contributor

We do check that the tutorial + cookbook recipes compile, in CI.

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

5 participants