Skip to content

Commit

Permalink
Build Quarto files with quarto
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Jul 5, 2023
1 parent 8643ea4 commit 1b044c9
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
using Documenter, Downloads, ArviZ
using MCMCChains: MCMCChains # make `from_mcmcchains` available for API docs
using SampleChains: SampleChains # make `from_samplechains` available for API docs
using PlutoStaticHTML: PlutoStaticHTML

const DOCS_SRC_PATH = joinpath(@__DIR__, "src")

# generate markdown from Pluto notebooks
output_format = PlutoStaticHTML.documenter_output
build_opts = PlutoStaticHTML.BuildOptions(
DOCS_SRC_PATH;
previous_dir=DOCS_SRC_PATH,
output_format=output_format,
add_documenter_css=false,
)
PlutoStaticHTML.build_notebooks(build_opts)
# generate markdown from Quarto files
using CondaPkg
CondaPkg.withenv() do
@info "Rendering Quarto files"
run(`quarto render $(DOCS_SRC_PATH)`)
end

const ASSETS_DIR = joinpath(@__DIR__, "src", "assets")
const ARVIZ_ASSETS_URL = "https://raw.githubusercontent.com/arviz-devs/arviz-project/main/arviz_logos"
Expand Down

0 comments on commit 1b044c9

Please sign in to comment.