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-1270: Improve generic #2143

Merged
merged 6 commits into from
Nov 3, 2023
Merged

Conversation

JessamyT
Copy link
Collaborator

@JessamyT JessamyT commented Nov 2, 2023

Removed third bullet point since I believe that case falls under Advanced MR

@JessamyT JessamyT requested a review from andf-viam November 2, 2023 00:13
@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Nov 2, 2023
@viambot
Copy link
Member

viambot commented Nov 2, 2023

Overall readability score: 55.44 (🟢 +0.01)

File Readability
_index.md 46.34 (🟢 +0.98)
_index.md 48.88 (🟢 +1.4)
View detailed metrics

🟢 - Shows an increase in readability
🔴 - Shows a decrease in readability

File Readability FRE GF ARI CLI DCRS
_index.md 46.34 33.95 11.41 15.9 13.4 7.59
  🟢 +0.98 🔴 -1.22 🔴 -0.28 🟢 +0.3 🟢 +0.64 🟢 +0.1
_index.md 48.88 36.08 10.58 15.2 13.92 7.44
  🟢 +1.4 🟢 +8.05 🔴 -0.05 🟢 +0 🔴 -0.12 🟢 +0.1

Averages:

  Readability FRE GF ARI CLI DCRS
Average 55.44 47.02 10.58 13.06 12.1 7.73
  🟢 +0.01 🟢 +0.02 🟢 +0 🟢 +0 🟢 +0 🟢 +0
View metric targets
Metric Range Ideal score
Flesch Reading Ease 100 (very easy read) to 0 (extremely difficult read) 60
Gunning Fog 6 (very easy read) to 17 (extremely difficult read) 8 or less
Auto. Read. Index 6 (very easy read) to 14 (extremely difficult read) 8 or less
Coleman Liau Index 6 (very easy read) to 17 (extremely difficult read) 8 or less
Dale-Chall Readability 4.9 (very easy read) to 9.9 (extremely difficult read) 6.9 or less

@@ -14,6 +14,8 @@ no_list: true

The _generic_ component {{< glossary_tooltip term_id="subtype" text="subtype" >}} is for custom components that are incompatible with any of the other component APIs.

For example, if you have an LED display, it does not make sense to implement it as an arm, camera, or any other existing component subtype because an LED display does not have joints or capture images.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@andf-viam can you review? I'm not sure my sentence is better but I'd like to avoid "it does not make sense", it just feels like it could sound condescending

Suggested change
For example, if you have an LED display, it does not make sense to implement it as an arm, camera, or any other existing component subtype because an LED display does not have joints or capture images.
For example, if you have an LED display, the APIs of other component types, such as arm, camera, and so on, do not fit since the APIs assume that the component has properties, such as having joints or the ability to capture images, that an LED display does not have.

Copy link
Contributor

@andf-viam andf-viam left a comment

Choose a reason for hiding this comment

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

LGTM with some language suggestions. Thank you!

docs/components/generic/_index.md Outdated Show resolved Hide resolved
1. Package your modular resource or modular resources as a {{< glossary_tooltip term_id="module" text="module" >}} and [upload the module to the Viam registry](/modular-resources/upload/) to make it available for deployment to robots.
You can upload _private_ modules for your [organization](/manage/fleet/organizations/) or _public_ modules.
1. Once you have uploaded your module to the registry, you can [deploy and configure the module](/modular-resources/configure/) from [the Viam app](https://app.viam.com/).
You can test your added resource using the [**Control** tab](/manage/fleet/#remote-control) and [program](/program/) it with Viam's Go or Python SDKs.

### Unique cases
Copy link
Contributor

Choose a reason for hiding this comment

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

This header works for me, thanks!

docs/modular-resources/_index.md Outdated Show resolved Hide resolved
@viambot
Copy link
Member

viambot commented Nov 3, 2023

You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/2143/public

@npentrel npentrel merged commit d0daf2a into viamrobotics:main Nov 3, 2023
10 checks passed
@JessamyT JessamyT deleted the 1270generic branch June 28, 2024 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to build This pull request is marked safe to build from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants