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 ...@@ -27,7 +27,12 @@ end
# generate index by cutting example from readme # generate index by cutting example from readme
include(joinpath(@__DIR__, "src", "process_readme.jl")) 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( makedocs(
modules = [COBREXA], modules = [COBREXA],
......
function process_readme() function process_readme()
quick_start_section = "" quick_start_section = ""
add_lines = false add_lines = false
open(joinpath(@__DIR__, "..","..", "README.md")) do io open(joinpath(@__DIR__, "..", "..", "README.md")) do io
for ln in eachline(io) for ln in eachline(io)
if !add_lines && startswith(ln, "<!--start-->") # switch on if !add_lines && startswith(ln, "<!--start-->") # switch on
add_lines = true add_lines = true
...@@ -9,7 +9,7 @@ function process_readme() ...@@ -9,7 +9,7 @@ function process_readme()
end end
startswith(ln, "<!--end-->") && break startswith(ln, "<!--end-->") && break
if add_lines if add_lines
quick_start_section *= "# "*ln*"\n" quick_start_section *= "# " * ln * "\n"
end end
end end
end end
......
Markdown is supported
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