Skip to content

Commit 44ef953

Browse files
authored
Update logos (#131)
1 parent fa1f9a5 commit 44ef953

File tree

10 files changed

+41
-7
lines changed

10 files changed

+41
-7
lines changed

.github/workflows/VersionCheck.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "Version Check"
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
version-check:
8+
name: "Version Check"
9+
uses: "ITensor/ITensorActions/.github/workflows/VersionCheck.yml@main"
10+
with:
11+
localregistry: https://github.com/ITensor/ITensorRegistry.git

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2024 The Simons Foundation, Inc. - All Rights Reserved.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

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 <[email protected]>", "Miles Stoudenmire <[email protected]>"]
4-
version = "0.3.14"
4+
version = "0.3.15"
55

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

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ Finite MPS and MPO methods based on the Julia version of [ITensor](https://www.i
1111

1212
## Support
1313

14-
<img src="docs/src/assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo.">
14+
<picture>
15+
<source media="(prefers-color-scheme: dark)" width="20%" srcset="docs/src/assets/CCQ-dark.png">
16+
<img alt="Flatiron Center for Computational Quantum Physics logo." width="20%" src="docs/src/assets/CCQ.png">
17+
</picture>
18+
1519

1620
ITensorMPS.jl is supported by the Flatiron Institute, a division of the Simons Foundation.
1721

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ makedocs(;
1616
format=Documenter.HTML(;
1717
canonical="https://itensor.github.io/ITensorMPS.jl",
1818
edit_link="main",
19-
assets=["assets/favicon.ico"],
19+
assets=["assets/favicon.ico", "assets/extras.css"],
2020
prettyurls=false,
2121
),
2222
pages=[

docs/make_index.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ using ITensorMPS: ITensorMPS
44
function ccq_logo(content)
55
include_ccq_logo = """
66
```@raw html
7-
<img src="assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo.">
7+
<img class="display-light-only" src="assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo."/>
8+
<img class="display-dark-only" src="assets/CCQ-dark.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo."/>
89
```
910
"""
1011
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)

docs/make_readme.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ using ITensorMPS: ITensorMPS
33

44
function ccq_logo(content)
55
include_ccq_logo = """
6-
<img src="docs/src/assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo.">
6+
<picture>
7+
<source media="(prefers-color-scheme: dark)" width="20%" srcset="docs/src/assets/CCQ-dark.png">
8+
<img alt="Flatiron Center for Computational Quantum Physics logo." width="20%" src="docs/src/assets/CCQ.png">
9+
</picture>
710
"""
811
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
912
return content
@@ -14,5 +17,5 @@ Literate.markdown(
1417
joinpath(pkgdir(ITensorMPS));
1518
flavor=Literate.CommonMarkFlavor(),
1619
name="README",
17-
preprocess=ccq_logo,
20+
postprocess=ccq_logo,
1821
)

docs/src/assets/CCQ-dark.png

70.1 KB
Loading

docs/src/assets/CCQ.png

81.6 KB
Loading

docs/src/assets/extras.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.display-light-only {
2+
display: block;
3+
}
4+
5+
.display-dark-only {
6+
display: none;
7+
}
8+
9+
.theme--documenter-dark .display-light-only {
10+
display: none;
11+
}
12+
13+
.theme--documenter-dark .display-dark-only {
14+
display: block;
15+
}

0 commit comments

Comments
 (0)