Unverified Commit c532e48d authored by cylon-x's avatar cylon-x 🤖 Committed by St. Elmo
Browse files

automatic formatting changes

parent 1b913948
......@@ -27,7 +27,12 @@ end
# generate index by cutting example from readme
include(joinpath(@__DIR__, "src", "process_readme.jl"))
Literate.markdown(joinpath(@__DIR__, "src", "index.jl"), joinpath(@__DIR__,"src"); preprocess=from_readme, documenter=false)
Literate.markdown(
joinpath(@__DIR__, "src", "index.jl"),
joinpath(@__DIR__, "src");
preprocess = from_readme,
documenter = false,
)
makedocs(
modules = [COBREXA],
......
function process_readme()
quick_start_section = ""
add_lines = false
open(joinpath(@__DIR__, "..","..", "README.md")) do io
open(joinpath(@__DIR__, "..", "..", "README.md")) do io
for ln in eachline(io)
if !add_lines && startswith(ln, "<!--start-->") # switch on
add_lines = true
......@@ -9,7 +9,7 @@ function process_readme()
end
startswith(ln, "<!--end-->") && break
if add_lines
quick_start_section *= "# "*ln*"\n"
quick_start_section *= "# " * ln * "\n"
end
end
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment