# 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:** 4

<div class="post-metadata">

### Author: ![cstook](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstook/32/3731_2.png) [@cstook](https://discourse.julialang.org/u/cstook)
#### Post date: [August 19, 2017, 4:09pm UTC](https://discourse.julialang.org/t/deploy-documenter-docs-locally/5463/4 "2017-08-19T16:09:43Z")

</div>

I created a short julia script to set the environment variables the way travis would set them. Need to keep this outside the repository since it contains the deploy key.

```julia
ENV["TRAVIS_REPO_SLUG"] = "github.com/cstook/LTspice.jl.git"
ENV["TRAVIS_PULL_REQUEST"] = "false"
ENV["TRAVIS_OS_NAME"] = "linux"
ENV["TRAVIS_JULIA_VERSION"] = "0.6"
ENV["TRAVIS_TAG"] = "master"
ENV["DOCUMENTER_KEY"] = key not shown

```

Then modify the make.jl file to include this script is it exists.

```julia
if "deploy" in ARGS
  fake_travis = "C:/Users/Chris/fake_travis_LTspice.jl"
  if isfile(fake_travis)
    include(fake_travis)
  end
  deploydocs(
    repo = "github.com/cstook/LTspice.jl.git",
    target = "site",
    branch = "gh-pages",
    latest = "master",
    osname = "linux",
    julia = "0.6",
    deps = nothing,
    make = nothing,
  )
end

```

---

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