Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Update readme with metadata format details #6

Merged
merged 3 commits into from
Sep 10, 2019

Conversation

emkll
Copy link
Contributor

@emkll emkll commented Aug 6, 2019

Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

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

The formatting is defaulting to paragraph flow, making it difficult to read the list of possible error types:

sd-export-docs-generic-errors

Similarly, the specific errors list are folded into one line, without punctuation:

sd-export-specific-errors

Might be worthwhile to use a nested list on the specific types to force each returned message onto its own line. I recommend using grip to view the docs locally, with full formatting.

Content-wise, changes are solid. Once the formatting nits are cleaned up, good to go!

@emkll
Copy link
Contributor Author

emkll commented Sep 4, 2019

Thanks for the review @conorsch and apologies, this one fell off the radar. Your comments should be addressed in eb575b0

@eloquence eloquence added the docs Improvements or additions to documentation label Sep 4, 2019
README.md Outdated

### Devices

For all 5 devices described below, there are three generic errors that apply:
Copy link
Contributor

Choose a reason for hiding this comment

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

One more question, @emkll. The passage here states that "there are three generic errors that apply" but the succeeding list is five elements long. If I understand correctly, all five "generic" messages can be returned by any of the device type integrations (enumerated below).

If that's the case, perhaps we should say "For all device types (described in detail below), the following standard error types can be returned:". Then, below, instead of "The list of devices are as follows" should be changed to "The supported device types for export are as follows, including the possible errors specific to that device type:".

What do you think?

@emkll emkll force-pushed the 280-readme-export-format branch from eb575b0 to 23e16cf Compare September 4, 2019 17:02
README.md Outdated
- `ERROR_PRINT` if there is an error printing


5. `disk`: sends files to disk:
Copy link
Contributor

@sssoleileraaa sssoleileraaa Sep 5, 2019

Choose a reason for hiding this comment

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

it would also be helpful to see the errors that can come up for the export disk method, such as: USB_BAD_PASSPHRASE and ERROR_USB_MOUNT

Copy link
Contributor

Choose a reason for hiding this comment

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

(and ERROR_USB_WRITE)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

great point @creviera, added those error codes and their description

- Fix formatting
- Reword device section
- Add more error codes for `disk` export method
@emkll emkll force-pushed the 280-readme-export-format branch from 23e16cf to b1a12d2 Compare September 5, 2019 15:56
Tiny readability improvements, since we'll be referring back to this
document frequently. Specifically:

  * use in-line for documenting file extension
  * greater indentation in sublists
  * use "definition list" formatting for metadata defns
Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks for acquiescing to the tedious review, @emkll! The docs are quite clear and readable now.

@conorsch conorsch merged commit d06362e into master Sep 10, 2019
@conorsch conorsch deleted the 280-readme-export-format branch September 10, 2019 01:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finalize export metadata format
4 participants