-
Notifications
You must be signed in to change notification settings - Fork 4
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
README update for packages #771
base: main
Are you sure you want to change the base?
Conversation
@@ -1,11 +1,193 @@ | |||
# `@microsoft/msgraph-sdk` | |||
# Microsoft Graph SDK for Typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a copy of the root README
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd advise against keeping a duplicate copy - it increases the likelihood of them getting out of sync. If you do decide to keep it, all the notes I made on the root README apply ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
primary reason is because we will not be able to get the documentation in npm if we do not have a README, @baywet what are your thoughts, should we keep this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasonjoh the problem we're trying to solve is that the package page on npm is empty. https://www.npmjs.com/package/@microsoft/msgraph-sdk-users
We could alternative maintain a template, at a central location and have a script that copies the file before npm pack.
There are some small replacements that are needed but that should be manageable. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@baywet I like the idea of having a template, we can copy the README from the root directory to the package msgraph-sdk
but the rest of the packages can have slightly different README
files, similar to the admin package
@@ -1,11 +1,80 @@ | |||
# `@microsoft/msgraph-sdk-admin` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be duplicated in all the subfolders
README.md
Outdated
@@ -2,7 +2,8 @@ | |||
|
|||
Get started with the Microsoft Graph SDK for Typescript by integrating the [Microsoft Graph API](https://docs.microsoft.com/graph/overview) into your Typescript application! | |||
|
|||
> **Note:** this SDK allows you to build applications using the [v1.0](https://docs.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs. | |||
> **Note:** this SDK allows you to build applications using the [v1.0](https://docs.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs, use our [beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-typescript) instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two suggestions: use the prettier [!NOTE]
syntax, and combine this note with the one right after it. Having two note blocks back-to-back is jarring for the reader and increases likelihood they will skip over it ;)
> **Note:** this SDK allows you to build applications using the [v1.0](https://docs.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs, use our [beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-typescript) instead. | |
> [!NOTE] | |
> The Microsoft Graph Typescript SDK is currently in Pre-Release. This SDK allows you to build applications using the [v1.0](https://learn.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs, use our [beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-typescript) instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also be sure to replace all docs.microsoft.com
with learn.microsoft.com
.
README.md
Outdated
@@ -2,7 +2,8 @@ | |||
|
|||
Get started with the Microsoft Graph SDK for Typescript by integrating the [Microsoft Graph API](https://docs.microsoft.com/graph/overview) into your Typescript application! | |||
|
|||
> **Note:** this SDK allows you to build applications using the [v1.0](https://docs.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs. | |||
> **Note:** this SDK allows you to build applications using the [v1.0](https://docs.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs, use our [beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-typescript) instead. | |||
|
|||
> | |||
> **Note:** the Microsoft Graph Typescript SDK is currently in Pre-Release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> **Note:** the Microsoft Graph Typescript SDK is currently in Pre-Release. |
packages/msgraph-sdk-admin/README.md
Outdated
> TODO: description | ||
Get started with the Microsoft Graph SDK for TypeScript by integrating the [Microsoft Graph API](https://docs.microsoft.com/graph/overview) into your TypeScript application! | ||
|
||
> **Note:** This package is a complementary package that allows you to build applications using the [v1.0](https://docs.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs, use our [beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-typescript) instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, I recommend using the [!NOTE]
syntax for your quote blocks. I'd also avoid using potentially confusing words like complementary
- I think you're saying that it complements the main SDK, is that right? If so, I'd combine this with the note block you have a few lines down and simplify the language. Something like:
> **Note:** This package is a complementary package that allows you to build applications using the [v1.0](https://docs.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs, use our [beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-typescript) instead. | |
> [!NOTE] | |
> This package requires the `@microsoft/msgraph-sdk` package. It allows you to build applications using the [v1.0](https://learn.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs, use our [beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-typescript) instead. |
packages/msgraph-sdk-admin/README.md
Outdated
|
||
For more detailed documentation, see: | ||
|
||
* [Overview](https://docs.microsoft.com/graph/overview) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace docs.microsoft.com
with learn.microsoft.com
- this can be a global find and replace.
@@ -1,11 +1,193 @@ | |||
# `@microsoft/msgraph-sdk` | |||
# Microsoft Graph SDK for Typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd advise against keeping a duplicate copy - it increases the likelihood of them getting out of sync. If you do decide to keep it, all the notes I made on the root README apply ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realized that I never posted my comments...
packages/msgraph-sdk-admin/README.md
Outdated
const requestAdapter = new GraphRequestAdapter(authProvider); | ||
|
||
// Create a GraphServiceClient | ||
const graphServiceClient = createGraphServiceClient(requestAdapter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd have expected this to demonstrate using the admin client instead in case they use this package directly.
Same thing for the import
@@ -1,11 +1,193 @@ | |||
# `@microsoft/msgraph-sdk` | |||
# Microsoft Graph SDK for Typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasonjoh the problem we're trying to solve is that the package page on npm is empty. https://www.npmjs.com/package/@microsoft/msgraph-sdk-users
We could alternative maintain a template, at a central location and have a script that copies the file before npm pack.
There are some small replacements that are needed but that should be manageable. Thoughts?
Closes #485
Draft README update for nested packages