# Documenter.jl - how to add package

**URL:** <https://discourse.julialang.org/t/documenter-jl-how-to-add-package/48496>\
**Category:** General Usage\
**Tags:** question, package, documentation, documenter\
**Created:** [October 16, 2020, 3:35pm UTC](https://discourse.julialang.org/t/documenter-jl-how-to-add-package/48496 "2020-10-16T15:35:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cadojo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cadojo/32/25328_2.png) [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Post date:** [October 16, 2020, 3:35pm UTC](https://discourse.julialang.org/t/documenter-jl-how-to-add-package/48496/1 "2020-10-16T15:35:51Z")

</div>

I’m developing a package called `UnitfulAstrodynamics`, which is hosted on GitHub. I’m using `Documenter.jl` for documentation, and I have a `docs/` folder at the top level of the package.

The GitHub action `julia-actions/julia-docdeploy@latest` uses `docs/Project.toml` to `instantiate` all the dependencies for `make`ing the documentation.

The documentation requires `UnitfulAstrodynamics`, but I’m not sure how to best include all `UnitfulAstrodynamics/Project.toml` dependencies in `UnitfulAstrodynamics/docs/Project.toml`.

So far, I’ve used:

```nohighlight
cd UnitfulAstrodynamics/docs
julia --project # activates UnitfulAstrodynamics/docs/Project.toml
]add Documenter
]add ..

```

This seems to track the version of my project that is stored in `Github` (as defined by `UnitfulAstrodynamics/Manifest.toml`). That’s often fine, but when I define new types locally, and then try to `make` and `serve` the documentation locally for testing, the documentation doesn’t recognize the new types because they’re not yet pushed to GitHub.

Other packages that use `Documenter.jl` seem to include the top level package in `docs/Project.toml`. One example is [`ControlSystems.jl/docs/Project.toml`](https://github.com/JuliaControl/ControlSystems.jl/blob/master/docs/Project.toml). Are other developers running into the same issue I am? Otherwise, how should I best `]add UnitfulAstrodynamics` to `UnitfulAstrodynamics/docs/Project.toml`?

```julia

```

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [October 16, 2020, 3:38pm UTC](https://discourse.julialang.org/t/documenter-jl-how-to-add-package/48496/2 "2020-10-16T15:38:33Z")

</div>

The problem is `]add ..` which should be `]dev ..`; you want to track the path, not the most recent commit. You will get something like [https://github.com/fredrikekre/Literate.jl/blob/5db8c22fcfe74470d1ab836d566afbc8a9e86d9f/docs/Manifest.toml#L193](https://github.com/fredrikekre/Literate.jl/blob/5db8c22fcfe74470d1ab836d566afbc8a9e86d9f/docs/Manifest.toml#L193) in the manifest.
