This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 435171490 Python docs with dark mode (#1454)
435171490 is described below

commit 43517149055cd8f09e2197fa4e951d2f2dc66582
Author: Debdeep Pal <[email protected]>
AuthorDate: Tue Mar 28 10:49:30 2023 +0530

    Python docs with dark mode (#1454)
    
    * Python docs with dark mode
    
    * Replacing image with white logo
---
 .../docs/img/streampipes-python-dark.png               | Bin 0 -> 116009 bytes
 streampipes-client-python/docs/index.md                |   8 ++------
 streampipes-client-python/mkdocs.yml                   |  13 +++++++++++++
 3 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/streampipes-client-python/docs/img/streampipes-python-dark.png 
b/streampipes-client-python/docs/img/streampipes-python-dark.png
new file mode 100644
index 000000000..727257248
Binary files /dev/null and 
b/streampipes-client-python/docs/img/streampipes-python-dark.png differ
diff --git a/streampipes-client-python/docs/index.md 
b/streampipes-client-python/docs/index.md
index 7f6115a90..727668b2c 100644
--- a/streampipes-client-python/docs/index.md
+++ b/streampipes-client-python/docs/index.md
@@ -16,13 +16,9 @@
   ~
 -->
 
+![StreamPipes Logo with Python](./img/streampipes-python.png#only-light)
+![StreamPipes Logo with Python](./img/streampipes-python-dark.png#only-dark)
 
-<h1 align="center">
-  <br>
-   <img 
src="https://raw.githubusercontent.com/apache/streampipes/dev/streampipes-client-python/docs/img/streampipes-python.png";
-   alt="StreamPipes Logo with Python" title="Apache StreamPipes Logo with 
Python" width="75%"/>
-  <br>
-</h1>
 <h4 align="center"><a 
href="https://github.com/apache/streampipes";>StreamPipes</a> is a self-service 
(Industrial) IoT toolbox to enable non-technical users to connect, analyze and 
explore IoT data streams.</h4>
 
 <br>
diff --git a/streampipes-client-python/mkdocs.yml 
b/streampipes-client-python/mkdocs.yml
index 71af0dea6..bc9988396 100644
--- a/streampipes-client-python/mkdocs.yml
+++ b/streampipes-client-python/mkdocs.yml
@@ -38,6 +38,19 @@ theme:
     - navigation.indexes
     - navigation.tracking
   font: false
+  palette:
+
+    # Palette toggle for light mode
+    - scheme: default
+      toggle:
+        icon: material/brightness-7
+        name: Switch to dark mode
+
+    # Palette toggle for dark mode
+    - scheme: slate
+      toggle:
+        icon: material/brightness-4
+        name: Switch to light mode
 
 extra:
   social:

Reply via email to