Skip to content

Commit 42c90da

Browse files
authored
DOCSP-44186 Fixes broken pymongo link (#9925)
* Fixes broken pymongo link * Adds netlify.toml to v4.4 * Adds build script * Copied makefile from master branch * Fix orphan build errors * Removes broken refs
1 parent 338cb58 commit 42c90da

File tree

8 files changed

+55
-23
lines changed

8 files changed

+55
-23
lines changed

Makefile

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,31 @@ examples:
128128
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-java-driver/master/driver-sync/src/examples/documentation/CausalConsistencyExamples.java -o ${DRIVERS_PATH}/CausalConsistencyExamples.java
129129

130130
# node
131-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/change_streams.test.js -o ${DRIVERS_PATH}/node_changestreams.js
132-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/array_filters.test.js -o ${DRIVERS_PATH}/node_array_filters.js
133-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/causal_consistency.test.js -o ${DRIVERS_PATH}/node_causal_consistency.js
134-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/insert.test.js -o ${DRIVERS_PATH}/node_insert.js
135-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/project_fields_from_query_results.test.js -o ${DRIVERS_PATH}/node_project.js
136-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/query.test.js -o ${DRIVERS_PATH}/node_query.js
137-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/query_embedded_documents.test.js -o ${DRIVERS_PATH}/node_query_embedded_documents.js
138-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/query_arrays.test.js -o ${DRIVERS_PATH}/node_query_arrays.js
139-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/query_array_of_documents.test.js -o ${DRIVERS_PATH}/node_query_array_of_documents.js
140-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/query_for_null_fields.test.js -o ${DRIVERS_PATH}/node_query_for_null_fields.js
141-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/remove_documents.test.js -o ${DRIVERS_PATH}/node_remove.js
142-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/transactions.test.js -o ${DRIVERS_PATH}/node_transactions.js
143-
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/functional/examples/update_documents.test.js -o ${DRIVERS_PATH}/node_update.js
131+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/change_streams.test.js -o ${DRIVERS_PATH}/node_changestreams.js
132+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/array_filters.test.js -o ${DRIVERS_PATH}/node_array_filters.js
133+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/causal_consistency.test.js -o ${DRIVERS_PATH}/node_causal_consistency.js
134+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/insert.test.js -o ${DRIVERS_PATH}/node_insert.js
135+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/project_fields_from_query_results.test.js -o ${DRIVERS_PATH}/node_project.js
136+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/query.test.js -o ${DRIVERS_PATH}/node_query.js
137+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/query_embedded_documents.test.js -o ${DRIVERS_PATH}/node_query_embedded_documents.js
138+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/query_arrays.test.js -o ${DRIVERS_PATH}/node_query_arrays.js
139+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/query_array_of_documents.test.js -o ${DRIVERS_PATH}/node_query_array_of_documents.js
140+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/query_for_null_fields.test.js -o ${DRIVERS_PATH}/node_query_for_null_fields.js
141+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/remove_documents.test.js -o ${DRIVERS_PATH}/node_remove.js
142+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/transactions.test.js -o ${DRIVERS_PATH}/node_transactions.js
143+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/main/test/integration/node-specific/examples/update_documents.test.js -o ${DRIVERS_PATH}/node_update.js
144+
curl -SfL https://raw.githubusercontent.com/mongodb/node-mongodb-native/4.0/test/functional/examples/versioned_api.js -o ${DRIVERS_PATH}/node_versioned_api.js
144145

145146
# ruby
146147
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-ruby-driver/master/spec/integration/shell_examples_spec.rb -o ${DRIVERS_PATH}/shell_examples_spec.rb
147148
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-ruby-driver/master/spec/integration/change_stream_examples_spec.rb -o ${DRIVERS_PATH}/change_stream_examples_spec.rb
148149
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-ruby-driver/master/spec/integration/transactions_examples_spec.rb -o ${DRIVERS_PATH}/transactions_examples_spec.rb
149150
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-ruby-driver/master/spec/integration/transactions_api_examples_spec.rb -o ${DRIVERS_PATH}/with_transactions_examples_spec.rb
151+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-ruby-driver/master/spec/integration/versioned_api_examples_spec.rb -o ${DRIVERS_PATH}/versioned_api_examples_spec.rb
152+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-ruby-driver/master/spec/integration/snapshot_query_examples_spec.rb -o ${DRIVERS_PATH}/snapshot_query_examples_spec.rb
153+
154+
# rust
155+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-rust-driver/main/src/test/documentation_examples.rs -o ${DRIVERS_PATH}/mod.rs
150156

151157
# scala
152158
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-scala-driver/master/driver/src/it/scala/org/mongodb/scala/DocumentationExampleSpec.scala -o ${DRIVERS_PATH}/DocumentationExampleSpec.scala
@@ -160,21 +166,25 @@ examples:
160166
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-csharp-driver/master/tests/MongoDB.Driver.Examples/TransactionExamplesForDocs/RetryExample3.cs -o ${DRIVERS_PATH}/TransactionsRetryExample3.cs
161167
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-csharp-driver/master/tests/MongoDB.Driver.Examples/CausalConsistencyExamples.cs -o ${DRIVERS_PATH}/CausalConsistencyExamples.cs
162168
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-csharp-driver/master/tests/MongoDB.Driver.Examples/TransactionExamplesForDocs/WithTransactionExample1.cs -o ${DRIVERS_PATH}/withTxnExample1.cs
169+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-csharp-driver/master/tests/MongoDB.Driver.Examples/StableApiExamples.cs -o ${DRIVERS_PATH}/VersionedApiExamples.cs
163170

164171
# c
165-
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-c-driver/master/src/libmongoc/tests/test-mongoc-sample-commands.c -o ${DRIVERS_PATH}/test-mongoc-sample-commands.c
172+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-c-driver/master/src/libmongoc/tests/test-mongoc-sample-commands.c -o ${DRIVERS_PATH}/test-mongoc-sample-commands.c
166173

167174
# c++
168-
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/src/mongocxx/test/transactions.cpp -o ${DRIVERS_PATH}/cpp-transactions.cpp
169-
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/examples/mongocxx/with_transaction.cpp -o ${DRIVERS_PATH}/cpp-with-transaction.cpp
175+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/src/mongocxx/test/transactions.cpp -o ${DRIVERS_PATH}/cpp-transactions.cpp
176+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/examples/mongocxx/with_transaction.cpp -o ${DRIVERS_PATH}/cpp-with-transaction.cpp
177+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/src/mongocxx/test/versioned_api.cpp -o ${DRIVERS_PATH}/cpp-versioned_api.cpp
178+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/examples/mongocxx/mongodb.com/documentation_examples.cpp -o ${DRIVERS_PATH}/cpp-documentation-examples.cpp
170179

171180
# go
172-
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-go-driver/master/examples/documentation_examples/examples.go -o ${DRIVERS_PATH}/go_examples.go
181+
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-go-driver/master/internal/docexamples/examples.go -o ${DRIVERS_PATH}/go_examples.go
173182

174183
# swift
175-
176184
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-swift-driver/master/Examples/Docs/Sources/AsyncExamples/main.swift -o ${DRIVERS_PATH}/swiftAsync.swift
177185
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-swift-driver/master/Examples/Docs/Sources/SyncExamples/main.swift -o ${DRIVERS_PATH}/swiftSync.swift
178186

187+
# kotlin-coroutine
188+
curl -SfL https://raw.githubusercontent.com/mongodb/docs-kotlin/master/source/examples/ServerManualCodeExamples.kt -o ${DRIVERS_PATH}/kotlin_examples.kt
179189
changelogs:
180-
python changelogs/generatechangelogs.py
190+
python3 changelogs/generatechangelogs.py

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ensures that we always use the latest version of the script
2+
if [ -f build-site.sh ]; then
3+
rm build-site.sh
4+
fi
5+
6+
7+
curl https://raw.githubusercontent.com/mongodb/docs-worker-pool/netlify-poc/scripts/build-site.sh -o build-site.sh
8+
sh build-site.sh

netlify.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[[integrations]]
2+
name = "snooty-cache-plugin"
3+
4+
# Production context: all deploys from the Production branch
5+
# set in your site’s Branches settings in the UI will inherit
6+
# these settings.
7+
[build]
8+
publish = "snooty/public"
9+
command = ". ./build.sh"

source/administration/free-monitoring.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
.. meta::
24
:robots: noindex, nosnippet
35

source/includes/driver-examples/driver-example-query-intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
content: |
2020
This page provides examples of |query_operations| using the
2121
:py:meth:`pymongo.collection.Collection.find` method in the
22-
:api:`PyMongo <pymongo>`
22+
:driver:`PyMongo </pymongo>`
2323
Python driver.
2424

2525
.. include:: /includes/driver-examples/examples-intro.rst

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:template: product-landing
22
:hidefeedback: header
33
:noprevnext:
4+
:orphan:
45

56
================
67
What is MongoDB?

source/reference/command/splitChunk.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
==========
24
splitChunk
35
==========

source/release-notes/3.2.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -919,11 +919,11 @@ MongoDB Tools Enhancements
919919
the dump data over a network device via a pipe. For examples, see
920920

921921
- :ref:`mongodump to an Archive File
922-
<mongodump-example-archive-file>` and :ref:`mongodump an Archive to
923-
Standard Output <mongodump-example-archive-stdout>`
922+
<mongodump-example-archive-file>` and mongodump an Archive to
923+
Standard Output
924924

925925
- :ref:`mongorestore-example-archive-file` and
926-
:ref:`mongorestore-example-archive-stdin`.
926+
Restore a Database from Standard Input.
927927

928928
- :binary:`~bin.mongodump` and :binary:`~bin.mongorestore` add support for
929929
compressed data dumps with a new ``--gzip`` option. This enhancement

0 commit comments

Comments
 (0)