Skip to content

Commit 2e36fa9

Browse files
authored
Merge pull request #210 from shuangela/v1.20
Merge pull request #208 from shuangela/DOCSP-46751-change-connect-dup…
2 parents 6e5f3ee + 01d3a88 commit 2e36fa9

File tree

4 files changed

+53
-7
lines changed

4 files changed

+53
-7
lines changed

.github/workflows/vale-tdbx.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,26 @@ jobs:
1212
- name: checkout
1313
uses: actions/checkout@v4
1414

15+
- name: Install docutils
16+
run: sudo apt-get install -y docutils
17+
1518
- id: files
1619
uses: masesgroup/retrieve-changed-files@v2
1720
with:
18-
format: 'csv'
21+
format: "csv"
1922

2023
- name: checkout-latest-rules
2124
uses: actions/checkout@v4
2225
with:
2326
repository: mongodb/mongodb-vale-action
24-
path: './tdbx-vale-rules'
27+
path: "./tdbx-vale-rules"
2528
token: ${{secrets.GITHUB_TOKEN}}
2629

2730
- name: move-files-for-vale-action
2831
run: |
29-
cp tdbx-vale-rules/.vale.ini .vale.ini
30-
mkdir -p .github/styles/
31-
cp -rf tdbx-vale-rules/.github/styles/ .github/
32+
cp tdbx-vale-rules/.vale.ini .vale.ini
33+
mkdir -p .github/styles/
34+
cp -rf tdbx-vale-rules/.github/styles/ .github/
3235
3336
- name: run-vale
3437
uses: errata-ai/vale-action@reviewdog

config/redirects

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,45 @@ symlink: current -> v1.20
77

88
(v1.16-*]: ${prefix}/${version}/tutorial/client-side-encryption/ -> ${base}/${version}/tutorial/encryption/
99
[v1.16]: ${prefix}/${version}/tutorial/encryption/ -> ${base}/${version}/
10+
[v1.20-*]: ${prefix}/${version}/get-started/connect-to-mongodb -> ${base}/${version}/get-started/run-sample-query/
11+
12+
# standardization redirects
13+
14+
# redirects in standardized docs
15+
[v1.20-*]: ${prefix}/${version}/tutorial/install-php-library/ -> ${base}/${version}/get-started/download-and-install/
16+
[v1.20-*]: ${prefix}/${version}/tutorial/connecting/ -> ${base}/${version}/connect/
17+
[v1.20-*]: ${prefix}/${version}/tutorial/server-selection/ -> ${base}/${version}/monitoring/cluster-monitoring/
18+
[v1.20-*]: ${prefix}/${version}/tutorial/crud/ -> ${base}/${version}/read/
19+
[v1.20-*]: ${prefix}/${version}/tutorial/codecs/ -> ${base}/${version}/data-formats/codecs/
20+
[v1.20-*]: ${prefix}/${version}/tutorial/collation/ -> ${base}/${version}/
21+
[v1.20-*]: ${prefix}/${version}/tutorial/commands/ -> ${base}/${version}/run-command/
22+
[v1.20-*]: ${prefix}/${version}/tutorial/custom-types/ -> ${base}/${version}/data-formats/custom-types/
23+
[v1.20-*]: ${prefix}/${version}/tutorial/decimal128/ -> ${base}/${version}/data-formats/decimal128/
24+
[v1.20-*]: ${prefix}/${version}/tutorial/encryption/ -> ${base}/${version}/security/in-use-encryption/
25+
[v1.20-*]: ${prefix}/${version}/tutorial/gridfs/ -> ${base}/${version}/write/gridfs/
26+
[v1.20-*]: ${prefix}/${version}/tutorial/indexes/ -> ${base}/${version}/indexes/
27+
[v1.20-*]: ${prefix}/${version}/tutorial/tailable-cursor/ -> ${base}/${version}/read/cursor/
28+
[v1.20-*]: ${prefix}/${version}/tutorial/example-data/ -> ${base}/${version}/
29+
[v1.20-*]: ${prefix}/${version}/tutorial/modeling-bson-data/ -> ${base}/${version}/data-formats/modeling-bson-data/
30+
[v1.20-*]: ${prefix}/${version}/tutorial/stable-api/ -> ${base}/${version}/stable-api/
31+
[v1.20-*]: ${prefix}/${version}/tutorial/aws-lambda/ -> ${base}/${version}/aws-lambda/
32+
33+
# redirects in old docs
34+
# note: this mapping does not account for all of the new pages
35+
[*-v1.19]: ${prefix}/${version}/get-started/download-and-install/ -> ${base}/${version}/tutorial/install-php-library/
36+
[*-v1.19]: ${prefix}/${version}/connect/ -> ${base}/${version}/tutorial/connecting/
37+
[*-v1.19]: ${prefix}/${version}/monitoring/cluster-monitoring/ -> ${base}/${version}/tutorial/server-selection/
38+
[*-v1.19]: ${prefix}/${version}/read/ -> ${base}/${version}/tutorial/crud/
39+
[*-v1.19]: ${prefix}/${version}/data-formats/codecs/ -> ${base}/${version}/tutorial/codecs/
40+
[*-v1.19]: ${prefix}/${version}/run-command/ -> ${base}/${version}/tutorial/commands/
41+
[*-v1.19]: ${prefix}/${version}/data-formats/custom-types/ -> ${base}/${version}/tutorial/custom-types/
42+
[*-v1.19]: ${prefix}/${version}/data-formats/decimal128/ -> ${base}/${version}/tutorial/decimal128/
43+
[*-v1.19]: ${prefix}/${version}/security/in-use-encryption/ -> ${base}/${version}/tutorial/encryption/
44+
[*-v1.19]: ${prefix}/${version}/write/gridfs/ -> ${base}/${version}/tutorial/gridfs/
45+
[*-v1.19]: ${prefix}/${version}/indexes/ -> ${base}/${version}/tutorial/indexes/
46+
[*-v1.19]: ${prefix}/${version}/read/cursor/ -> ${base}/${version}/tutorial/tailable-cursor/
47+
[*-v1.19]: ${prefix}/${version}/data-formats/modeling-bson-data/ -> ${base}/${version}/tutorial/modeling-bson-data/
48+
[*-v1.19]: ${prefix}/${version}/stable-api/ -> ${base}/${version}/tutorial/stable-api/
49+
[*-v1.19]: ${prefix}/${version}/whats-new/ -> ${base}/${version}/
50+
[*-v1.19]: ${prefix}/${version}/aws-lambda/ -> ${base}/${version}/tutorial/aws-lambda/
51+

source/get-started.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Get Started with the PHP Library
2323
Download & Install </get-started/download-and-install/>
2424
Create a Deployment </get-started/create-a-deployment/>
2525
Create a Connection String </get-started/create-a-connection-string/>
26-
Connect to MongoDB </get-started/connect-to-mongodb/>
26+
Run a Sample Query </get-started/run-sample-query/>
2727
Next Steps </get-started/next-steps/>
2828

2929
Overview

source/get-started/connect-to-mongodb.txt renamed to source/get-started/run-sample-query.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
.. _php-run-sample-query:
12
.. _php-connect-to-mongodb:
23

34
==================
4-
Connect to MongoDB
5+
Run a Sample Query
56
==================
67

78
.. facet::

0 commit comments

Comments
 (0)