From f73caf083d0ea2e59f40fb25c04715fdd924bf05 Mon Sep 17 00:00:00 2001 From: Reno Date: Wed, 17 Aug 2022 00:19:27 -0400 Subject: [PATCH] Move setup code to make.jl --- docs/make.jl | 8 +++++++- docs/src/public.md | 3 --- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index ff2062d..d61339b 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,7 +1,13 @@ using SimpleWorkflows using Documenter -DocMeta.setdocmeta!(SimpleWorkflows, :DocTestSetup, :(using SimpleWorkflows); recursive=true) +DocMeta.setdocmeta!( + SimpleWorkflows, + :DocTestSetup, + :(using SimpleWorkflows, + SimpleWorkflows.Thunks, SimpleWorkflows.Jobs, SimpleWorkflows.Workflows); + recursive=true, +) makedocs(; modules=[SimpleWorkflows], diff --git a/docs/src/public.md b/docs/src/public.md index c6611d3..b2ad579 100644 --- a/docs/src/public.md +++ b/docs/src/public.md @@ -10,7 +10,6 @@ Pages = ["public.md"] ```@meta CurrentModule = SimpleWorkflows.Thunks -DocTestSetup = :(using SimpleWorkflows.Thunks) ``` ## `Thunks` module @@ -23,7 +22,6 @@ getresult(::Thunk) ```@meta CurrentModule = SimpleWorkflows.Jobs -DocTestSetup = :(using SimpleWorkflows.Jobs) ``` ## `Jobs` module @@ -58,7 +56,6 @@ ntimes ```@meta CurrentModule = SimpleWorkflows.Workflows -DocTestSetup = :(using SimpleWorkflows.Workflows) ``` ## `Workflows` module