# Deploy Documenter docs locally

**URL:** <https://discourse.julialang.org/t/deploy-documenter-docs-locally/5463>\
**Category:** General Usage\
**Tags:** documentation, documenter, git\
**Created:** [August 19, 2017, 3:46pm UTC](https://discourse.julialang.org/t/deploy-documenter-docs-locally/5463 "2017-08-19T15:46:45Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![dpo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpo/32/3335_2.png) [@dpo](https://discourse.julialang.org/u/dpo)\
**Post date:** [June 2, 2019, 4:16pm UTC](https://discourse.julialang.org/t/deploy-documenter-docs-locally/5463/7 "2019-06-02T16:16:24Z")

</div>

@cstook Many thanks for this! I found I had to make a few changes, presumably because Documenter has changed in the meantime:

```julia
# contents of faketravis.jl
ENV["TRAVIS_REPO_SLUG"] = "github.com/USER_NAME/PROJECT_NAME.jl.git"
ENV["TRAVIS_PULL_REQUEST"] = "false"
ENV["TRAVIS_OS_NAME"] = "macos" # or "linux"
ENV["TRAVIS_JULIA_VERSION"] = "1.1"
ENV["TRAVIS_TAG"] = ""
ENV["TRAVIS_BRANCH"] = "master"
ENV["DOCUMENTER_KEY"] = "..." # insert private key and add public key to Github project

```

and in `make.jl`:

```julia
if "deploy" in ARGS
  include("../../faketravis.jl")
end

deploydocs(deps = nothing, make = nothing,
  repo = "github.com/USER_NAME/PROJECT_NAME.jl.git",
  target = "build",
  branch = "gh-pages",
  devbranch = "master",
)

```

Issuing `julia make.jl deploy` builds and deploys the docs. Perfect for projects that depend on proprietary software.

---

_[View the full topic](https://discourse.julialang.org/t/deploy-documenter-docs-locally/5463)._
