Skip to content

Improve documentation #6

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

Merged
merged 12 commits into from
Sep 15, 2020
Merged

Improve documentation #6

merged 12 commits into from
Sep 15, 2020

Conversation

per1234
Copy link
Collaborator

@per1234 per1234 commented Sep 11, 2020

  • Add badges to readme to indicate CI status
  • Correct branch name shown in example snippets in readme
  • Format the documentation to make default input values easy to find
  • Improve formatting of readme
  • Linkify readme text where appropriate to provide easy access to supporting information

Unlike the original repository, this repository uses a default branch named `main` instead of `master`.
Previously, the information on whether an input had a default value -- and if so, what -- was incorporated into the input description.
This meant you had to read the entire description to find this information.

When using other actions, I have regularly had difficulty determining which inputs are required and default input values.
I would like for the users of this action to not have that experience.
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: documentation Related to documentation for the project type: enhancement Proposed improvement labels Sep 11, 2020
Even though the generic form was already provided, people who only use the IDEs will not necessarily be familiar with this notation.
Now that arduino/compile-sketches always generates a sketches report, the conditional in the workflow snippet in the readme is unnecessary. Although a user may decide they want to do advanced configuration of their workflow to control when the artifact is generated, there is no requirement that it only be made on pull_request events, so this only adds unnecessary complexity to the example.

The example should contain only the minimum necessary to effectively demonstrate the basic use of the action.
Although the user should be able to just set the input to `true` and get deltas, it may sometimes be useful to understand exactly how this data is produced in order to fully understand its meaning.
Library authors may define dependencies of the library in the `depends` field of its library.properties metadata file. These dependencies are automatically installed for libraries sourced from Library Manager.
Generated using https://github.com/jonschlinkert/markdown-toc

```
npm install --global markdown-toc
markdown-toc --bullets=- --maxdepth=5 -i ./README.md
```
The likely use for a sketches report workflow artifact is for the `arduino/report-size-deltas` action. Especially now that they are hosted in separate repositories, it makes more sense to provide this example in the documentation of that action alongside the `arduino/report-size-deltas` example that inherently depends on it.
Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thank you @per1234 🐎

@aentinger aentinger merged commit b563173 into arduino:main Sep 15, 2020
@per1234 per1234 deleted the fix-docs branch September 15, 2020 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants