diff --git a/Project.toml b/Project.toml index dfcf6bb..12c97e9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "FunctionImplementations" uuid = "7c7cc465-9c6a-495f-bdd1-f42428e86d0c" -version = "0.4.4" +version = "0.4.5" authors = ["ITensor developers and contributors"] [workspace] diff --git a/docs/make_readme.jl b/docs/make_readme.jl index 53d7968..02eed8b 100644 --- a/docs/make_readme.jl +++ b/docs/make_readme.jl @@ -1,21 +1,17 @@ -using FunctionImplementations: FunctionImplementations 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(FunctionImplementations), "examples", "README.jl"), - joinpath(pkgdir(FunctionImplementations)); - 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