Skip to content

Commit 808c90c

Browse files
authored
Moving to use Pkg3 and new Documenter (#99)
1 parent 05fd003 commit 808c90c

File tree

6 files changed

+39
-15
lines changed

6 files changed

+39
-15
lines changed

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ os:
66
- linux
77
- osx
88
julia:
9-
- 0.7
109
- 1.0
1110
- nightly
1211
matrix:
@@ -17,8 +16,14 @@ notifications:
1716
# https://github.com/travis-ci/travis-ci/issues/4942
1817
git:
1918
depth: 99999
20-
## Documeter.jl
21-
after_success:
22-
- julia -e 'using Pkg; ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)'
23-
- julia -e 'import Parameters; cd(joinpath(dirname(pathof(Parameters)), "..")); include(joinpath("docs", "make.jl"))'
24-
- julia -e 'using Pkg; cd(Pkg.dir("Parameters")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
19+
## Documeter.jl https://discourse.julialang.org/t/psa-use-a-project-for-building-your-docs/14974/5
20+
jobs:
21+
include:
22+
- stage: "Documentation"
23+
julia: 1.0
24+
os: linux
25+
script:
26+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
27+
Pkg.instantiate()'
28+
- julia --project=docs/ docs/make.jl
29+
after_success: skip

Project.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name = "Parameters"
2+
uuid = "d96e819e-fc66-5662-9728-84c9c7592b0a"
3+
author = ["Mauro Werder <mauro3@runbox.com>"]
4+
version = "0.11.0"
5+
6+
[deps]
7+
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
8+
9+
[compat]
10+
OrderedCollections = "≥ 0.1.0"
11+
julia = "≥ 1.0.0"
12+
13+
[extras]
14+
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
15+
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
16+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
17+
18+
[targets]
19+
test = ["REPL", "Test", "Markdown"]

REQUIRE

Lines changed: 0 additions & 2 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
environment:
22
matrix:
3-
- julia_version: 0.7
43
- julia_version: 1.0
54
- julia_version: latest
65

docs/Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
4+
[compat]
5+
Documenter = "~0.22"

docs/make.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using Documenter, Parameters
22
makedocs(
3-
format = :html,
3+
format = Documenter.HTML(
4+
prettyurls = get(ENV, "CI", nothing) == "true"
5+
),
46
sitename = "Parameters.jl",
57
# pages also make the side-bar
68
pages = Any[
@@ -10,9 +12,5 @@ makedocs(
1012
)
1113

1214
deploydocs(
13-
repo = "github.com/mauro3/Parameters.jl.git",
14-
julia = "1.0",
15-
target = "build",
16-
deps = nothing,
17-
make = nothing
15+
repo = "github.com/mauro3/Parameters.jl.git"
1816
)

0 commit comments

Comments
 (0)