Skip to content

Commit

Permalink
📝 Out-dated python example on main page
Browse files Browse the repository at this point in the history
  • Loading branch information
jorrick committed Jul 31, 2022
1 parent 5fd8ad8 commit bdd1bc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ To use macos-notifications, first install it using pip:

## Example
```python
from functools import partial
from mac_notifications import client

client.create_notification(
title="Meeting starts now!",
subtitle="Team Standup",
icon="/Users/jorrick/zoom.png",
action_button_str="Join zoom meeting",
action_button_callback=partial(join_zoom_meeting, conf_number=zoom_conf_number)
action_callback=partial(join_zoom_meeting, conf_number=zoom_conf_number)
)
```
A simple example. Please look [in the docs](https://jorricks.github.io/macos-notifications/) for more examples like this:
Expand Down
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,22 @@ Installed
## Example

```python
from functools import partial
from mac_notifications import client

client.create_notification(
title="Meeting starts now!",
subtitle="Team Standup",
icon="/Users/jorrick/zoom.png",
action_button_str="Join zoom meeting",
action_button_callback=partial(join_zoom_meeting, conf_number=zoom_conf_number)
action_callback=partial(join_zoom_meeting, conf_number=zoom_conf_number)
)
```
A simple example. Please look [in the docs](https://jorricks.github.io/macos-notifications/) for more examples like this:

<p align="center">
<a href="https://jorricks.github.io/macos-notifications/examples/">
<img src="img/example-run.gif" alt="macos-notifications" width="600px">
<img src="img/example-run.gif" alt="macos-notifications" width="658">
</a>
</p>

Expand Down

0 comments on commit bdd1bc0

Please sign in to comment.