Skip to content

Commit

Permalink
Removed javascript, fixed dark mode logo reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
kstone40 committed Aug 19, 2024
1 parent caa6ea6 commit e89140b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
9 changes: 8 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,12 @@

stubs/reference

.. raw:: html

<div align = "center">
<img src="https://github.com/MSDLLCpapers/obsidian/blob/main/docs/_static/obsidian_logo_dark.svg?raw=true" class="only-dark" width="100" alt = "obsidian logo">
</div>

.. include:: ../readme.md
:parser: myst_parser.sphinx_
:parser: myst_parser.sphinx_

15 changes: 2 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ obsidian
ReadMe
-->

<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">
<img src="https://github.com/MSDLLCpapers/obsidian/blob/main/docs/_static/obsidian_logo.svg?raw=true" class="only-light" width="100" alt = "obsidian logo">
</div>


Expand Down Expand Up @@ -136,14 +135,4 @@ See [CONTRIBUTING](https://github.com/MSDLLCpapers/obsidian/blob/main/CONTRIBUTI
- Kobi Felton (Merck & Co., Inc.)

## 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>
__obsidian__ is licensed by the [GPLv3 license](https://github.com/MSDLLCpapers/obsidian/blob/main/LICENSE).

0 comments on commit e89140b

Please sign in to comment.