From fb901ea15f1465a1217e376df3056f722a6fa943 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Fri, 22 Nov 2024 17:51:07 -0500 Subject: [PATCH] ci: use sources for docs (#1100) --- .buildkite/documentation.yml | 11 +++-------- docs/Project.toml | 8 ++++++++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.buildkite/documentation.yml b/.buildkite/documentation.yml index fa7ddf121..80b0a9152 100644 --- a/.buildkite/documentation.yml +++ b/.buildkite/documentation.yml @@ -7,7 +7,7 @@ steps: parallelism: 4 plugins: - JuliaCI/julia#v1: - version: "1.10" + version: "1" command: julia --code-coverage=user --color=yes --project=docs --threads=auto docs/tutorials.jl env: TUTORIAL_BACKEND_GROUP: "CUDA" @@ -28,7 +28,7 @@ steps: parallelism: 4 plugins: - JuliaCI/julia#v1: - version: "1.10" + version: "1" command: julia --code-coverage=user --color=yes --project=docs --threads=auto docs/tutorials.jl env: TUTORIAL_BACKEND_GROUP: "CPU" @@ -50,7 +50,7 @@ steps: - "tutorial-build-cpu" plugins: - JuliaCI/julia#v1: - version: "1.10" + version: "1" - JuliaCI/julia-coverage#v1: codecov: true dirs: @@ -69,11 +69,6 @@ steps: julia --code-coverage=user --color=yes --project=docs -e ' println("--- :julia: Instantiating project") using Pkg - dev_pkgs = Pkg.PackageSpec[] - for pkg in ("lib/LuxLib", "lib/LuxCore", "lib/MLDataDevices", "lib/LuxTestUtils", "lib/WeightInitializers", ".") - push!(dev_pkgs, Pkg.PackageSpec(path=pkg)); - end - Pkg.develop(dev_pkgs) Pkg.instantiate() println("+++ :julia: Building documentation") include("docs/make.jl")' diff --git a/docs/Project.toml b/docs/Project.toml index 4668f8daf..ff948b0b3 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -62,3 +62,11 @@ StaticArrays = "1" WeightInitializers = "1" Zygote = "0.6.70" julia = "1.10" + +[sources] +Lux = { path = "../" } +LuxLib = { path = "../lib/LuxLib" } +LuxCore = { path = "../lib/LuxCore" } +MLDataDevices = { path = "../lib/MLDataDevices" } +LuxTestUtils = { path = "../lib/LuxTestUtils" } +WeightInitializers = { path = "../lib/WeightInitializers" }