Skip to content

Commit

Permalink
Get moment_kinetics version number for online docs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani committed Dec 12, 2024
1 parent cf4fa8b commit 31c7ec7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@ using Pkg

Pkg.instantiate()

using Documenter
using Documenter, UUIDs
using moment_kinetics, makie_post_processing, plots_post_processing

makedocs(
sitename = "moment_kinetics",
format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true",
size_threshold = 1000000,
size_threshold_warn = 500000,
# Use the following horrible incantation to get the version
# of moment_kinetics. moment_kinetics is the package with the
# UUID being used here. We need to do this because the
# Project.toml in the top-level directory is user-generated
# and does not have a version, but this is the Project.toml
# that would be used by default by Documenter.jl.
inventory_version = Pkg.dependencies()[UUID("b5ff72cc-06fc-4161-ad14-dba1c22ed34e")].version,
),
modules = [moment_kinetics, makie_post_processing, plots_post_processing],
)
Expand Down

0 comments on commit 31c7ec7

Please sign in to comment.