Skip to content

Commit 09f2288

Browse files
authored
Merge pull request #100968 from metanMSFT/metan/fix-immersive-sdk
Update docs to point to v1.0.0 of SDK
2 parents 4f0d98c + 2be1251 commit 09f2288

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

articles/cognitive-services/immersive-reader/quickstart-nodejs.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ yarn add dotenv
4848
## Set up authentication
4949

5050
### Configure authentication values
51-
Create a new file called _.env_ in the root of your project. Paste the following code into it, supplying your custom property values from the Azure AD authentication configuration prerequisite step above.
51+
52+
Create a new file called _.env_ in the root of your project. Paste the following code into it, supplying the values given when you created your Immersive Reader resource.
5253
Do not include quotation marks or the "{" and "}" characters.
5354

5455
```text
@@ -138,7 +139,7 @@ html
138139
// A polyfill for Promise is needed for IE11 support.
139140
script(src='https://cdn.jsdelivr.net/npm/promise-polyfill@8/dist/polyfill.min.js')
140141
141-
script(src='https://contentstorage.onenote.office.net/onenoteltir/immersivereadersdk/immersive-reader-sdk.0.0.3.js')
142+
script(src='https://contentstorage.onenote.office.net/onenoteltir/immersivereadersdk/immersive-reader-sdk.1.0.0.js')
142143
script(src='https://code.jquery.com/jquery-3.3.1.min.js')
143144
144145
style(type="text/css").

articles/cognitive-services/immersive-reader/quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Create a new project in Visual Studio, using the ASP.NET Core Web Application te
4141

4242
### Configure authentication values
4343

44-
Right-click on the project in the _Solution Explorer_ and choose **Manage User Secrets**. This will open a file called _secrets.json_. This file isn't checked into source control. Learn more [here](https://docs.microsoft.com/aspnet/core/security/app-secrets?view=aspnetcore-3.1&tabs=windows). Replace the contents of _secrets.json_ with the following, supplying your custom property values from the Azure AD authentication configuration prerequisite step above.
44+
Right-click on the project in the _Solution Explorer_ and choose **Manage User Secrets**. This will open a file called _secrets.json_. This file isn't checked into source control. Learn more [here](https://docs.microsoft.com/aspnet/core/security/app-secrets?view=aspnetcore-3.1&tabs=windows). Replace the contents of _secrets.json_ with the following, supplying the values given when you created your Immersive Reader resource.
4545

4646
```json
4747
{
@@ -215,7 +215,7 @@ Now, we'll add sample content to this web app. Open _Views\Home\Index.cshtml_ an
215215

216216
Notice that all of the text has a **lang** attribute, which describes the languages of the text. This attribute helps the Immersive Reader provide relevant language and grammar features.
217217

218-
## Add Javascript to handle launching the Immersive Reader
218+
## Add JavaScript to handle launching the Immersive Reader
219219

220220
The Immersive Reader library provides functionality such as launching the Immersive Reader, and rendering Immersive Reader buttons. Learn more [here](https://docs.microsoft.com/azure/cognitive-services/immersive-reader/reference).
221221

@@ -224,7 +224,7 @@ At the bottom of _Views\Home\Index.cshtml_, add the following code:
224224
```html
225225
@section Scripts
226226
{
227-
<script src="https://contentstorage.onenote.office.net/onenoteltir/immersivereadersdk/immersive-reader-sdk.0.0.3.js"></script>
227+
<script src="https://contentstorage.onenote.office.net/onenoteltir/immersivereadersdk/immersive-reader-sdk.1.0.0.js"></script>
228228
<script>
229229
function getTokenAndSubdomainAsync() {
230230
return new Promise(function (resolve, reject) {

articles/cognitive-services/immersive-reader/tutorial-python.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,9 @@ If you don't have an Azure subscription, create a [free account](https://azure.m
3737
* [requests module](https://pypi.org/project/requests/2.7.0/)
3838
* An IDE such as [Visual Studio Code](https://code.visualstudio.com/)
3939

40-
## Acquire an Azure AD authentication token
40+
## Configure authentication credentials
4141

42-
Write a backend API to retrieve an Azure AD authentication token.
43-
44-
You need some values from the Azure AD auth configuration prerequisite step above for this part. Refer back to the text file you saved of that session.
45-
46-
````text
47-
TenantId => Azure subscription TenantId
48-
ClientId => Azure AD ApplicationId
49-
ClientSecret => Azure AD Application Service Principal password
50-
Subdomain => Immersive Reader resource subdomain (resource 'Name' if the resource was created in the Azure portal, or 'CustomSubDomain' option if the resource was created with Azure CLI Powershell. Check the Azure portal for the subdomain on the Endpoint in the resource Overview page, for example, 'https://[SUBDOMAIN].cognitiveservices.azure.com/')
51-
````
52-
53-
Once you have these values, create a new file called _.env_, and paste the following code into it, supplying your custom property values from above. Replace the _.env._ file in the sample app with the newly created file.
42+
Create a new file called _.env_, and paste the following code into it, supplying the values given when you created your Immersive Reader resource.
5443

5544
```text
5645
TENANT_ID={YOUR_TENANT_ID}

0 commit comments

Comments
 (0)