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

[docs] Edit the Pickers Getting started doc #14555

Merged
merged 5 commits into from
Sep 18, 2024

Conversation

samuelsycamore
Copy link
Contributor

  • fix typos and grammar mistakes
  • copyedits for clarity and brevity throughout
  • apply style guide
  • move some content here from Base concepts page - will follow up with another PR for that doc

@samuelsycamore samuelsycamore added the docs Improvements or additions to the documentation label Sep 9, 2024
@@ -1,34 +1,38 @@
---
productId: x-date-pickers
title: Date and Time Picker - Getting started
title: Date and Time Pickers - Getting started
Copy link
Contributor Author

@samuelsycamore samuelsycamore Sep 9, 2024

Choose a reason for hiding this comment

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

noticed this throughout these docs - Pickers should always be plural in this context


## Installation

Using your favorite package manager, install:
Install the base package (which can either be the free Community version or the paid Pro version) along with a required third-party date library.
The Pickers currently support [Day.js](https://day.js.org/), [date-fns](https://date-fns.org/), [Luxon](https://moment.github.io/luxon/#/), and [Moment.js](https://momentjs.com/).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

feels much better to have this info right here rather than needing to visit the base concepts page

:::info
If you need more information about the date library supported by the Date and Time Pickers,
take a look at the [dedicated section](/x/react-date-pickers/base-concepts/#date-library)
:::success
Copy link
Contributor Author

Choose a reason for hiding this comment

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

another one that feels more useful here than in base concepts

Copy link
Member

Choose a reason for hiding this comment

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

@LukasTy related to our topic from yesterday. With all the problems dayJs has regarding timezones and its relatively unmaintained state are we sure we want to recommend that?

@@ -57,70 +63,40 @@ Please note that [react](https://www.npmjs.com/package/react) and [react-dom](ht
},
```

### Style engine
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is this info really necessary? Looks like copypasta from the Material UI docs.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it is actually a copypasta, given that most users probably stick to default—Emotion, there is little need for this section here. 👍


{{"demo": "FirstComponent.js"}}

## What's next?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this feels unnecessary when "what's next" is already baked into the design of the docs at the bottom of the page.

@@ -10,7 +10,6 @@ const packages = {

const peerDependency = {
label: 'Date library',
installationComment: '// Install date library (if not already installed)',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is this really necessary? feels like it just clutters the space

Copy link
Member

Choose a reason for hiding this comment

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

It should be clear enough without it. 👍
Besides, comments are not rendered properly (no different styling). 🙈 🤷

@mui-bot
Copy link

mui-bot commented Sep 9, 2024

Copy link
Contributor

@alelthomas alelthomas left a comment

Choose a reason for hiding this comment

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

Yay! Love seeing movement here. 😄

docs/data/date-pickers/getting-started/getting-started.md Outdated Show resolved Hide resolved
Co-authored-by: Ale <93217218+alelthomas@users.noreply.github.com>
Signed-off-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
docs/data/date-pickers/getting-started/getting-started.md Outdated Show resolved Hide resolved
@@ -57,70 +63,40 @@ Please note that [react](https://www.npmjs.com/package/react) and [react-dom](ht
},
```

### Style engine
Copy link
Member

Choose a reason for hiding this comment

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

Yes, it is actually a copypasta, given that most users probably stick to default—Emotion, there is little need for this section here. 👍

@@ -10,7 +10,6 @@ const packages = {

const peerDependency = {
label: 'Date library',
installationComment: '// Install date library (if not already installed)',
Copy link
Member

Choose a reason for hiding this comment

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

It should be clear enough without it. 👍
Besides, comments are not rendered properly (no different styling). 🙈 🤷

@LukasTy LukasTy added the component: pickers This is the name of the generic UI component, not the React module! label Sep 13, 2024
Co-authored-by: Lukas Tyla <llukas.tyla@gmail.com>
Signed-off-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
docs/data/date-pickers/getting-started/getting-started.md Outdated Show resolved Hide resolved
:::info
If you need more information about the date library supported by the Date and Time Pickers,
take a look at the [dedicated section](/x/react-date-pickers/base-concepts/#date-library)
:::success
Copy link
Member

Choose a reason for hiding this comment

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

@LukasTy related to our topic from yesterday. With all the problems dayJs has regarding timezones and its relatively unmaintained state are we sure we want to recommend that?

Co-authored-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
Signed-off-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
@samuelsycamore samuelsycamore merged commit d1b5457 into mui:master Sep 18, 2024
18 checks passed
@samuelsycamore samuelsycamore deleted the edit-dtp-getting-started branch September 18, 2024 23:34
arthurbalduini pushed a commit to arthurbalduini/mui-x that referenced this pull request Sep 30, 2024
Signed-off-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Signed-off-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
Co-authored-by: Ale <93217218+alelthomas@users.noreply.github.com>
Co-authored-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
Co-authored-by: Lukas Tyla <llukas.tyla@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants