-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #985 from pkbullock/dev
added documentation for polyglots
- Loading branch information
Showing
8 changed files
with
83 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The simplest way to get to the notebooks, is to navigate to the GitHub repository, the following notebooks are available, to use these, you will need to *clone the repository* and open the notebooks and run within Visual Studio Code. To setup the notebooks, please see [Setting up to run the Polyglot Notebooks](../using-the-framework/setting-up-to-use-polyglot-samples.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
docs/using-the-framework/setting-up-to-use-polyglot-samples.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Setting up to run the Polyglot Notebooks | ||
|
||
The Polyglot Notebooks are a great way to get started with the PnP Framework, with runnable samples and you can adjust the code and explore the framework. There are a few things you need to do to get started. | ||
|
||
## Prerequisites | ||
|
||
- [Visual Studio Code](https://code.visualstudio.com/) | ||
- [Install .Net 7 SDK](https://dotnet.microsoft.com/en-us/download) | ||
- [.NET Interactive Notebooks Extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode) | ||
|
||
## Configuring the Notebooks for your tenant | ||
|
||
The Polyglot Notebooks are designed to be run against your tenant, but you will need to configure these settings file to do this. | ||
|
||
### Settings File | ||
|
||
To keep credentials away from the PolyGlot Notebooks, we have setup a seperate file to contain these, copy the `appsettings.sample.json` file to `appsettings.json` and update the values to match your environment. | ||
|
||
```json | ||
{ | ||
"azureAppId":"<app-id>", | ||
"certificatePassword":"<cert-password>", | ||
"certificatePath":"C:\\temp\\PolyGlot\\pnpframework-polyglot.pfx", | ||
"azureTenantName":"contoso.onmicrosoft.com", | ||
"siteUrl" : "https://contoso.sharepoint.com/sites/contoso" | ||
} | ||
|
||
``` | ||
|
||
You will need to create an Azure AD App Registration and generate a certificate, assign permissions to SharePoint within the app. For these notebooks, we have kept access to this for the time being. | ||
|
||
|
||
*There is more coming on how to do this.* | ||
|
||
## Running the Notebooks | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters