Crystal Docs and monkey patching

I’m wondering how to generate documentation for my code if my code is living in a standard library module.

This is the source code of the shard I want to document:

This repository create an object named JSON::OnSteroids, preventing crystal docs to generate the proper documentation (at least I guess)

This is the generated crystal docs page:

https://anykeyh.github.io/json_on_steroids/

As you can see it doesn’t export the good content.

I guess I might have architectured my files wrongly or something like that. Any way to fix this?

It’s a bug, please report it. Thank you!

2 Likes