Skip to content

Commit

Permalink
Add dmf-utils logo
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomm committed Aug 19, 2024
1 parent 8021988 commit ec0a7ca
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,5 @@ cython_debug/
autosummary/

# Include DMF env module
!dmf/env/
!dmf/env/
!docs/assets/*.svg
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@

# DMF Utils
<p align="center">
<a href="https://github.com/memory-formation/dmf-utils">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./docs/assets/dmf-utils-dark.svg">
<img alt="dmf-utils" src="./docs/assets/dmf-utils.svg">
</picture>
</a>
</p>

-------

[![PyPI version](https://badge.fury.io/py/dmf-utils.svg)](https://pypi.org/project/dmf-utils/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dmf-utils)
Expand Down
1 change: 1 addition & 0 deletions docs/assets/dmf-utils-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/dmf-utils-inline-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/dmf-utils-inline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/dmf-utils.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
'pillow': ('https://pillow.readthedocs.io/en/stable/', None),
'torch': ('https://pytorch.org/docs/stable/', None),
'sklearn': ('https://scikit-learn.org/stable/', None),
'h5py': ('http://docs.h5py.org/en/stable/', None),
'joblib': ('https://joblib.readthedocs.io/en/latest/', None),
}
autodoc_default_options = {"members": True, "inherited-members": True, "show-inheritance": True}

Expand All @@ -64,7 +62,9 @@

html_theme = "pydata_sphinx_theme"
html_favicon = "https://brainvitge.org/website/wp-content/themes/brainvitge/favicon.png"
html_logo = "https://raw.githubusercontent.com/memory-formation/.github/main/logos/brainvitge.png"
#html_logo = "https://raw.githubusercontent.com/memory-formation/.github/main/logos/brainvitge.png"
html_logo = "assets/dmf-utils-inline.svg"
html_logo_dark = "assets/dmf-utils-inline-dark.svg"
html_theme_options = {
"github_url": "https://github.com/memory-formation/dmf-utils",
# "navbar_start": ["navbar-logo"],
Expand All @@ -84,6 +84,10 @@
"type": "url",
},
],
"logo": {
"image_light": html_logo,
"image_dark": html_logo_dark,
},
}
html_context = {
"github_user": "memory-formation",
Expand Down
14 changes: 12 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
Welcome to DMF Utils's documentation!
=====================================


.. image:: ./assets/dmf-utils.svg
:alt: dmf-utils
:target: https://github.com/memory-formation/dmf-utils/
:class: only-light

.. image:: ./assets/dmf-utils-dark.svg
:alt: dmf-utils
:target: https://github.com/memory-formation/dmf-utils/
:class: only-dark


.. image:: https://badge.fury.io/py/dmf-utils.svg
:target: https://pypi.org/project/dmf-utils/
Expand Down

0 comments on commit ec0a7ca

Please sign in to comment.