Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare authored Jul 1, 2024
1 parent 27903cb commit aae3a29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ aw-server-rust

- :code:`host` Hostname to start the server on. Currently only :code:`localhost` or :code:`127.0.0.1` are supported.
- :code:`port` Port number to start the server on.
- :code:`cors` Enable CORS (Cross-Origin Resource Sharing) for the server. This is useful if you want to access the server from a different domain than the one it's hosted on.
- :code:`cors` List of allowed origins for CORS (Cross-Origin Resource Sharing). Useful in testing and development to let other origins access the ActivityWatch API, such as aw-webui in development mode on port 27180.

aw-client
---------
Expand Down
8 changes: 4 additions & 4 deletions src/examples/writing-watchers.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Writing your first watcher in python
Writing your first watcher in Python
====================================

Writing watchers for ActivityWatch is pretty easy, all you need is the :code:`aw-client` library.
Expand Down Expand Up @@ -34,11 +34,11 @@ This example will describe how to:

.. literalinclude:: client.py

Writing your first watcher in rust
Writing your first watcher in Rust
==================================

To get started with writing watchers in Rust, you need to add the `aw-client-rust` and `aw-model` crates to your `Cargo.toml` file.
The most upto date versions depend directly on :gh-aw:`aw-server-rust`.
To get started with writing watchers in Rust, you need to add the ``aw-client-rust`` and ``aw-model`` crates to your ``Cargo.toml`` file.
The most up-to-date versions depend directly on :gh-aw:`aw-server-rust`.

.. literalinclude:: Cargo.toml

Expand Down

0 comments on commit aae3a29

Please sign in to comment.