Skip to content

Commit 638ba70

Browse files
authored
Merge branch 'main' into refresh_ubi_docs_part_deux
2 parents ad43515 + 13af62a commit 638ba70

File tree

437 files changed

+24064
-714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

437 files changed

+24064
-714
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @kolchfa-aws @Naarcha-AWS @vagimeli @AMoo-Miki @natebower @dlvenable @stephen-crawford @epugh
1+
* @kolchfa-aws @Naarcha-AWS @AMoo-Miki @natebower @dlvenable @epugh

.github/ISSUE_TEMPLATE/issue_template.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ assignees: ''
1515

1616
**Tell us about your request.** Provide a summary of the request.
1717

18-
***Version:** List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.
18+
**Version:** List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.
1919

2020
**What other resources are available?** Provide links to related issues, POCs, steps for testing, etc.
21-

.github/vale/styles/Vocab/OpenSearch/Products/accept.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Python
8585
PyTorch
8686
Querqy
8787
Query Workbench
88+
RankLib
8889
RCF Summarize
8990
RPM Package Manager
9091
Ruby
@@ -97,4 +98,5 @@ TorchScript
9798
Tribuo
9899
VisBuilder
99100
Winlogbeat
100-
Zstandard
101+
XGBoost
102+
Zstandard

.github/vale/styles/Vocab/OpenSearch/Words/accept.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ p\d{2}
8585
[Pp]erformant
8686
[Pp]laintext
8787
[Pp]luggable
88+
[Pp]reaggregate(s|d)?
89+
[Pp]recompute(s|d)?
8890
[Pp]reconfigure
8991
[Pp]refetch
9092
[Pp]refilter
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lint and Test Jekyll Spec Insert
2+
on:
3+
push:
4+
paths:
5+
- 'spec-insert/**'
6+
pull_request:
7+
paths:
8+
- 'spec-insert/**'
9+
jobs:
10+
lint-and-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: ruby/setup-ruby@v1
15+
with: { ruby-version: 3.3.0 }
16+
- run: bundle install
17+
- working-directory: spec-insert
18+
run: |
19+
bundle exec rubocop
20+
bundle exec rspec

.github/workflows/pr_checklist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
script: |
3131
let assignee = context.payload.pull_request.user.login;
32-
const prOwners = ['Naarcha-AWS', 'kolchfa-aws', 'vagimeli', 'natebower'];
32+
const prOwners = ['Naarcha-AWS', 'kolchfa-aws', 'natebower'];
3333
3434
if (!prOwners.includes(assignee)) {
3535
assignee = 'kolchfa-aws'
@@ -40,4 +40,4 @@ jobs:
4040
owner: context.repo.owner,
4141
repo: context.repo.repo,
4242
assignees: [assignee]
43-
});
43+
});
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Update API Components
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * 0" # Every Sunday at midnight GMT
6+
jobs:
7+
update-api-components:
8+
if: ${{ github.repository == 'opensearch-project/documentation-website' }}
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
fetch-depth: 0
18+
19+
- run: git config --global pull.rebase true
20+
21+
- uses: ruby/setup-ruby@v1
22+
with: { ruby-version: 3.3.0 }
23+
24+
- run: bundle install
25+
26+
- name: Download spec and insert into documentation
27+
run: bundle exec jekyll spec-insert
28+
29+
- name: Get current date
30+
id: date
31+
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
32+
33+
- name: GitHub App token
34+
id: github_app_token
35+
uses: tibdex/github-app-token@v2.1.0
36+
with:
37+
app_id: ${{ secrets.APP_ID }}
38+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
39+
40+
- name: Create pull request
41+
uses: peter-evans/create-pull-request@v6
42+
with:
43+
token: ${{ steps.github_app_token.outputs.token }}
44+
commit-message: "Updated API components to reflect the latest OpenSearch API spec (${{ env.date }})"
45+
title: "[AUTOCUT] Update API components to reflect the latest OpenSearch API spec (${{ env.date }})"
46+
body: |
47+
Update API components to reflect the latest [OpenSearch API spec](https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml).
48+
Date: ${{ env.date }}
49+
branch: update-api-components-${{ env.date }}
50+
base: main
51+
signoff: true
52+
labels: autocut

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

API_STYLE_GUIDE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ The following sections describe the basic API documentation structure. Each sect
3131
Depending on where the documentation appears within a section or subsection, heading levels may be adjusted to fit with other content.
3232

3333
1. Name of API (heading level 2)
34-
1. (Optional) Path and HTTP methods (heading level 3)
35-
1. Path parameters (heading level 3)
36-
1. Query parameters (heading level 3)
37-
1. Request fields (heading level 3)
34+
1. Endpoints (heading level 3)
35+
1. (Optional) Path parameters (heading level 3)
36+
1. (Optional) Query parameters (heading level 3)
37+
1. (Optional) Request fields (heading level 3)
3838
1. Example request (heading level 4)
39-
1. Example response (heading level 4)
40-
1. Response fields (heading level 3)
39+
1. (Optional) Example response (heading level 4)
40+
1. (Optional) Response fields (heading level 3)
4141

4242
## API name
4343

@@ -55,7 +55,7 @@ If applicable, provide any caveats to its usage with a note or tip, as in the fo
5555
"If you use the Security plugin, make sure you have the appropriate permissions."
5656
(To set this point in note-style format, follow the text on the next line with {: .note})
5757

58-
### Path and HTTP methods
58+
### Endpoints
5959

6060
For relatively complex API calls that include path parameters, it's sometimes a good idea to provide an example so that users can visualize how the request is properly formed. This section is optional and includes examples that illustrate how the endpoint and path parameters fit together in the request. The following is an example of this section for the nodes stats API:
6161

CONTRIBUTING.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ Follow these steps to set up your local copy of the repository:
7878

7979
1. Navigate to your cloned repository.
8080

81-
##### Building using locally installed packages
81+
##### Building by using locally installed packages
8282

8383
1. Install [Ruby](https://www.ruby-lang.org/en/) if you don't already have it. We recommend [RVM](https://rvm.io/), but you can use any method you prefer:
8484

8585
```
8686
curl -sSL https://get.rvm.io | bash -s stable
87-
rvm install 3.2.4
87+
rvm install 3.3.2
8888
ruby -v
8989
```
9090

@@ -100,7 +100,7 @@ Follow these steps to set up your local copy of the repository:
100100
bundle install
101101
```
102102

103-
##### Building using containerization
103+
##### Building by using containerization
104104

105105
Assuming you have `docker-compose` installed, run the following command:
106106

@@ -158,6 +158,23 @@ To ensure that our documentation adheres to the [OpenSearch Project Style Guidel
158158

159159
Optionally, you can install the [Vale VSCode](https://github.com/chrischinchilla/vale-vscode) extension, which integrates Vale with Visual Studio Code. By default, only _errors_ and _warnings_ are underlined. To change the minimum alert level to include _suggestions_, go to **Vale VSCode** > **Extension Settings** and select **suggestion** in the **Vale > Vale CLI: Min Alert Level** dropdown list.
160160

161+
## Troubleshooting
162+
163+
This section provides information about potential solutions for known issues.
164+
165+
### Installing Ruby on an Apple silicon machine
166+
167+
If you're having trouble installing Ruby with `rvm` on an Apple silicon machine, it could be because of an OpenSSL version misalignment. To fix this issue, use the following command, replacing `<openssl-version>` with your [desired version](https://github.com/ruby/openssl/blob/master/README.md):
168+
169+
```
170+
# Assumes Brew is installed
171+
curl -sSL https://get.rvm.io | bash -s stable
172+
rvm install 3.2.4 --with-openssl-dir=$(brew --prefix openssl@<openssl-version>)
173+
ruby -v
174+
```
175+
161176
## Getting help
162177

163178
For help with the contribution process, reach out to one of the [points of contact](README.md#points-of-contact).
179+
180+

0 commit comments

Comments
 (0)