diff --git a/README.md b/README.md index 7ace2c2..f5ccb22 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ class RuntimeStylesheets(QMainWindow, QtStyleTools): # self.apply_stylesheet(self.main, 'light_blue.xml') ``` -![](_images/runtime.gif) +![](https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/runtime.gif) ### Integrate stylesheets in a menu @@ -180,7 +180,7 @@ class RuntimeStylesheets(QMainWindow, QtStyleTools): self.add_menu_theme(self.main, self.main.menuStyles) ``` -![](_images/runtime_menu.gif) +![](https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/runtime_menu.gif) ## Create new themes @@ -197,6 +197,6 @@ class RuntimeStylesheets(QMainWindow, QtStyleTools): self.show_dock_theme(self.main) ``` -![](_images/runtime_dock.gif) +![](https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/runtime_dock.gif) A full set of examples are available in the [exmaples directory](https://github.com/UN-GCPDS/qt-material/blob/master/examples/runtime/) diff --git a/docs/fix_readme.py b/docs/fix_readme.py index 78492b2..5545dc0 100644 --- a/docs/fix_readme.py +++ b/docs/fix_readme.py @@ -3,8 +3,6 @@ import os with open('../README.md', 'r') as file: content = file.read() -content = content.replace('_images/dark.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/dark.gif') -content = content.replace('_images/light.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/light.gif') -content = content.replace('_images/theme.gif', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/theme.gif') +content = content.replace('_images/', 'https://github.com/UN-GCPDS/qt-material/raw/master/docs/source/notebooks/_images/') with open('../README.md', 'w') as file: file.write(content)