Skip to content

Commit

Permalink
TEST: auto deploy docs from travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sglyon committed Feb 4, 2017
1 parent 18d6b49 commit e2863e4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ notifications:
after_success:
- echo $TRAVIS_JULIA_VERSION
- julia -e 'Pkg.add("Coverage"); cd(Pkg.dir("QuantEcon")); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
# uncomment the following code to enable deployment of documentation after each
# new commit
# - julia -e 'Pkg.add("Documenter")'
# - julia -e 'cd(Pkg.dir("QuantEcon")); include(joinpath("docs", "make.jl"))'
- julia -e 'Pkg.add("Documenter")'
- julia -e 'cd(Pkg.dir("QuantEcon")); include(joinpath("docs", "make.jl"))'
16 changes: 8 additions & 8 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ makedocs(
]
)

# deploydocs(
# repo = "github.com/QuantEcon/QuantEcon.jl.git",
# branch = "gh-pages",
# target = "build",
# julia = "nightly",
# deps = nothing,
# make = nothing,
# )
deploydocs(
repo = "github.com/QuantEcon/QuantEcon.jl.git",
branch = "gh-pages",
target = "build",
julia = "release",
deps = nothing,
make = nothing,
)
14 changes: 14 additions & 0 deletions docs/serve.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package main

import (
"log"
"net/http"
)

func main() {
fs := http.FileServer(http.Dir("build"))
http.Handle("/", fs)

log.Println("Listening...")
http.ListenAndServe(":3000", nil)
}
7 changes: 7 additions & 0 deletions docs/src/api/QuantEcon.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# QuantEcon

```@meta
CurrentModule = QuantEcon
DocTestSetup = quote
using QuantEcon
end
```

API documentation

```@contents
Expand Down

0 comments on commit e2863e4

Please sign in to comment.