Skip to content

Commit

Permalink
add docs banner to readme, disable running examples by literated ever…
Browse files Browse the repository at this point in the history
…ytime it is pushed
  • Loading branch information
benjione committed Sep 24, 2024
1 parent 2413b7b commit 33b1d1c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SequentialMeasureTransport.jl
[![Stable](https://img.shields.io/badge/docs-dev-blue.svg)](https://benjione.github.io/SequentialMeasureTransport.jl/dev/)

Code for the paper [Sequential Transport maps using SoS densities and $\alpha$-divergences](https://arxiv.org/abs/2402.17943)

A more detailed documentation is comming soon.
32 changes: 17 additions & 15 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,23 @@ using Literate
const EXAMPLES_DIR = joinpath(@__DIR__, "..", "examples")
const OUTPUT_DIR = joinpath(@__DIR__, "src/literated")

examples = [
"1D_density_estimation_single_map.jl",
"1D_density_from_data.jl",
]


for example in examples
withenv("GITHUB_REPOSITORY" => "FourierFlows/GeophysicalFlowsDocumentation") do
example_filepath = joinpath(EXAMPLES_DIR, example)
withenv("JULIA_DEBUG" => "Literate") do
Literate.markdown(example_filepath, OUTPUT_DIR;
flavor = Literate.DocumenterFlavor(), execute = true)
end
end
end

## Run literater if you update an example manually
# examples = [
# "1D_density_estimation_single_map.jl",
# "1D_density_from_data.jl",
# ]


# for example in examples
# withenv("GITHUB_REPOSITORY" => "FourierFlows/GeophysicalFlowsDocumentation") do
# example_filepath = joinpath(EXAMPLES_DIR, example)
# withenv("JULIA_DEBUG" => "Literate") do
# Literate.markdown(example_filepath, OUTPUT_DIR;
# flavor = Literate.DocumenterFlavor(), execute = true)
# end
# end
# end


makedocs(sitename="SequentialMeasureTransport.jl",
Expand Down

0 comments on commit 33b1d1c

Please sign in to comment.