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

mst-form-type documentation in markdown as we talked in email #2168

Merged
merged 8 commits into from
Apr 4, 2024

Conversation

sherlockwang
Copy link
Contributor

What does this PR do and why?

If this pull request is approved, it will add a document for a library built on mobx-state-tree.

As Tyler and me discussed via email, I wrote a brief doc for mst-form-type library. Please have a look and feel free to ask any questions.

Thanks.

Steps to validate locally

No code change has been made. So there is no need to validate the code.

@coolsoftwaretyler
Copy link
Collaborator

Thanks @sherlockwang! I will take a look now.

I'll probably make some suggestions, and once we get to a good place, I'll move things around for the actual website. I've got a plan for where to put this.

Copy link
Collaborator

@coolsoftwaretyler coolsoftwaretyler left a comment

Choose a reason for hiding this comment

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

Hey @sherlockwang - this is a great start! Thanks so much for building your library and for writing these docs.

I've made a few suggestions. Some of them are intended to fix spelling and grammar issues. Others are based on my own preferences for writing style.

In addition to those suggestions, I've asked some questions where I think this document could add more detail.

Most importantly, I'd love to get a more detailed problem statement (perhaps an example of how using Ant Design with MST has been challenging in the past), and a more thorough example (you could use the same Ant Design/MST challenge and solve it with your library).

Thanks again for all your time on this. Looking forward to the next draft!

docs/libraries/mst-form-type.md Outdated Show resolved Hide resolved
docs/libraries/mst-form-type.md Outdated Show resolved Hide resolved
docs/libraries/mst-form-type.md Outdated Show resolved Hide resolved
docs/libraries/mst-form-type.md Outdated Show resolved Hide resolved
docs/libraries/mst-form-type.md Outdated Show resolved Hide resolved
docs/libraries/mst-form-type.md Outdated Show resolved Hide resolved
docs/libraries/mst-form-type.md Outdated Show resolved Hide resolved
docs/libraries/mst-form-type.md Outdated Show resolved Hide resolved
docs/libraries/mst-form-type.md Outdated Show resolved Hide resolved
@sherlockwang
Copy link
Contributor Author

sherlockwang commented Mar 18, 2024 via email

@coolsoftwaretyler
Copy link
Collaborator

Hey @sherlockwang - yup, that's exactly what I'm looking for here, for the most part. Don't feel pressure to include more details from npm than feels natural, but I think if you start with a clear example, more of the API will make sense to discuss in detail.

Thanks for all your effort on this, don't worry about the grammar and spelling. I'm always happy to fix that on my end. We are really excited to include your work in the docs!

@sherlockwang
Copy link
Contributor Author

Hi @coolsoftwaretyler ,

Sorry for the delay, this work suppose to be done last week.

I have updated the doc with an comparative example and documetation of all APIs. Please have a look. Let me know if you have any questions.

Thanks and have a nice day!

@coolsoftwaretyler
Copy link
Collaborator

Thanks @sherlockwang! I'll take a look in the coming days.

@coolsoftwaretyler
Copy link
Collaborator

Hey @sherlockwang - this is amazing! The edits are phenomenal.

I went through and:

  1. Relocated the docs to our "recipes" section
  2. Fixed some syntax highlighting in the code fences by changing the typescript designation to tsx
  3. Reworded just a couple of small things (removed a header, removed some asides, fixed on grammar issue I saw)

I'm going to merge this in, then I'll publish to the site. Later today, it should be available at https://mobx-state-tree.js.org/recipes/pre-built-form-types-with-mst-form-type

Thanks so much for your contribution! Please feel free to submit changes, or any other cool stuff you're doing around MST. Really appreciate it.

@coolsoftwaretyler coolsoftwaretyler merged commit edbfc01 into mobxjs:master Apr 4, 2024
1 check passed
coolsoftwaretyler added a commit that referenced this pull request Apr 4, 2024
* Doc: add a breif README.md for mst-form-type

* Doc: update the documentation with an example and apis

* docs: move mst form type recipe to recipes folder

* docs: fix formatting in mst form type intro

* docs: update syntax highlighting with tsx designation

* docs: fix tsx syntax highlighting

* docs: remove notes about frequency of use in library

---------

Co-authored-by: wangjinghan.1991 <wangjinghan.1991@bytedance.com>
Co-authored-by: Tyler Williams <tyler@coolsoftware.dev>
@sherlockwang
Copy link
Contributor Author

sherlockwang commented Apr 7, 2024 via email

coolsoftwaretyler added a commit that referenced this pull request Apr 17, 2024
* Doc: add a breif README.md for mst-form-type

* Doc: update the documentation with an example and apis

* docs: move mst form type recipe to recipes folder

* docs: fix formatting in mst form type intro

* docs: update syntax highlighting with tsx designation

* docs: fix tsx syntax highlighting

* docs: remove notes about frequency of use in library

---------

Co-authored-by: wangjinghan.1991 <wangjinghan.1991@bytedance.com>
Co-authored-by: Tyler Williams <tyler@coolsoftware.dev>
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