Skip to content

Commit 573d178

Browse files
biniona-mongodbschmalliso
authored andcommitted
(DOCSP-19478) Versioned GitHub Links (#220)
1 parent 5521a48 commit 573d178

File tree

12 files changed

+28
-27
lines changed

12 files changed

+28
-27
lines changed

snooty.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ avro = "Apache Avro"
1212
avro-short = "Avro"
1313
kafka-connect = "Confluent Kafka Connect"
1414
connector_version="1.6"
15+
connector_minor_version="1"
1516
connector_driver_version="4.3"
17+
connector_version_github_tag="r{+connector_version+}.{+connector_minor_version+}"
1618
sink-connector="MongoDB Kafka sink connector"
1719
source-connector="MongoDB Kafka source connector"
1820
connector_driver_url_base="https://docs.mongodb.com/drivers/java/sync/v{+connector_driver_version+}/"

source/includes/fundamentals/cdc/debezium.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CDC events from each of the preceding datastores:
2828
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.debezium.mongodb.MongoDbHandler
2929
3030
To view the source code for the Debezium CDC handler, see
31-
:github:`the {+mkc+} source code </mongodb/mongo-kafka/tree/master/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium>`.
31+
:github:`the {+mkc+} source code </mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium>`.
3232

3333
.. tab::
3434
:tabid: Postgres
@@ -47,7 +47,7 @@ CDC events from each of the preceding datastores:
4747
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.debezium.rdbms.postgres.PostgresHandler
4848
4949
To view the source code for the Debezium CDC handler, see
50-
:github:`the {+mkc+} source code <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/rdbms/postgres/PostgresHandler.java>`.
50+
:github:`the {+mkc+} source code <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/rdbms/postgres/PostgresHandler.java>`.
5151

5252
.. tab::
5353
:tabid: MySQL
@@ -66,12 +66,12 @@ CDC events from each of the preceding datastores:
6666
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.debezium.rdbms.mysql.MysqlHandler
6767
6868
To view the source code for the Debezium CDC handler, see
69-
:github:`the {+mkc+} source code <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/rdbms/mysql/MysqlHandler.java>`.
69+
:github:`the {+mkc+} source code <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/rdbms/mysql/MysqlHandler.java>`.
7070

7171
.. note:: Customize the Debezium CDC Handler
7272

7373
If the Debezium CDC handler is unable to replicate CDC events
7474
from your datastore, you can customize the handler by extending the
75-
:github:`DebeziumCdcHandler <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/DebeziumCdcHandler.java>`
75+
:github:`DebeziumCdcHandler <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/DebeziumCdcHandler.java>`
7676
class. For more information on custom CDC handlers, see the
7777
:ref:`Create your Own CDC Handler section <cdc-create-your-own>` of this guide.

source/includes/fundamentals/cdc/mongodb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ MongoDB change event documents:
1414
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.mongodb.ChangeStreamHandler
1515
1616
To view the source code for the MongoDB CDC handler, see
17-
:github:`the {+mkc+} source code <mongodb/mongo-kafka/tree/master/src/main/java/com/mongodb/kafka/connect/sink/cdc/mongodb>`.
17+
:github:`the {+mkc+} source code <mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/mongodb>`.

source/includes/fundamentals/cdc/qlik.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ Qlik Replicate CDC events:
2121
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.qlik.rdbms.RdbmsHandler
2222
2323
To view the source code for the Qlik Replicate CDC handler, see
24-
:github:`the {+mkc+} source code </mongodb/mongo-kafka/tree/master/src/main/java/com/mongodb/kafka/connect/sink/cdc/qlik/rdbms/RdbmsHandler.java>`.
24+
:github:`the {+mkc+} source code </mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/qlik/rdbms/RdbmsHandler.java>`.
2525

2626
.. note:: Customize the Qlik Replicate CDC Handler
2727

2828
If the Qlik Replicate CDC handler is unable to replicate CDC events
2929
from your datastore, you can customize the handler by extending the
30-
:github:`QlikCdcHandler <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/cdc/qlik/QlikCdcHandler.java>`
30+
:github:`QlikCdcHandler <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/qlik/QlikCdcHandler.java>`
3131
class. For more information on custom CDC handlers, see the
3232
:ref:`Create your Own CDC Handler section <cdc-create-your-own>` of this guide.

source/migrate-from-kafka-connect-mongodb.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ connector deployment:
6666
MongoDB Kafka connector, the logic from that class is split into the
6767
following classes:
6868

69-
- :github:`MongoSinkConfig <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/MongoSinkConfig.java>`
70-
- :github:`MongoSinkTopicConfig <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/MongoSinkTopicConfig.java>`
69+
- :github:`MongoSinkConfig <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/MongoSinkConfig.java>`
70+
- :github:`MongoSinkTopicConfig <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/MongoSinkTopicConfig.java>`
7171

7272

7373
Update Post Processor Subclasses
@@ -76,5 +76,4 @@ Update Post Processor Subclasses
7676
If you have classes that subclass a post processor in your Kafka Connect
7777
connector deployment, update methods that override ones in the Kafka Connect
7878
``PostProcessor`` class to match the method signatures of the MongoDB Kafka
79-
connector :github:`PostProcessor class <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/processor/PostProcessor.java>`.
80-
79+
connector :github:`PostProcessor class <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/processor/PostProcessor.java>`.

source/sink-connector/configuration-properties.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ including essential {+kafka-connect+} settings and {+mkc+}-specific
2020
settings.
2121

2222
For an example sink connector configuration file, see
23-
`MongoSinkConnector.properties
24-
<https://github.com/mongodb/mongo-kafka/blob/master/config/MongoSinkConnector.properties>`__.
23+
:github:`MongoSinkConnector.properties <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/config/MongoSinkConnector.properties>`.
2524

2625
.. _sink-settings:
2726

source/sink-connector/fundamentals/change-data-capture.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ If none of the prebuilt CDC handlers fit your use case, you can create your own.
9090
Your custom CDC handler is a Java class that implements the ``CdcHandler`` interface.
9191

9292
To learn more, see the
93-
:github:`source code for the CdcHandler interface <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/cdc/CdcHandler.java>`.
93+
:github:`source code for the CdcHandler interface <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/CdcHandler.java>`.
9494

9595
To view examples of CDC handler implementations, see
96-
:github:`the source code for the prebuilt CDC handlers <mongodb/mongo-kafka/tree/master/src/main/java/com/mongodb/kafka/connect/sink/cdc>`.
96+
:github:`the source code for the prebuilt CDC handlers <mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc>`.
9797

9898
How to Use Your CDC Handler
9999
~~~~~~~~~~~~~~~~~~~~~~~~~~~

source/sink-connector/fundamentals/post-processors.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Post processors perform data modification tasks such as generating
5151
the document ``_id`` field, projecting message key or value fields, and
5252
renaming fields. You can use the prebuilt post processors included in the
5353
connector, or you can implement your own by extending the
54-
`PostProcessor <https://github.com/mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/processor/PostProcessor.java>`_
54+
:github:`PostProcessor <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/processor/PostProcessor.java>`
5555
class.
5656

5757
.. _sink-post-processors-specify:
@@ -323,7 +323,8 @@ Create a Custom Document Id Strategy
323323
If the built-in document id adder strategies do not cover your use case,
324324
you can define a custom document id strategy by following the steps below:
325325

326-
1. Create a Java class that implements the interface `IdStrategy <https://github.com/mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/processor/id/strategy/IdStrategy.java>`__
326+
1. Create a Java class that implements the interface
327+
:github:`IdStrategy <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/processor/id/strategy/IdStrategy.java>`
327328
and contains your custom configuration logic.
328329

329330
#. Compile the class to a JAR file.
@@ -343,7 +344,8 @@ you can define a custom document id strategy by following the steps below:
343344
if you can guarantee the fields that form the document id are unique.
344345

345346
For example implementations of the ``IdStrategy`` interface, see the
346-
source code directory that contains `id strategy implementations <https://github.com/mongodb/mongo-kafka/tree/master/src/main/java/com/mongodb/kafka/connect/sink/processor/id/strategy>`__
347+
source code directory that contains
348+
:github:`id strategy implementations <mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/processor/id/strategy>`
347349
packaged with the connector.
348350

349351
.. _sink-post-processors-examples:
@@ -852,8 +854,8 @@ How to Create a Custom Post Processor
852854
If the built-in post processors do not cover your use case, you can create
853855
a custom post processor class using the following steps:
854856

855-
1. Create a Java class that extends the `PostProcessor
856-
<https://github.com/mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/processor/PostProcessor.java>`__
857+
1. Create a Java class that extends the
858+
:github:`PostProcessor <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/processor/PostProcessor.java>`
857859
abstract class.
858860

859861
#. Override the ``process()`` method in your class. You can update the
@@ -871,5 +873,4 @@ a custom post processor class using the following steps:
871873
configuration.
872874

873875
For example post processors, you can browse the
874-
`source code for the built-in post processor classes <https://github.com/mongodb/mongo-kafka/tree/master/src/main/java/com/mongodb/kafka/connect/sink/processor>`__.
875-
876+
:github:`source code for the built-in post processor classes <mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/processor>`.

source/sink-connector/fundamentals/write-strategies.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To learn more about bulk writes, see the MongoDB Java driver
3535
`guide on bulk writes <{+connector_driver_url_base+}fundamentals/crud/write-operations/bulk/>`__.
3636

3737
To learn how write model strategies work in the connector, see
38-
:github:`this section of the {+mkc+} source code <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/writemodel/strategy/InsertOneDefaultStrategy.java>`.
38+
:github:`this section of the {+mkc+} source code <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/writemodel/strategy/InsertOneDefaultStrategy.java>`.
3939

4040
To learn more about strategies, see the
4141
`Wikipedia article on the strategy pattern <https://en.wikipedia.org/wiki/Strategy_pattern>`__.
@@ -295,7 +295,7 @@ Your custom write model strategy is a Java class that implements the
295295
``WriteModelStrategy`` interface and overrides the ``createWriteModel()`` method.
296296

297297
To learn more, see the
298-
:github:`source code for the WriteModelStrategy interface <mongodb/mongo-kafka/blob/master/src/main/java/com/mongodb/kafka/connect/sink/writemodel/strategy/WriteModelStrategy.java>`.
298+
:github:`source code for the WriteModelStrategy interface <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/writemodel/strategy/WriteModelStrategy.java>`.
299299

300300
Sample Write Model Strategy
301301
~~~~~~~~~~~~~~~~~~~~~~~~~~~

source/source-connector/configuration-properties.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ including essential {+kafka-connect+} settings and {+mkc+}-specific
2020
settings.
2121

2222
For an example source connector configuration file, see
23-
`MongoSourceConnector.properties <https://github.com/mongodb/mongo-kafka/blob/master/config/MongoSourceConnector.properties>`__.
23+
:github:`MongoSourceConnector.properties <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/config/MongoSourceConnector.properties>`.
2424

2525
Settings
2626
--------

0 commit comments

Comments
 (0)