File tree 13 files changed +44
-10
lines changed 13 files changed +44
-10
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
name = " BlockSparseArrays"
2
2
uuid = " 2c9a651f-6452-4ace-a6ac-809f4280fbb4"
3
3
authors = [
" ITensor developers <[email protected] > and contributors" ]
4
- version = " 0.3.7 "
4
+ version = " 0.3.8 "
5
5
6
6
[deps ]
7
7
Adapt = " 79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Original file line number Diff line number Diff line change 1
1
# BlockSparseArrays.jl
2
2
3
- [ ![ Stable] ( https://img.shields.io/badge/docs-stable-blue.svg )] ( https://ITensor .github.io/BlockSparseArrays.jl/stable/ )
4
- [ ![ Dev] ( https://img.shields.io/badge/docs-dev-blue.svg )] ( https://ITensor .github.io/BlockSparseArrays.jl/dev/ )
3
+ [ ![ Stable] ( https://img.shields.io/badge/docs-stable-blue.svg )] ( https://itensor .github.io/BlockSparseArrays.jl/stable/ )
4
+ [ ![ Dev] ( https://img.shields.io/badge/docs-dev-blue.svg )] ( https://itensor .github.io/BlockSparseArrays.jl/dev/ )
5
5
[ ![ Build Status] ( https://github.com/ITensor/BlockSparseArrays.jl/actions/workflows/Tests.yml/badge.svg?branch=main )] ( https://github.com/ITensor/BlockSparseArrays.jl/actions/workflows/Tests.yml?query=branch%3Amain )
6
6
[ ![ Coverage] ( https://codecov.io/gh/ITensor/BlockSparseArrays.jl/branch/main/graph/badge.svg )] ( https://codecov.io/gh/ITensor/BlockSparseArrays.jl )
7
7
[ ![ Code Style: Blue] ( https://img.shields.io/badge/code%20style-blue-4495d1.svg )] ( https://github.com/invenia/BlueStyle )
@@ -11,7 +11,11 @@ A block sparse array type in Julia based on the [`BlockArrays.jl`](https://githu
11
11
12
12
## Support
13
13
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
+
15
19
16
20
BlockSparseArrays.jl is supported by the Flatiron Institute, a division of the Simons Foundation.
17
21
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ makedocs(;
20
20
format= Documenter. HTML (;
21
21
canonical= " https://ITensor.github.io/BlockSparseArrays.jl" ,
22
22
edit_link= " main" ,
23
- assets= [" assets/favicon.ico" ],
23
+ assets= [" assets/favicon.ico" , " assets/extras.css " ],
24
24
),
25
25
pages= [" Home" => " index.md" , " Reference" => " reference.md" ],
26
26
)
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ using BlockSparseArrays: BlockSparseArrays
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 BlockSparseArrays: BlockSparseArrays
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 (BlockSparseArrays));
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
+ }
Original file line number Diff line number Diff line change 1
1
# # BlockSparseArrays.jl
2
2
#
3
- # [](https://ITensor .github.io/BlockSparseArrays.jl/stable/)
4
- # [](https://ITensor .github.io/BlockSparseArrays.jl/dev/)
3
+ # [](https://itensor .github.io/BlockSparseArrays.jl/stable/)
4
+ # [](https://itensor .github.io/BlockSparseArrays.jl/dev/)
5
5
# [](https://github.com/ITensor/BlockSparseArrays.jl/actions/workflows/Tests.yml?query=branch%3Amain)
6
6
# [](https://codecov.io/gh/ITensor/BlockSparseArrays.jl)
7
7
# [](https://github.com/invenia/BlueStyle)
You can’t perform that action at this time.
0 commit comments