# Plea to package developers regarding documentation!

**URL:** <https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473>\
**Category:** Community\
**Tags:** documenter\
**Created:** [April 12, 2020, 11:15pm UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473 "2020-04-12T23:15:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [April 12, 2020, 11:15pm UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/1 "2020-04-12T23:15:23Z")

</div>

_Very_ serious topic ahead:

Please please please can package developers put a link BACK to the source repo inside your documentation! Without it, the documentation becomes a trap.

Randomly selected example: [StatsBase.jl Documentation · StatsBase.jl](https://juliastats.org/StatsBase.jl/stable/)

It is becoming more common now that Google is taking me to documentation pages rather than the Github repo. I frequently flip back and forth between code and documentation, but this process is beyond cumbersome if the documentation contains no easily accessible link to the code with which it is associated. Links are free to use!

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [April 12, 2020, 11:17pm UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/2 "2020-04-12T23:17:57Z")

</div>

I agree this is annoying, but it looks like there is already a work-in-progress PR for Documenter to add this: [Link to repo in navbar by mortenpi · Pull Request #1254 · JuliaDocs/Documenter.jl · GitHub](https://github.com/JuliaDocs/Documenter.jl/pull/1254)! I think that’s a good solution since it’ll help everyone instead of each package needing to add a link manually.

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [April 12, 2020, 11:21pm UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/3 "2020-04-12T23:21:21Z")

</div>

Ha! I had no idea. I suppose adding it in Documenter is maybe a good approach going forward, but it is a pretty low (one time!) cost to do so anyway.

Most packages start out like the linked example:

> StatsBase.jl is blah blah blah…

Why not just turn that into a link to the repo?

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [April 13, 2020, 12:50am UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/4 "2020-04-13T00:50:48Z")

</div>

In the bottom of every docstring in the documentation there is a button labeled “source” which takes you straight to the source code of that function.

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [April 13, 2020, 2:19am UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/5 "2020-04-13T02:19:09Z")

</div>

Yea that isn’t really what I want though. I just want to go to the repo.

---

<div class="post-metadata">

**Author:** ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)\
**Post date:** [April 13, 2020, 4:43am UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/6 "2020-04-13T04:43:09Z")

</div>

I usually put a badge like this [![GitHub commits since tagged version](https://img.shields.io/github/commits-since/tkf/BangBang.jl/v0.3.19.svg?style=social&logo=github)](https://github.com/tkf/BangBang.jl) in README with

```julia
[![GitHub commits since tagged version](https://img.shields.io/github/commits-since/USER/PACKAGE.jl/vX.Y.Z.svg?style=social&logo=github)](https://github.com/USER/PACKAGE.jl)

```

and then use it as the docstring of the module by this one-linear

```julia
@doc read(joinpath(dirname(@ __DIR__ ), "README.md"), String) PACKAGE

```

so that the badge is included in the documentation (e.g., [https://tkf.github.io/BangBang.jl/dev/#BangBang.BangBang](https://tkf.github.io/BangBang.jl/dev/#BangBang.BangBang)). I like that it provides useful bits of information while also providing the link to the repository (though it relies on that people already know that badges are often clickable).

For fun, you can find other github-related badges in [https://shields.io/](https://shields.io/) (type `github` in the search form).

---

<div class="post-metadata">

**Author:** ![ppalmes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ppalmes/32/6838_2.png) [@ppalmes](https://discourse.julialang.org/u/ppalmes)\
**Post date:** [April 13, 2020, 7:58am UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/7 "2020-04-13T07:58:29Z")

</div>

you can just google: github package.jl.  
just let google know you are interested with github

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [April 13, 2020, 9:12am UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/8 "2020-04-13T09:12:57Z")

</div>

You can usually just press the “Edit on GitHub” button in the top right. It takes you to the repo.

---

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [April 13, 2020, 9:26am UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/9 "2020-04-13T09:26:23Z")

</div>

It usually takes you to the `gh-pages` branch of the repo, so one should make additional click to switch to the main page of the repository. It’s not a big issue, but it is annoying when you do it 100th time.

As a side note, it can be a small fix of the corresponding `PkgTemplates` template also.

---

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [April 13, 2020, 10:06am UTC](https://discourse.julialang.org/t/plea-to-package-developers-regarding-documentation/37473/10 "2020-04-13T10:06:33Z")

</div>

Browser tabs?
