Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: misc improved docs, including rust watcher example #132

Merged
merged 8 commits into from
Jul 1, 2024

Conversation

brayo-pip
Copy link
Member

@brayo-pip brayo-pip commented Jun 26, 2024

🚀 This description was created by Ellipsis for commit 27903cb

Summary:

Updated documentation with new Rust examples, fixed Python example, and added configuration details for aw-server-rust.

Key points:

  • Updated src/configuration.rst to include host, port, and cors options for aw-server-rust.
  • Added src/examples/cargo.toml for Rust client dependencies.
  • Modified src/examples/client.py to fix create_bucket function call.
  • Added src/examples/client.rs with a detailed Rust client example.
  • Added src/examples/minimal_client.rs with a minimal Rust client example.
  • Updated src/examples/writing-watchers.rst to include Rust examples for writing watchers.
  • Removed outdated LastFM importer reference from src/importers.rst.
  • Added aw-watcher-lastfm to media watchers in src/watchers.rst.

Generated with ❤️ by ellipsis.dev

@brayo-pip brayo-pip marked this pull request as ready for review June 27, 2024 09:49
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 27903cb in 48 seconds

More details
  • Looked at 298 lines of code in 8 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. src/examples/client.rs:19
  • Draft comment:
    The hostname field in the Bucket struct is set to an empty string. This might be incorrect or unintended. Typically, the hostname should be set to a meaningful value.
  • Reason this comment was not posted:
    Confidence of 30% on close inspection, compared to threshold of 50%.
2. src/examples/minimal_client.rs:18
  • Draft comment:
    The hostname field in the Bucket struct is set to an empty string. This might be incorrect or unintended. Typically, the hostname should be set to a meaningful value.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_YkJfdVXnz7mWIYvU


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

edition = "2021"

[dependencies]
aw-client-rust = { git = "https://github.com/ActivityWatch/aw-server-rust.git", branch = "master" }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on the master branch of a git repository for dependencies can lead to unstable builds. Consider using specific versions or tags to ensure stability.

Copy link
Member

@ErikBjare ErikBjare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Applying some changes and merging.

src/examples/writing-watchers.rst Outdated Show resolved Hide resolved
src/examples/writing-watchers.rst Outdated Show resolved Hide resolved
src/configuration.rst Outdated Show resolved Hide resolved
src/examples/writing-watchers.rst Outdated Show resolved Hide resolved
src/examples/writing-watchers.rst Outdated Show resolved Hide resolved
@ErikBjare ErikBjare changed the title Minor updates to docs docs: misc improved docs, including rust watcher example Jul 1, 2024
@ErikBjare ErikBjare merged commit 5dac898 into ActivityWatch:master Jul 1, 2024
1 check passed
@brayo-pip
Copy link
Member Author

@ErikBjare the syntax highlighting is not working for the rust examples, I was going to investigate it later. But I can include it in the next PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants