Skip to content

Commit 4d3a392

Browse files
authored
Merge pull request #362 from OfficeDev/main
[admin] Publish
2 parents d9d0373 + 5c99a4c commit 4d3a392

File tree

2 files changed

+40
-16
lines changed

2 files changed

+40
-16
lines changed

Contributing.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Signing the CLA does not grant you rights to commit to the main repository, but
9292

9393
## Use GitHub, Git, and this repository
9494

95-
**Note:** Most of the information in this section can be found in [GitHub Help] articles. If you're familiar with Git and GitHub, skip to the [Contribute and edit content](#contribute-and-edit-content) section for the specifics of the code/content flow of this repository.
95+
**Note:** Most of the information in this section can be found in [GitHub Help] articles. If you're familiar with Git and GitHub, skip to the [Contribute and edit content](#contribute-and-edit-content) section for the specifics of the code and content flow of this repository.
9696

9797
### To set up your fork of the repository
9898

@@ -101,7 +101,7 @@ Signing the CLA does not grant you rights to commit to the main repository, but
101101
1. Create your own fork of this repository. To do this, at the top of the page, choose the **Fork** button.
102102
1. Copy your fork to your computer. To do this, open Git Bash. At the command prompt enter:
103103

104-
git clone https://github.com/<your user name>/office-scripts-docs-reference.git
104+
git clone https://github.com/<your username>/office-scripts-docs-reference.git
105105

106106
Next, create a reference to the root repository by entering these commands:
107107

@@ -122,7 +122,7 @@ To make the contribution process as seamless as possible, follow these steps.
122122
1. Submit a pull request to the main repository.
123123
1. Delete the branch.
124124

125-
**Important**: Limit each branch to a single concept/article to streamline the work flow and reduce the chance of merge conflicts. Content appropriate for a new branch includes:
125+
**Important**: Limit each branch to a single concept or article to streamline the workflow and reduce the chance of merge conflicts. Content appropriate for a new branch includes:
126126

127127
* A new article.
128128
* Spelling and grammar edits.
@@ -131,17 +131,17 @@ To make the contribution process as seamless as possible, follow these steps.
131131
#### To create a new branch
132132

133133
1. Open Git Bash.
134-
1. At the Git Bash command prompt, type `git pull upstream main:<new branch name>`. This creates a new branch locally that is copied from the latest OfficeDev main branch.
134+
1. At the Git Bash command prompt, type `git pull upstream main:<new branch name>`. This creates a new branch locally that is copied from the latest `OfficeDev/office-scripts-docs-reference` main branch.
135135
1. At the Git Bash command prompt, type `git push origin <new branch name>`. This alerts GitHub to the new branch. You should now see the new branch in your fork of the repository on GitHub.
136136
1. At the Git Bash command prompt, type `git checkout <new branch name>` to switch to your new branch.
137137

138138
#### Add new content or edit existing content
139139

140-
You navigate to the repository on your computer by using File Explorer. The repository files are in `C:\Users\<yourusername>\office-scripts-docs-reference`.
140+
You navigate to the repository on your computer by using File Explorer. The repository files are in `C:\Users\<your username>\office-scripts-docs-reference`.
141141

142142
To edit files, open them in an editor of your choice and modify them. To create a new file, use the editor of your choice and save the new file in the appropriate location in your local copy of the repository. While working, save your work frequently.
143143

144-
The files in `C:\Users\<yourusername>\office-scripts-docs-reference` are a working copy of the new branch that you created in your local repository. Changing anything in this folder doesn't affect the local repository until you commit a change. To commit a change to the local repository, type the following commands in GitBash.
144+
The files in `C:\Users\<your username>\office-scripts-docs-reference` are a working copy of the new branch that you created in your local repository. Changing anything in this folder doesn't affect the local repository until you commit a change. To commit a change to the local repository, type the following commands in Git Bash.
145145

146146
git add .
147147
git commit -v -a -m "<Describe the changes made in this commit>"
@@ -168,11 +168,11 @@ When you're finished with your work and are ready to have it merged into the mai
168168

169169
One of the site administrators will process your pull request. Your pull request will surface on the [OfficeDev/office-scripts-docs-reference](https://github.com/OfficeDev/office-scripts-docs-reference/pulls) site under **Pull requests**. When the pull request is accepted, the issue will be resolved.
170170

171-
#### Create a new branch after merge
171+
#### Create a new branch after the merge
172172

173173
After a branch is successfully merged (that is, your pull request is accepted), don't continue working in that local branch. This can lead to merge conflicts if you submit another pull request. To do another update, create a new local branch from the successfully merged upstream branch, and then delete your initial local branch.
174174

175-
For example, if your local branch X was successfully merged into the OfficeDev/office-scripts-docs-reference main branch and you want to make additional updates to the content that was merged. Create a new local branch, X2, from the OfficeDev/office-scripts-docs-reference main branch. To do this, open GitBash and execute the following commands.
175+
For example, if your local branch X was successfully merged into the OfficeDev/office-scripts-docs-reference main branch and you want to make additional updates to the content that was merged. Create a new local branch, X2, from the OfficeDev/office-scripts-docs-reference main branch. To do this, open Git Bash and execute the following commands.
176176

177177
cd office-scripts-docs-reference
178178
git pull upstream main:X2
@@ -182,7 +182,7 @@ You now have local copies (in a new local branch) of the work that you submitted
182182

183183
git checkout X2
184184

185-
...and verifying the content. (The `checkout` command updates the files in `C:\Users\<yourusername>\office-scripts-docs-reference` to the current state of the X2 branch.) Once you check out the new branch, you can make updates to the content and commit them as usual. However, to avoid working in the merged branch (X) by mistake, it's best to delete it (see the following **Delete a branch** section).
185+
...and verifying the content. (The `checkout` command updates the files in `C:\Users\<your username>\office-scripts-docs-reference` to the current state of the X2 branch.) Once you check out the new branch, you can make updates to the content and commit them as usual. However, to avoid working in the merged branch (X) by mistake, it's best to delete it (see the following **Delete a branch** section).
186186

187187
#### Delete a branch
188188

@@ -192,7 +192,7 @@ Once your changes are successfully merged into the main repository, delete the b
192192

193193
1. In the Git Bash command prompt, type `git checkout main`. This ensures that you aren't in the branch to be deleted (which isn't allowed).
194194
1. Next, at the command prompt, type `git branch -d <branch name>`. This deletes the branch on your computer only if it has been successfully merged to the upstream repository. (You can override this behavior with the `–D` flag, but first be sure you want to do this.)
195-
1. Finally, type `git push origin :<branch name>` at the command prompt (a space before the colon and no space after it). This will delete the branch on your github fork.
195+
1. Finally, type `git push origin :<branch name>` at the command prompt (a space before the colon and no space after it). This will delete the branch on your GitHub fork.
196196

