From 830f144ee7a7774dfcec0dd9b5e9cb1c0a891467 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Tue, 11 Dec 2018 15:05:55 +0100 Subject: [PATCH] Try deploying Documenter on GitLab pages. --- .gitlab-ci.yml | 21 ++------------------- README.md | 6 ++---- docs/make.jl | 2 +- 3 files changed, 5 insertions(+), 24 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d82ef2d8..e8ec36d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,12 @@ variables: CI_IMAGE_TAG: 'cuda' -stages: - - test - - postprocess - include: - 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v1/common.yml' - 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v1/test_v1.0.yml' - 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v1/test_dev.yml' - 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v1/coverage_dev.yml' + - 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v1/documentation_v1.0.yml' test:v1.0: only: @@ -29,21 +26,7 @@ coverage: - staging - trying -documentation: - stage: postprocess - image: juliagpu/julia:v1.0-cuda - variables: - DOCUMENTER_DEBUG: "true" - script: - - julia --project=docs/ -e 'using Pkg; - Pkg.develop(PackageSpec(path=pwd())); - Pkg.build(); - Pkg.instantiate()' - - julia --project=docs/ docs/make.jl - - mv docs/build public - artifacts: - paths: - - public +pages: only: - master - staging diff --git a/README.md b/README.md index 63f13953..86243819 100644 --- a/README.md +++ b/README.md @@ -3,15 +3,13 @@ CUDAnative.jl *Support for compiling and executing native Julia kernels on CUDA hardware.* -[![][docs-stable-img]][docs-stable-url] [![][docs-latest-img]][docs-latest-url] [![][codecov-img]][codecov-url] [![][doi-img]][doi-url] +[![][docs-latest-img]][docs-latest-url] [![][codecov-img]][codecov-url] [![][doi-img]][doi-url] [codecov-img]: https://codecov.io/gh/JuliaGPU/CUDAnative.jl/branch/master/graph/badge.svg [codecov-url]: https://codecov.io/gh/JuliaGPU/CUDAnative.jl -[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg -[docs-stable-url]: http://juliagpu.github.io/CUDAnative.jl/stable [docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg -[docs-latest-url]: http://juliagpu.github.io/CUDAnative.jl/latest +[docs-latest-url]: https://juliagpu.gitlab.io/CUDAnative.jl/ [doi-img]: https://zenodo.org/badge/DOI/10.1109/TPDS.2018.2872064.svg [doi-url]: https://doi.org/10.1109/TPDS.2018.2872064 diff --git a/docs/make.jl b/docs/make.jl index 9a8703f2..d7b3a23b 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -2,7 +2,7 @@ using Documenter, CUDAnative makedocs( modules = [CUDAnative], - format = :html, + format = Documenter.HTML(), sitename = "CUDAnative.jl", pages = [ "Home" => "index.md",