Skip to content

Commit

Permalink
Fix binder setup (JuliaMolSim#449)
Browse files Browse the repository at this point in the history
* Fix binder setup

* fix dest
  • Loading branch information
mfherbst authored Jun 16, 2021
1 parent 876f956 commit 62aeb02
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ CONTINUOUS_INTEGRATION = get(ENV, "CI", nothing) == "true"

# Python and Julia dependencies needed for running the notebooks
PYDEPS = ["ase", "pymatgen"]
JLDEPS = [
Pkg.PackageSpec(url="https://github.com/JuliaMolSim/DFTK.jl.git",
rev=LibGit2.head(ROOTPATH)), # The current DFTK
]

# Setup julia dependencies for docs generation if not yet done
Pkg.activate(@__DIR__)
Expand Down Expand Up @@ -142,18 +138,16 @@ if CONTINUOUS_INTEGRATION
end

# Install Julia dependencies into build
cp(joinpath(@__DIR__, "Project.toml"), joinpath(BUILDPATH, "Project.toml"))
Pkg.activate(".")
for dep in JLDEPS
Pkg.add(dep)
end
Pkg.add(Pkg.PackageSpec(url="https://github.com/JuliaMolSim/DFTK.jl.git",
rev=LibGit2.head(ROOTPATH)))
end
Pkg.activate(@__DIR__) # Back to Literate / Documenter environment
end

# Deploy docs to gh-pages branch
deploydocs(
repo = "github.com/JuliaMolSim/DFTK.jl.git",
)
deploydocs(; repo="github.com/JuliaMolSim/DFTK.jl.git")

# Remove generated example files
if !DEBUG
Expand Down

0 comments on commit 62aeb02

Please sign in to comment.