Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/VersionCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Version Check"

on:
pull_request:

jobs:
version-check:
name: "Version Check"
uses: "ITensor/ITensorActions/.github/workflows/VersionCheck.yml@main"
with:
localregistry: https://github.com/ITensor/ITensorRegistry.git
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

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

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensorMPS"
uuid = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
authors = ["Matthew Fishman <[email protected]>", "Miles Stoudenmire <[email protected]>"]
version = "0.3.14"
version = "0.3.15"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ Finite MPS and MPO methods based on the Julia version of [ITensor](https://www.i

## Support

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


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

Expand Down
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ makedocs(;
format=Documenter.HTML(;
canonical="https://itensor.github.io/ITensorMPS.jl",
edit_link="main",
assets=["assets/favicon.ico"],
assets=["assets/favicon.ico", "assets/extras.css"],
prettyurls=false,
),
pages=[
Expand Down
3 changes: 2 additions & 1 deletion docs/make_index.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ using ITensorMPS: ITensorMPS
function ccq_logo(content)
include_ccq_logo = """
```@raw html
<img src="assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo.">
<img class="display-light-only" src="assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo."/>
<img class="display-dark-only" src="assets/CCQ-dark.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo."/>
```
"""
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
Expand Down
7 changes: 5 additions & 2 deletions docs/make_readme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ using ITensorMPS: ITensorMPS

function ccq_logo(content)
include_ccq_logo = """
<img src="docs/src/assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo.">
<picture>
<source media="(prefers-color-scheme: dark)" width="20%" srcset="docs/src/assets/CCQ-dark.png">
<img alt="Flatiron Center for Computational Quantum Physics logo." width="20%" src="docs/src/assets/CCQ.png">
</picture>
"""
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
return content
Expand All @@ -14,5 +17,5 @@ Literate.markdown(
joinpath(pkgdir(ITensorMPS));
flavor=Literate.CommonMarkFlavor(),
name="README",
preprocess=ccq_logo,
postprocess=ccq_logo,
)
Binary file added docs/src/assets/CCQ-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/assets/CCQ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/src/assets/extras.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.display-light-only {
display: block;
}

.display-dark-only {
display: none;
}

.theme--documenter-dark .display-light-only {
display: none;
}

.theme--documenter-dark .display-dark-only {
display: block;
}
Loading