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

Improve documentation #59

Merged
merged 6 commits into from
Apr 26, 2018
Merged

Improve documentation #59

merged 6 commits into from
Apr 26, 2018

Conversation

SamVerschueren
Copy link
Collaborator

This PR is a start to write better documentation in the readme. I'm just writing stuff down as I'm entirely not sure on the format. So feedback is more than welcome :)!

PR is very much WIP (train arrived ;)).

@SamVerschueren
Copy link
Collaborator Author

Added some more docs. Still have write documentation for not and is.

readme.md Outdated
Create a reusable validator.

```ts
import ow from 'ow';
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think we need the import here for each example. It's implied.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I was back and forth on it. Will remove it.

@sindresorhus
Copy link
Owner

Great start!

Can you also run npm run docs to regenerate the docs?

@SamVerschueren
Copy link
Collaborator Author

Done. Anything else you think we are missing besides not and is?

@sindresorhus
Copy link
Owner

I think it will be good when not and is is added.

@SamVerschueren
Copy link
Collaborator Author

Just not sure yet how we should document them, as they are modifiers on every predicate.

@SamVerschueren SamVerschueren changed the title [WIP] Write better documentation Improve documentation Apr 26, 2018
@sindresorhus
Copy link
Owner

Just not sure yet how we should document them, as they are modifiers on every predicate.

What you ended up with is good :)

@sindresorhus sindresorhus merged commit c2323da into master Apr 26, 2018
@sindresorhus sindresorhus deleted the readme branch April 26, 2018 20:08
SamVerschueren added a commit that referenced this pull request Apr 26, 2018
SamVerschueren added a commit that referenced this pull request Apr 26, 2018
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