forsyde / forsyde-atom

A shallow-embedded DSL for modeling cyber-physical systems
https://forsyde.github.io/forsyde-atom/
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

cabal haddock does not find figures #20

Closed ingo-sander closed 7 years ago

ingo-sander commented 7 years ago

cabal haddock has problems with the figures on my machine:

... 21% ( 29 /141) in 'ForSyDe.Atom.MoC.SDF' 100% ( 3 / 3) in 'ForSyDe.Atom.Skeleton.Vector.Interface' 43% ( 75 /174) in 'ForSyDe.Atom.Skeleton.Vector' 100% ( 52 / 52) in 'ForSyDe.Atom' Warning: ForSyDe.Atom.MoC.DE: could not find link destinations for: event Warning: ForSyDe.Atom.MoC.CT: could not find link destinations for: event Documentation created: dist/doc/html/forsyde-atom/index.html cabal: filepath wildcard 'includes/figs/*.png' does not match any files.

ugeorge commented 7 years ago

maybe you haven't called make doc and instead cabal haddock. You need to generate the figures first before building the documentation. README.md states:

To generate the haddock extended API + technical report documentation one should use the provided Makefile instead:

make doc              # compiles the documentation and the LaTeX figures
make clean            # removes all the generated documentation files

Let me know if this fixes the problem or there are hidden issues which I need to look into.