Skip to content

Commit e19c611

Browse files
authored
[admin] Fix snippet link (#2284)
* Refreshing Office.File sample * Add helper function comment * Put sample link on one line * Fix line spacing * Fix link
1 parent cd48d0d commit e19c611

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/code-snippets/office-snippets.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3960,7 +3960,7 @@ Office.EventType:enum:
39603960
}
39613961
Office.File:interface:
39623962
- |-
3963-
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/excel/26-document/get-file-in-slices-async.yaml
3963+
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/26-document/get-file-in-slices-async.yaml
39643964
39653965
function getCurrentFile() {
39663966
const sliceSize = 4096; /*Bytes*/
@@ -3987,7 +3987,7 @@ Office.File:interface:
39873987
}
39883988
Office.File#getSliceAsync:member(1):
39893989
- |-
3990-
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/excel/26-document/get-file-in-slices-async.yaml
3990+
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/26-document/get-file-in-slices-async.yaml
39913991
39923992
function getFileContents(
39933993
file: Office.File,

docs/docs-ref-autogen/office/office/office.file.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ remarks: >-
1515
```TypeScript
1616
1717
// Link to full sample:
18-
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/excel/26-document/get-file-in-slices-async.yaml
18+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/26-document/get-file-in-slices-async.yaml
1919
2020
2121
function getCurrentFile() {
@@ -154,7 +154,7 @@ methods:
154154
```TypeScript
155155
156156
// Link to full sample:
157-
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/excel/26-document/get-file-in-slices-async.yaml
157+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/26-document/get-file-in-slices-async.yaml
158158
159159
160160
function getFileContents(

docs/docs-ref-autogen/office_release/office/office.file.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ remarks: >-
1515
```TypeScript
1616
1717
// Link to full sample:
18-
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/excel/26-document/get-file-in-slices-async.yaml
18+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/26-document/get-file-in-slices-async.yaml
1919
2020
2121
function getCurrentFile() {
@@ -154,7 +154,7 @@ methods:
154154
```TypeScript
155155
156156
// Link to full sample:
157-
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/excel/26-document/get-file-in-slices-async.yaml
157+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/26-document/get-file-in-slices-async.yaml
158158
159159
160160
function getFileContents(

generate-docs/script-inputs/local-repo-snippets.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5570,7 +5570,7 @@ Office.EventType:enum:
55705570
}
55715571
Office.File:interface:
55725572
- |-
5573-
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/excel/26-document/get-file-in-slices-async.yaml
5573+
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/26-document/get-file-in-slices-async.yaml
55745574
55755575
function getCurrentFile() {
55765576
const sliceSize = 4096; /*Bytes*/
@@ -5597,7 +5597,7 @@ Office.File:interface:
55975597
}
55985598
Office.File#getSliceAsync:member(1):
55995599
- |-
5600-
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/refs/heads/main/samples/excel/26-document/get-file-in-slices-async.yaml
5600+
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/26-document/get-file-in-slices-async.yaml
56015601
56025602
function getFileContents(
56035603
file: Office.File,

0 commit comments

Comments
 (0)