File tree Expand file tree Collapse file tree 7 files changed +28
-5
lines changed Expand file tree Collapse file tree 7 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ and [ITensorMPS.jl](https://docs.itensor.org/ITensorMPS).
7
7
8
8
## Support
9
9
10
- <img src =" docs/src/assets/CCQ.png " width =" 20% " alt =" Flatiron Center for Computational Quantum Physics logo. " >
10
+ <picture >
11
+ <source media =" (prefers-color-scheme: dark) " width =" 20% " srcset =" docs/src/assets/CCQ-dark.png " >
12
+ <img alt =" Flatiron Center for Computational Quantum Physics logo. " width =" 20% " src =" docs/src/assets/CCQ.png " >
13
+ </picture >
14
+
11
15
12
16
ITensor is supported by the Flatiron Institute, a division of the Simons Foundation.
13
17
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Documenter.makedocs(;
23
23
sitename= " ITensor ecosystem docs" ,
24
24
modules= [ITensorDocs],
25
25
warnonly= true ,
26
- format= Documenter. HTML (; assets= [" assets/favicon.ico" ]),
26
+ format= Documenter. HTML (; assets= [" assets/favicon.ico" , " assets/extras.css " ]),
27
27
pages= [" index.md" ],
28
28
)
29
29
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ using ITensorDocs: ITensorDocs
4
4
function ccq_logo (content)
5
5
include_ccq_logo = """
6
6
```@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."/>
8
9
```
9
10
"""
10
11
content = replace (content, " {CCQ_LOGO}" => include_ccq_logo)
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ using ITensorDocs: ITensorDocs
3
3
4
4
function ccq_logo (content)
5
5
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>
7
10
"""
8
11
content = replace (content, " {CCQ_LOGO}" => include_ccq_logo)
9
12
return content
@@ -14,5 +17,5 @@ Literate.markdown(
14
17
joinpath (pkgdir (ITensorDocs));
15
18
flavor= Literate. CommonMarkFlavor (),
16
19
name= " README" ,
17
- preprocess = ccq_logo,
20
+ postprocess = ccq_logo,
18
21
)
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments