-
Notifications
You must be signed in to change notification settings - Fork 10
/
Publish.jl
68 lines (56 loc) · 1.49 KB
/
Publish.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# # Publish.jl Literate Source Code
#
# This package can use Julia source files as a content source, similar to
# normal markdown files. It uses the same syntax to mark source lines as either
# markdown content or codeblocks. You can read about the details of literate
# Julia files [here](# "Literate Julia").
#
# !!! info "Literate Programming"
#
# These source file only make use of literate features as a test case for
# the package. They should not be thought of as a showcase for literate
# programming itself.
module Publish
# ## Exports
export html, html_doc, pdf, serve, deploy, setup
# ## Imports
import Base64
import CommonMark
import DataStructures
import IOCapture
import IterTools
import JSON
import LiveServer
import Mustache
import Pkg
import Pkg.TOML
import PrettyTables
import Requires
import Tectonic
using FilePathsBase
using FileTrees
using Logging
# ## Configuration
const DAGGER = Ref(false)
const LAZY = Ref(true)
# ## Includes
include("projects.jl")
include("themes.jl")
include("load.jl")
include("cells.jl")
include("save.jl")
include("serve.jl")
include("deploy.jl")
include("tools.jl")
include("utilities.jl")
include("Experimental.jl")
# ## Package Initialisation
#
# Revise.jl is an optional dependency, we use Requires.jl to define a
# [`revise`](#) method when it is available that triggers `Revise.revise`.
function __init__()
Requires.@require Revise="295af30f-e4ad-537b-8983-00126c2a3abe" begin
revise(::Project) = Revise.revise()
end
end
end # module