197197
Congratulations, you have successfully contributed to the project!
198198

@@ -206,7 +206,7 @@ Fill out the form at [Join GitHub](https://github.com/join) to open a free GitHu
206206

207207
You will automatically be sent a notice that you need to sign the Contributor's License Agreement (CLA) if your pull request requires one.
208208

209-
As a community member, **you must sign the Contribution License Agreement (CLA) before you can contribute large submissions to this project**. You only need complete and submit the documentation once. Carefully review the document. You may be required to have your employer sign the document.
209+
As a community member, **you must sign the Contribution License Agreement (CLA) before you can contribute large submissions to this project**. You only need to complete and submit the documentation once. Carefully review the document. You may be required to have your employer sign the document.
210210

211211
### What happens with my contributions?
212212

generate-docs/script-inputs/excel.d.ts

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,7 @@ declare namespace ExcelScript {
17341734
calculate(): void;
17351735

17361736
/**
1737-
* Clear range values, format, fill, border, etc.
1737+
* Clear range values and formatting, such as fill and border.
17381738
* @param applyTo Optional. Determines the type of clear action. See `ExcelScript.ClearApplyTo` for details.
17391739
*/
17401740
clear(applyTo?: ClearApplyTo): void;
@@ -1817,6 +1817,16 @@ declare namespace ExcelScript {
18171817
*/
18181818
getColumnsBefore(count?: number): Range;
18191819

1820+
/**
1821+
* Returns a `WorkbookRangeAreas` object that represents the range containing all the dependent cells of a specified range in the same worksheet or across multiple worksheets.
1822+
*/
1823+
getDependents(): WorkbookRangeAreas;
1824+
1825+
/**
1826+
* Returns a `WorkbookRangeAreas` object that represents the range containing all the direct dependent cells of a specified range in the same worksheet or across multiple worksheets.
1827+
*/
1828+
getDirectDependents(): WorkbookRangeAreas;
1829+
18201830
/**
18211831
* Returns a `WorkbookRangeAreas` object that represents the range containing all the direct precedent cells of a specified range in the same worksheet or across multiple worksheets.
18221832
*/
@@ -1886,6 +1896,11 @@ declare namespace ExcelScript {
18861896
*/
18871897
getPivotTables(fullyContained?: boolean): PivotTable[];
18881898

1899+
/**
1900+
* Returns a `WorkbookRangeAreas` object that represents the range containing all the precedent cells of a specified range in the same worksheet or across multiple worksheets.
1901+
*/
1902+
getPrecedents(): WorkbookRangeAreas;
1903+
18891904
/**
18901905
* Returns a range object that is the edge cell of the data region that corresponds to the provided direction. This matches the Ctrl+Arrow key behavior in the Excel on Windows UI.
18911906
* @param direction The direction from the active cell.
@@ -7406,12 +7421,12 @@ declare namespace ExcelScript {
74067421
setCategory(category: string): void;
74077422

74087423
/**
7409-
* The comments of the workbook.
7424+
* The comment field in the metadata of the workbook. These have no connection to comments by users made in the workbook.
74107425
*/
74117426
getComments(): string;
74127427

74137428
/**
7414-
* The comments of the workbook.
7429+
* The comment field in the metadata of the workbook. These have no connection to comments by users made in the workbook.
74157430
*/
74167431
setComments(comments: string): void;
74177432

@@ -10172,6 +10187,12 @@ declare namespace ExcelScript {
1017210187
* The `condition` defines what criteria need to be set in order for the filter to operate.
1017310188
*/
1017410189
interface PivotLabelFilter {
10190+
/**
10191+
* The comparator is the static value to which other values are compared. The type of comparison is defined by the condition.
10192+
* Note: A numeric string is treated as a number when being compared against other numeric strings.
10193+
*/
10194+
comparator?: string;
10195+
1017510196
/**
1017610197
* Specifies the condition for the filter, which defines the necessary filtering criteria.
1017710198
*/
@@ -12798,15 +12819,18 @@ declare namespace ExcelScript {
1279812819
}
1279912820

1280012821
enum ClearApplyTo {
12822+
/**
12823+
* Clears everything in the range.
12824+
*/
1280112825
all,
1280212826

1280312827
/**
12804-
* Clears all formatting for the range.
12828+
* Clears all formatting for the range, leaving values intact.
1280512829
*/
1280612830
formats,
1280712831

1280812832
/**
12809-
* Clears the contents of the range.
12833+
* Clears the contents of the range, leaving formatting intact.
1281012834
*/
1281112835
contents,
1281212836

0 commit comments

Comments
 (0)