Skip to content

Commit

Permalink
Merge pull request #27 from MSDLLCpapers/main
Browse files Browse the repository at this point in the history
merge changes in main to release_docs
  • Loading branch information
xuyuting authored Aug 15, 2024
2 parents ea6ae06 + 8dd3ca5 commit 478fb34
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,7 @@ obsidian
ReadMe
-->


<!---
Use JS to dynamically change the linked image based on the light/dark theme
--->
<script type="text/javascript">
var observer = new MutationObserver(function(mutations) {
const dark = document.documentElement.dataset.theme == 'dark';
document.getElementsByClassName('mainlogo')[0].src = dark ? 'https://github.com/MSDLLCpapers/obsidian/blob/main/docs/_static/obsidian_logo_dark.svg?raw=true' : "https://github.com/MSDLLCpapers/obsidian/blob/main/docs/_static/obsidian_logo.svg?raw=true";
})
observer.observe(document.documentElement, {attributes: true, attributeFilter: ['data-theme']});
</script>
<link rel="preload" href="_static/obsidian_logo_dark.svg" as="image">

<div align = "center">
<img src="https://github.com/MSDLLCpapers/obsidian/blob/main/docs/_static/obsidian_logo.svg?raw=true" class="mainlogo dark-light" width="100" alt = "obsidian logo">
</div>
Expand Down Expand Up @@ -149,3 +137,13 @@ See [CONTRIBUTING](https://github.com/MSDLLCpapers/obsidian/blob/main/CONTRIBUTI

## License
__obsidian__ is licensed by the [GPLv3 license](https://github.com/MSDLLCpapers/obsidian/blob/main/LICENSE).

<details><summary>JavaScript for ReadMe dark mode</summary>
<script type="text/javascript" class="hidden">
var observer = new MutationObserver(function(mutations) {
const dark = document.documentElement.dataset.theme == 'dark';
document.getElementsByClassName('mainlogo')[0].src = dark ? 'https://github.com/MSDLLCpapers/obsidian/blob/main/docs/_static/obsidian_logo_dark.svg?raw=true' : "https://github.com/MSDLLCpapers/obsidian/blob/main/docs/_static/obsidian_logo.svg?raw=true";
})
observer.observe(document.documentElement, {attributes: true, attributeFilter: ['data-theme']});
</script>
</details>

0 comments on commit 478fb34

Please sign in to comment.