Skip to content

Commit 151975f

Browse files
CDRIVER-5565 remove non-API docs (#1600)
* libmongoc: remove links to content moved to mongodb.com The API and APM docs are linked to from mongodb.com. * libmongoc: remove no-longer-referenced files * libmongoc: remove `genindex` The index page only shows one entry for `mongoc_kms_credentials_provider_callback_fn`. * libmongoc: link to `MongoDB C Driver` page * libmongoc: fix links to `queryable-encryption` * libmongoc: fix links to `authentication` * libmongoc: fix links to `bulk` * libmongoc: fix links to `client-side-field-level-encryption` * libmongoc: fix links to `configuring_tls` * libmongoc: fix links to `connection-pooling` * libmongoc: fix links to `in-use-encryption` * libmongoc: fix links to `manage-collection-indexes` * libmongoc: fix links to ``setting_collation_order` * libmongoc: fix links to `tutorial_crud_operations` * libmongoc: fix link to `bulk_operation_bypassing_document_validation` * libmongoc: fix links to `cursors_tailable` * libbson: remove links to content moved to mongodb.com The API docs are linked to from mongodb.com. * libbson: link to `MongoDB C Driver` page * libbson: remove no-longer-referenced files * libbson: fix links to `errors` * libmongoc: fix links to `bson:errors` * libmongoc: fix links to `bson:lifetimes` * homepage: link to `MongoDB C Driver` page * libmongoc: remove no-longer-used images * libmongoc: remove unreferenced include * update links in README * update link in CONTRIBUTING.md * fix links to community forums * add missing "the" Co-authored-by: Roberto C. Sánchez <[email protected]> * fix `setting_collation_order_` links Co-authored-by: Roberto C. Sánchez <[email protected]> * fix `setting_collation_order_` in `generate-opts.py` --------- Co-authored-by: Roberto C. Sánchez <[email protected]>
1 parent 6c8b014 commit 151975f

File tree

129 files changed

+154
-4941
lines changed

Some content is hidden

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

129 files changed

+154
-4941
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The mongo-c-driver has a few guidelines that help direct the process.
1515
### Portability
1616

1717
mongo-c-driver is portable software. It needs to run on a multitude of
18-
[Supported Platforms](https://mongoc.org/libmongoc/current/installing.html#supported-platforms).
18+
[Supported Platforms](https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/ref/platforms/).
1919

2020

2121
### Licensing

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ information:
7373

7474
Can you tell me what I need to install? Thanks!
7575

76-
.. _MongoDB Community Forums: https://community.mongodb.com/tags/c/drivers-odms-connectors/7/c-driver
76+
.. _MongoDB Community Forums: https://www.mongodb.com/community/forums/tags/c/data/drivers/7/c-driver
7777

7878
Security Vulnerabilities
7979
------------------------
@@ -87,12 +87,12 @@ Installation
8787
============
8888

8989
Detailed installation instructions are in the manual:
90-
https://www.mongoc.org/libmongoc/current/installing.html
90+
https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/tutorials/obtaining-libraries/
9191

9292

9393
Resources
9494
============
9595

96-
* `Getting Started Tutorial <https://mongoc.org/libmongoc/current/tutorial.html>`_.
96+
* `Getting Started Tutorial <https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/tutorial>`_.
9797
* `MongoDB C Driver Examples <https://github.com/mongodb/mongo-c-driver/tree/master/src/libmongoc/examples>`_.
98-
* Tutorials, videos, and code examples using the MongoDB C Driver can also be found in the `MongoDB Developer Center <https://www.mongodb.com/developer/languages/c/>`_.
98+
* Tutorials, videos, and code examples using the MongoDB C Driver can also be found in the `MongoDB Developer Center <https://www.mongodb.com/developer/languages/c/>`_.

build/generate-opts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(self, items, **defaults):
120120

121121
collation_option = ('collation', {
122122
'type': 'document',
123-
'help': 'Configure textual comparisons. See :ref:`Setting Collation Order <setting_collation_order>`, and `the MongoDB Manual entry on Collation <https://www.mongodb.com/docs/manual/reference/collation/>`_. Collation requires MongoDB 3.2 or later, otherwise an error is returned.'
123+
'help': 'Configure textual comparisons. See `Setting Collation Order <setting_collation_order_>`_, and `the MongoDB Manual entry on Collation <https://www.mongodb.com/docs/manual/reference/collation/>`_. Collation requires MongoDB 3.2 or later, otherwise an error is returned.'
124124
})
125125

126126
array_filters_option = ('arrayFilters', {

build/sphinx/homepage-config/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ def setup(app):
6060
html_use_smartypants = False
6161
html_show_sourcelink = False
6262
html_use_index = False
63+
rst_prolog = rf"""
64+
65+
.. _mongodb_docs_cdriver: https://www.mongodb.com/docs/languages/c/c-driver/current/
66+
67+
"""
6368

6469
html_sidebars = {
6570
'**': []

build/sphinx/homepage-config/index.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
MongoDB C Driver
2-
================
1+
MongoDB C Driver - API
2+
======================
33

44
**A Cross Platform MongoDB Client Library for C**
55

66
The MongoDB C Driver, also known as "libmongoc", is a library for using MongoDB from C applications, and for writing MongoDB drivers in higher-level languages.
77

88
It depends on `libbson <libbson/current/index.html>`_ to generate and parse BSON documents, the native data format of MongoDB.
99

10+
This site documents the API. For tutorials, guides, and explainers, see `MongoDB C Driver <mongodb_docs_cdriver_>`_.
11+
1012
Download
1113
--------
1214

@@ -15,18 +17,16 @@ Latest release: :download-link:`mongoc`
1517
Documentation
1618
-------------
1719

18-
`Installation <libmongoc/current/installing.html>`_
19-
20-
`Tutorial <libmongoc/current/tutorial.html>`_
20+
For tutorials, guides, and explainers, see `MongoDB C Driver <mongodb_docs_cdriver_>`_.
2121

22-
`libmongoc reference <libmongoc/current/index.html>`_
22+
- `libmongoc API documentation <libmongoc/current/index.html>`_
2323

24-
`libbson reference <libbson/current/index.html>`_
24+
- `libbson API documentation <libbson/current/index.html>`_
2525

2626
How To Ask For Help
2727
-------------------
2828

29-
For help using the driver: `MongoDB Community Forums <https://community.mongodb.com/tags/c/drivers-odms-connectors/7/c-driver>`_.
29+
For help using the driver: `MongoDB Community Forums <https://www.mongodb.com/community/forums/tags/c/data/drivers/7/c-driver>`_.
3030

3131
To file a bug or feature request: `MongoDB Jira Issue Tracker <https://jira.mongodb.org/browse/CDRIVER>`_.
3232

src/libbson/doc/bson_error_t.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Description
2323

2424
The :symbol:`bson_error_t` structure is used as an out-parameter to pass error information to the caller. It should be stack-allocated and does not requiring freeing.
2525

26-
See :doc:`Handling Errors <errors>`.
26+
See `Handling Errors <errors_>`_.
2727

2828
.. only:: html
2929

src/libbson/doc/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535

3636
html_use_index = False
3737

38+
rst_prolog = rf"""
39+
40+
.. _mongodb_docs_cdriver: https://www.mongodb.com/docs/languages/c/c-driver/current/
41+
42+
.. _errors: https://www.mongodb.com/docs/languages/c/c-driver/current/libbson/tutorials/errors/
43+
44+
"""
45+
3846

3947
def add_canonical_link(app, pagename, templatename, context, doctree):
4048
link = f'<link rel="canonical" href="https://www.mongoc.org/libbson/current/{pagename}"/>'

src/libbson/doc/creating.rst

Lines changed: 0 additions & 101 deletions
This file was deleted.

src/libbson/doc/cross-platform-notes.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/libbson/doc/endianness.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/libbson/doc/errors.rst

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/libbson/doc/guides.rst

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/libbson/doc/include-and-link.rst

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/libbson/doc/index.rst

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
1-
libbson
2-
=======
1+
libbson - API
2+
=============
33

44
A Cross Platform BSON Library for C
55

6+
This site documents the API. For tutorials, guides, and explainers, see `MongoDB C Driver <mongodb_docs_cdriver_>`_.
7+
68
Introduction
79
------------
810

911
libbson builds, parses, and iterates `BSON <http://bsonspec.org>`_ documents, the native data format of MongoDB. It also converts BSON to and from JSON, and provides a platform compatibility layer for `the MongoDB C Driver <https://www.mongoc.org/>`_.
1012

11-
.. toctree::
12-
:titlesonly:
13-
14-
tutorial
15-
16-
.. toctree::
17-
:titlesonly:
18-
19-
guides
20-
21-
.. toctree::
22-
:titlesonly:
23-
24-
cross-platform-notes
2513

2614
.. toctree::
2715
:titlesonly:

0 commit comments

Comments
 (0)