Skip to content

Commit 75775c8

Browse files
authored
Add support section to docs (#128)
1 parent 574222c commit 75775c8

File tree

5 files changed

+33
-1
lines changed

5 files changed

+33
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensorMPS"
22
uuid = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
33
authors = ["Matthew Fishman <mfishman@flatironinstitute.org>", "Miles Stoudenmire <mstoudenmire@flatironinstitute.org>"]
4-
version = "0.3.12"
4+
version = "0.3.13"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
Finite MPS and MPO methods based on the Julia version of [ITensor](https://www.itensor.org) ([ITensors.jl](https://github.com/ITensor/ITensors.jl)). See the [ITensorMPS.jl documentation](https://itensor.github.io/ITensorMPS.jl) for more details.
1111

12+
## Support
13+
14+
<img src="docs/src/assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo.">
15+
16+
ITensorMPS.jl is supported by the Flatiron Institute, a division of the Simons Foundation.
17+
1218
## News
1319

1420
### ITensorMPS.jl v0.3 release notes

docs/make_index.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
using Literate: Literate
22
using ITensorMPS: ITensorMPS
33

4+
function ccq_logo(content)
5+
include_ccq_logo = """
6+
```@raw html
7+
<img src="assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo.">
8+
```
9+
"""
10+
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
11+
return content
12+
end
13+
414
Literate.markdown(
515
joinpath(pkgdir(ITensorMPS), "examples", "README.jl"),
616
joinpath(pkgdir(ITensorMPS), "docs", "src");
717
flavor=Literate.DocumenterFlavor(),
818
name="index",
19+
postprocess=ccq_logo,
920
)

docs/make_readme.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
using Literate: Literate
22
using ITensorMPS: ITensorMPS
33

4+
function ccq_logo(content)
5+
include_ccq_logo = """
6+
<img src="docs/src/assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo.">
7+
"""
8+
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
9+
return content
10+
end
11+
412
Literate.markdown(
513
joinpath(pkgdir(ITensorMPS), "examples", "README.jl"),
614
joinpath(pkgdir(ITensorMPS));
715
flavor=Literate.CommonMarkFlavor(),
816
name="README",
17+
preprocess=ccq_logo,
918
)

examples/README.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
# [![Aqua](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
99

1010
# Finite MPS and MPO methods based on the Julia version of [ITensor](https://www.itensor.org) ([ITensors.jl](https://github.com/ITensor/ITensors.jl)). See the [ITensorMPS.jl documentation](https://itensor.github.io/ITensorMPS.jl) for more details.
11+
12+
# ## Support
13+
#
14+
# {CCQ_LOGO}
1115
#
16+
# ITensorMPS.jl is supported by the Flatiron Institute, a division of the Simons Foundation.
17+
1218
# ## News
1319
#
1420
# ### ITensorMPS.jl v0.3 release notes

0 commit comments

Comments
 (0)