Skip to content

Commit c74fe97

Browse files
authored
Bump api links to 1.8.4 (#86)
* update version to latest for api links * build * another one * fix typo * typo * fix broken api link * add link checker action
1 parent d6bb143 commit c74fe97

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

.github/workflows/checker.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Link Checker
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
name: Build
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Set up Go 1.17
9+
uses: actions/setup-go@v2
10+
with:
11+
go-version: 1.17
12+
13+
- name: Check out source code
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 2
17+
18+
- name: Install checker tool
19+
run: go install github.com/terakilobyte/checker@latest
20+
21+
- name: Run checker tool
22+
run: git diff --name-only HEAD^..HEAD | tr "\n" "," | xargs checker --changes

snooty.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ intersphinx = [
1313

1414
[constants]
1515
docs-branch = "master" # always set this to the docs branch (i.e. master, 1.7, 1.8, etc.)
16-
version = "v1.8.0" # always set this to the driver branch (i.e. v1.7.0, v1.8.0, etc.)
16+
version = "v1.8.4" # always set this to the driver branch (i.e. v1.7.0, v1.8.0, etc.)
1717
example = "https://raw.githubusercontent.com/mongodb/docs-golang/{+docs-branch+}/source/includes/usage-examples/code-snippets"
1818
api = "https://pkg.go.dev/go.mongodb.org/mongo-driver@{+version+}"

source/fundamentals/crud/write-operations/delete.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ snippet:
3232
:end-before: end insertDocs
3333

3434
.. include:: /includes/fundamentals/automatic-db-coll-creation.rst
35-
35+
3636
Each document contains a rating for a type of tea, which corresponds to
3737
the ``type`` and ``rating`` fields.
3838

@@ -55,7 +55,7 @@ Parameters
5555

5656
The ``DeleteOne()`` and ``DeleteMany()`` functions expect you to pass a
5757
``Context`` type and a ``non-nil`` query filter specifying which
58-
documents to match.
58+
documents to match.
5959

6060
They both optionally take a ``DeleteOptions`` type as a third parameter,
6161
which represents options you can use to configure the delete operation.
@@ -72,12 +72,12 @@ following functions:
7272
* - Function
7373
- Description
7474

75-
* - ``SetHint()``
76-
- | The index to use to scan for documents to delete.
75+
* - ``SetHint()``
76+
- | The index to use to scan for documents to delete.
7777
| Default: ``nil``
7878

7979
* - ``SetCollation()``
80-
- | The type of language collation to use when sorting results.
80+
- | The type of language collation to use when sorting results.
8181
| Default: ``nil``
8282

8383
Return Value
@@ -92,7 +92,7 @@ Example
9292
```````
9393

9494
The following example performs the following with the ``DeleteMany()``
95-
function:
95+
function:
9696

9797
- Matches and deletes documents where the ``rating`` is greater than ``8``
9898
- Specifies the function to use the ``_id`` as the index
@@ -144,5 +144,5 @@ guide, see the following API Documentation:
144144

145145
- `DeleteOne() <{+api+}/mongo#Collection.DeleteOne>`__
146146
- `DeleteMany() <{+api+}/mongo#Collection.DeleteMany>`__
147-
- `DeleteOptions <{+api+}/options#DeleteOptions>`__
147+
- `DeleteOptions <{+api+}/mongo/options#DeleteOptions>`__
148148
- `DeleteResult <{+api+}/mongo#DeleteResult>`__

0 commit comments

Comments
 (0)