Skip to content

Commit 29336c0

Browse files
authored
Merge pull request #18 from alan-turing-institute/dev
Add autoscitype
2 parents 040d7e8 + 0f04183 commit 29336c0

File tree

18 files changed

+665
-1777
lines changed

18 files changed

+665
-1777
lines changed

.travis.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
language: julia
33
os:
44
- linux
5-
- osx
65
julia:
76
- 1.0
87
- 1.1
@@ -21,19 +20,13 @@ matrix:
2120
after_success:
2221
- julia -e 'using Pkg; pkg"add Coverage"; using Coverage; Codecov.submit(Codecov.process_folder())'
2322

24-
## uncomment following lines to deploy documentation
25-
## jobs:
26-
## include:
27-
## - stage: "Documentation"
28-
## julia: 1.1
29-
## os: linux
30-
## # disable global before_script in order not to install Compose twice
31-
## before_script:
32-
## script:
33-
## - |
34-
## julia --color=yes --project=docs/ -e'
35-
## using Pkg
36-
## Pkg.add(PackageSpec(name="MLJBase", rev="master"));Pkg.add(PackageSpec(name="MLJModels", rev="master"));Pkg.develop(PackageSpec(path=pwd()))
37-
## Pkg.instantiate()
38-
## include("docs/make.jl")
39-
## '
23+
jobs:
24+
include:
25+
- stage: "Documentation"
26+
julia: 1.2
27+
os: linux
28+
script:
29+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
30+
Pkg.instantiate()'
31+
- julia --project=docs/ docs/make.jl
32+
after_success: skip

LICENCE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MLJ.jl package is licensed under the MIT "Expat" License:
22

3-
> Copyright (c) 2018: Edoardo Barp, Anthony Blaom, Gergö Bohner, Valentin Churavy, Harvey Devereux, Thibaut Lienart,
4-
Franz J Király, Mohammed Nook, Annika Stechemesser, Sebastian Vollmer; Mike Innes in partnership with Julia Computing.
3+
> Copyright (c) 2019: Anthony Blaom, Thibaut Lienart, Franz J Király
4+
> and contributors.
55
>
66
> Permission is hereby granted, free of charge, to any person obtaining a copy
77
> of this software and associated documentation files (the "Software"), to deal

Project.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ScientificTypes"
22
uuid = "321657f4-b219-11e9-178b-2701a2544e81"
33
authors = ["Anthony D. Blaom <[email protected]>"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[deps]
77
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
@@ -14,8 +14,9 @@ julia = "1"
1414
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
1515
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
1616
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
17+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1718
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
1819
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1920

2021
[targets]
21-
test = ["AbstractTrees", "CategoricalArrays", "ColorTypes", "Tables", "Test"]
22+
test = ["AbstractTrees", "CategoricalArrays", "ColorTypes", "Random", "Tables", "Test"]

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
## ScientificTypes
32

43
A light-weight julia interface for implementing conventions about the

docs/Project.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[deps]
2-
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
3-
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
4-
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
5-
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
62
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
7-
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
8-
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
93
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"
4+
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
105
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
6+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
7+
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
8+
9+
[compat]
10+
Documenter = "^0.23"

docs/make.jl

100755100644
Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
1-
srcdir = joinpath(@__DIR__(), "src")
2-
3-
# ENV["TRAVIS_REPO_SLUG"]="" #"alan-turing-institute/MLJ.jl"
4-
5-
using Literate
6-
Literate.notebook(joinpath(srcdir, "index.jl"), srcdir)
7-
8-
# currently getting markdown by exported from notebook, as I can't get
9-
# documeter to work.
10-
11-
# Literate.markdown(joinpath(srcdir, "index.jl"), srcdir,
12-
# codefence = "```@repl scitypes" => "```")
13-
14-
# using Documenter
15-
# using ScientificTypes
16-
17-
# makedocs(
18-
# sitename = "ScientificTypes",
19-
# format = Documenter.HTML(),
20-
# modules = [ScientificTypes],
21-
# pages = Any["ScientificTypes"=>"index.md"]
22-
# )
23-
24-
# deploydocs(
25-
# repo = "github.com/alan-turing-institute/ScientificTypes.jl.git"
26-
# )
27-
1+
using Documenter, ScientificTypes
2+
3+
makedocs(
4+
modules = [ScientificTypes],
5+
format = Documenter.HTML(
6+
prettyurls = !("local" in ARGS),
7+
assets = ["assets/custom.css"]
8+
),
9+
sitename = "ScientificTypes.jl",
10+
authors = "Anthony Blaom, Thibaut Lienart, and contributors.",
11+
pages = [
12+
"Home" => "index.md",
13+
# "Manual" => [
14+
# ],
15+
# "Library" => [
16+
# ],
17+
]
18+
)
19+
20+
deploydocs(
21+
repo = "github.com/alan-turing-institute/ScientificTypes.jl"
22+
)

docs/src/assets/custom.css

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
body {
2+
font-family: Helvetica;
3+
text-rendering: optimizeLegibility;
4+
line-height: 1.5;
5+
color: #363636;
6+
}
7+
8+
article {
9+
margin-left: 16em;
10+
}
11+
12+
@media only screen and (max-width:768px) {
13+
article {
14+
margin-left: 0;
15+
padding: 3em, 0.9em, 0, 0.9em;
16+
overflow-wrap: break-word;
17+
}
18+
}
19+
20+
nav.toc {
21+
width: 15em;
22+
}
23+
24+
nav.toc ul li ul li.current ul.internal li a.toctext:before {
25+
content:"• ";
26+
}
27+
28+
blockquote {
29+
background-color: #e6f9f2;
30+
font-style: italic;
31+
border-left: 5px solid cadetblue;
32+
padding-left: 5px;
33+
}
34+
blockquote p {
35+
padding-top: 7px;
36+
padding-bottom: 5px;
37+
}
38+
39+
.admonition.important > .admonition-title {
40+
visibility: hidden;
41+
height: 0;
42+
}
43+
44+
.admonition.important {
45+
background-color: lemonchiffon;
46+
}
47+
48+
code {color: #cc0066;}
49+
50+
a code {color: inherit;}
51+
52+
pre code {color: black;}
53+
54+
table code {color: black;}

0 commit comments

Comments
 (0)