# "Defined In" section in crystal doc remains empty

**URL:** <https://forum.crystal-lang.org/t/defined-in-section-in-crystal-doc-remains-empty/1361>\
**Category:** Help & Support\
**Created:** [November 14, 2019, 9:39am UTC](https://forum.crystal-lang.org/t/defined-in-section-in-crystal-doc-remains-empty/1361 "2019-11-14T09:39:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DannyB](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/dannyb/32/622_2.png) [@DannyB](https://forum.crystal-lang.org/u/DannyB)\
**Post date:** [November 14, 2019, 9:39am UTC](https://forum.crystal-lang.org/t/defined-in-section-in-crystal-doc-remains-empty/1361/1 "2019-11-14T09:39:27Z")

</div>

Hey fellow crystalists,

I am generating documentation for my first shard, using `crystal doc`, and the “Defined In” section remains empty, as seen in this screenshot:

![image](https://canada1.discourse-cdn.com/flex036/uploads/crystal_lang/original/1X/e0fd8065d3eec97d6d868d5e6f203b26a8962973.png)

I thought maybe the presence of the `--canonical-base-url` flag, will fix that - but it did not.

I was unable to find help in the [Documenting Code book page](https://crystal-lang.org/reference/conventions/documenting_code.html), and I have seen [other shards](https://jwaldrip.github.io/admiral.cr/Admiral/Command.html) that have their “Defined In” section filled.

Any tips?

---

<div class="post-metadata">

**Author:** ![straight-shoota](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/straight-shoota/32/36_2.png) [@straight-shoota](https://forum.crystal-lang.org/u/straight-shoota)\
**Post date:** [November 14, 2019, 9:56am UTC](https://forum.crystal-lang.org/t/defined-in-section-in-crystal-doc-remains-empty/1361/2 "2019-11-14T09:56:08Z")

</div>

This should usually work without issues or special configuration.

Is the source code available?

---

<div class="post-metadata">

**Author:** ![DannyB](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/dannyb/32/622_2.png) [@DannyB](https://forum.crystal-lang.org/u/DannyB)\
**Post date:** [November 14, 2019, 10:22am UTC](https://forum.crystal-lang.org/t/defined-in-section-in-crystal-doc-remains-empty/1361/3 "2019-11-14T10:22:49Z")

</div>

Yes, fresh from the oven:

- [Source of the only class in the shard](https://github.com/DannyBen/clipper/blob/master/src/clipper.cr)
- [Generated docs](https://dannyben.github.io/clipper/Clipper.html)

---

<div class="post-metadata">

**Author:** ![asterite](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/asterite/32/60_2.png) [@asterite](https://forum.crystal-lang.org/u/asterite)\
**Post date:** [November 14, 2019, 11:41am UTC](https://forum.crystal-lang.org/t/defined-in-section-in-crystal-doc-remains-empty/1361/4 "2019-11-14T11:41:45Z")

</div>

Are you running `crystal docs` in the directory where the `.git` directory is located? The compiler runs `git remote -v` to know where to point source code.

---

<div class="post-metadata">

**Author:** ![DannyB](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/dannyb/32/622_2.png) [@DannyB](https://forum.crystal-lang.org/u/DannyB)\
**Post date:** [November 14, 2019, 12:04pm UTC](https://forum.crystal-lang.org/t/defined-in-section-in-crystal-doc-remains-empty/1361/5 "2019-11-14T12:04:48Z")

</div>

> [@asterite](#):
>
> The compiler runs `git remote -v` to know where to point source code.

Oh! That was the missing piece.  
I ran crystal doc in the correct folder, and it had `.git`, but it was before I had a git remote.

[Now it is fixed](https://dannyben.github.io/clipper/Clipper.html).

Thanks a lot!
