diff --git a/Project.toml b/Project.toml index dc47bf8..b71c510 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "BackendSelection" uuid = "680c2d7c-f67a-4cc9-ae9c-da132b1447a5" -version = "0.1.13" +version = "0.1.14" authors = ["ITensor developers and contributors"] [compat] diff --git a/docs/make_readme.jl b/docs/make_readme.jl index 4c22f8f..02eed8b 100644 --- a/docs/make_readme.jl +++ b/docs/make_readme.jl @@ -1,21 +1,17 @@ -using BackendSelection: BackendSelection using Literate: Literate -function ccq_logo(content) - include_ccq_logo = """ - - - Flatiron Center for Computational Quantum Physics logo. - - """ - content = replace(content, "{CCQ_LOGO}" => include_ccq_logo) - return content -end +let inputfile = joinpath(@__DIR__, "..", "examples", "README.jl"), + outputdir = joinpath(@__DIR__, ".."), flavor = Literate.CommonMarkFlavor(), + name = "README" -Literate.markdown( - joinpath(pkgdir(BackendSelection), "examples", "README.jl"), - joinpath(pkgdir(BackendSelection)); - flavor = Literate.CommonMarkFlavor(), - name = "README", - postprocess = ccq_logo -) + function postprocess(content) + include_ccq_logo = """ + + + Flatiron Center for Computational Quantum Physics logo. + + """ + return replace(content, "{CCQ_LOGO}" => include_ccq_logo) + end + Literate.markdown(inputfile, outputdir; flavor, name, postprocess) +end