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

documentation #20

Open
4 of 5 tasks
KiaraGrouwstra opened this issue Jan 28, 2020 · 10 comments
Open
4 of 5 tasks

documentation #20

KiaraGrouwstra opened this issue Jan 28, 2020 · 10 comments

Comments

@KiaraGrouwstra
Copy link
Owner

KiaraGrouwstra commented Jan 28, 2020

I generate Haddock docs by stack haddock; it'd be nice if I could do this in CD and expose them over Github Pages to give a nicer overview of my codebase.

  • Haddock dumps docs to like ~/.stack/snapshots/x86_64-linux-tinfo6/d0f773766cf7d1b82a65f6a6382f1602be268df7432f634a9ecf097c05200ede/8.6.5/doc/. should I grep this from stack haddock in CI/CD to create some symlink? allegedly overriding the is output path is futile.
  • deploy
  • set Github Pages branch
  • my haddock docs seem to include my deps yet not my code?
  • the docs end up with broken links based on absolute URLs like this -- I now filed this here.
@KiaraGrouwstra KiaraGrouwstra created this issue from a note in synthesis (To do) Jan 28, 2020
@KiaraGrouwstra
Copy link
Owner Author

uhhh getting this out of a Docker seems tough without Stack complaining about ownership, so I may need a Haskell Travis...

@KiaraGrouwstra KiaraGrouwstra mentioned this issue Jan 29, 2020
Closed
@KiaraGrouwstra
Copy link
Owner Author

KiaraGrouwstra commented Jan 29, 2020

First attempt here (build)...

@KiaraGrouwstra
Copy link
Owner Author

I managed to deploy Haddock to Github pages now. That leaves the question why it documents my deps yet not my own code...

@KiaraGrouwstra
Copy link
Owner Author

KiaraGrouwstra commented Jan 31, 2020

I pushed a fix for that last bit now, but the proper doc directory doesn't get repeated if re-running the command, while capturing the whole thing thru grep seems prone to make Travis error if doc generation takes >10m... as a workaround I hard-coded the doc path now, but this is dependent on the Cabal version used. At least CI will complain when this goes wrong.

synthesis automation moved this from To do to Done Jan 31, 2020
@KiaraGrouwstra KiaraGrouwstra moved this from Done to To do in synthesis Feb 1, 2020
@KiaraGrouwstra KiaraGrouwstra reopened this Feb 1, 2020
synthesis automation moved this from To do to In progress Feb 1, 2020
@KiaraGrouwstra KiaraGrouwstra moved this from In progress to To do in synthesis Feb 1, 2020
@KiaraGrouwstra KiaraGrouwstra moved this from To do to Done in synthesis Feb 1, 2020
@KiaraGrouwstra
Copy link
Owner Author

so uh Nix broke my CI so I'll wanna somehow salvage what I had using this.

@KiaraGrouwstra
Copy link
Owner Author

for some reason the new Github action isn't running yet. weird.

synthesis automation moved this from Done to In progress Apr 15, 2020
@KiaraGrouwstra KiaraGrouwstra moved this from In progress to Done in synthesis Apr 17, 2020
@KiaraGrouwstra KiaraGrouwstra moved this from Done to Out of scope in synthesis Apr 18, 2020
@KiaraGrouwstra
Copy link
Owner Author

ohh, it was running, see https://github.com/tycho01/synthesis/actions

@KiaraGrouwstra
Copy link
Owner Author

while the action runs now, going to https://tycho01.github.io/synthesis/, I don't see any content, while the JS console complains of a missing doc-index.json. Pressing QuickJump gives a popup stating that as well.

@KiaraGrouwstra
Copy link
Owner Author

ohh, hasktorch is missing the json file too -- their content just works anyway.

@KiaraGrouwstra
Copy link
Owner Author

fwiw debugging should consist of just manually running the commands in a terminal then tweaking them until I know what configuration produces something good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
synthesis
  
Out of scope
Development

No branches or pull requests

1 participant