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

refactor: project documentation #140

Merged
merged 10 commits into from Nov 10, 2020
Merged

Conversation

DigiPie
Copy link
Collaborator

@DigiPie DigiPie commented Oct 24, 2020

Resolves #135 .

Changelog:

  1. Create API.md and EXAMPLE.md - extract API section and secondary examples from README.md into these files
  2. Fix broken from() link in API section
  3. Sort API calls according to alphabetical order (mostly, when it made sense)

Let me know what you think @evanshortiss ! You can preview this refactor at https://github.com/DigiPie/env-var/tree/docs/example

@DigiPie DigiPie self-assigned this Oct 24, 2020
@coveralls
Copy link

coveralls commented Oct 24, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling 788af2c on DigiPie:docs/example into a79ca9a on evanshortiss:master.

Copy link
Owner

@evanshortiss evanshortiss 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! Just added some minor changes.

API.md Outdated Show resolved Hide resolved
API.md Outdated Show resolved Hide resolved
API.md Outdated Show resolved Hide resolved
API.md Outdated Show resolved Hide resolved
API.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@@ -265,8 +265,7 @@ String. It's highly unlikely that a variable will not be a String since all
#### asUrlObject()

Verifies that the variable is a valid URL string using the same method as
`asUrlString()`, but instead returns the resulting URL instance. For details
see the [Node.js URL docs](https://nodejs.org/docs/latest/api/url.html#url_class_url).
`asUrlString()`, but instead returns the resulting URL instance. It uses the WHATWG URL constructor.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@evanshortiss did not accept your suggestion for this line because it would have resulted in the text becoming 'For details WHATWG URL constructor.'

Changed it to 'It uses the WHATWG URL constructor.'

Would this work?

Copy link
Owner

Choose a reason for hiding this comment

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

Looks good. I knew I'd mess up at least one suggestion 😄

@evanshortiss evanshortiss merged commit 5c4d25b into evanshortiss:master Nov 10, 2020
@DigiPie DigiPie deleted the docs/example branch November 11, 2020 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add 'example/README.md'
3 participants