The Crystal Programming Language Forum

How to build crystal docs?

I was attempting to build the documentation I find here:

But it blows up. Am I missing something? Is there some magic needed to generate them?

crystal$ ./bin/crystal docs
Using compiled compiler at .build/crystal
Showing last frame. Use --error-trace for full trace.

In src/

 1 | require "c/synchapi"
Error: can't find file 'c/synchapi'

If you're trying to require a shard:
- Did you remember to run `shards install`?
- Did you make sure you're running the compiler in the same directory as your shard.yml?

make docs

It exists exactly because the usual ways blows up

1 Like