Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MingjiaLiu1995 authored Dec 7, 2023
1 parent 9384c1b commit f7a245c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Word-Add-in-AIGC/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ To run the sample on desktop, please follow the detailed steps provided below.
```console
git clone https://github.com/OfficeDev/Word-Scenario-based-Add-in-Samples.git && cd Word-Scenario-based-Add-in-Samples/Word-Add-in-AIGC && npm install
```
3. Open the `Word-Scenario-based-Add-in-Samples\Word-Add-in-AIGC` folder in Visual Studio Code.
4. Run `npm run start` in current directory to start debug.
5. **[Optional]** If you're interested in exploring AIGC, with prerequisites all satisfied, you can fill in the parameters apiKey, endpoint and deployment in `src/taskpane/components/utility/AIData.tsx` to persist the Azure OpenAI account. Or you can skip this step if you just want to try the predefined functionality.

### Sideload the sample add-in on Word Online
The previous steps show you how to run our sample on desktop. As for the Word Online, please follow the following steps to sideload the manifest.xml file on web.
1. Keep the webpack server on to host your sample add-in.
1. Open [Office on the web](https://office.live.com/).
1. Choose **Word**, and then open a new document.
1. On the **Home** tab, in the **Add-ins** section, choose **Add-ins** and click **More Add-ins** on the lower-right corner to open Add-in Store Page.
1. On the **Office Add-ins** dialog, select the **MY ADD-INS** tab, choose **Manage My Add-ins**, and then **Upload My Add-in**.
3. Open the `Word-Scenario-based-Add-in-Samples/Word-Add-in-AIGC` folder in Visual Studio Code. You can see the sample code and make code changes to the sample.
4. Run `npm run start` in current directory to start debug on desktop.
5. To start debug on Word online, please follow the following steps to sideload the manifest.xml file on web.<br>
> 1. Keep the webpack server on to host your sample add-in.
> 1. Open [Office on the web](https://office.live.com/).
> 1. Choose **Word**, and then open a new document.
> 1. On the **Home** tab, in the **Add-ins** section, choose **Add-ins** and click **More Add-ins** on the lower-right corner to open Add-in Store Page.
> 1. On the **Office Add-ins** dialog, select the **MY ADD-INS** tab, choose **Manage My Add-ins**, and then **Upload My Add-in**.
![image](assets/upload-manifest.png)
1. Browse to the add-in `Word-Scenario-based-Add-in-Samples/Word-Add-in-AIGC/manifest.xml` file, and then select **Upload**.
1. Verify that the add-in loaded successfully.
> 1. Browse to the add-in `Word-Scenario-based-Add-in-Samples/Word-Add-in-AIGC/manifest.xml` file, and then select **Upload**.
> 1. Verify that the add-in loaded successfully.
6. **[Optional]** If you're interested in exploring AIGC, with prerequisites all satisfied, you can fill in the parameters apiKey, endpoint and deployment in `src/taskpane/components/utility/AIData.tsx` to persist the Azure OpenAI account. Or you can skip this step if you just want to try the predefined functionality.



## Additional resources
You may explore additional resources at the following links:
Expand Down

0 comments on commit f7a245c

Please sign in to comment.