Skip to content

Commit ad6b98b

Browse files
authored
CXX-3110 Standardize \see, \par, and \code command formatting (#1213)
* CXX-3110 Standardize \see command formatting * Replace use of \parblock + \li with Markdown lists * Replace \code with Markdown code blocks
1 parent 7c229ac commit ad6b98b

File tree

80 files changed

+904
-578
lines changed

Some content is hidden

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

80 files changed

+904
-578
lines changed

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/concatenate.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ struct concatenate_array {
9191
///
9292
/// @return concatenate_doc A concatenating struct.
9393
///
94-
/// @see bsoncxx::v_noabi::builder::concatenate_doc
94+
/// @see
95+
/// - @ref bsoncxx::v_noabi::builder::concatenate_doc
9596
///
9697
inline concatenate_doc concatenate(document::view_or_value doc) {
9798
return {std::move(doc)};
@@ -107,7 +108,8 @@ inline concatenate_doc concatenate(document::view_or_value doc) {
107108
///
108109
/// @return concatenate_doc A concatenating struct.
109110
///
110-
/// @see bsoncxx::v_noabi::builder::concatenate_doc
111+
/// @see
112+
/// - @ref bsoncxx::v_noabi::builder::concatenate_doc
111113
///
112114
inline concatenate_array concatenate(array::view_or_value array) {
113115
return {std::move(array)};

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/list.hpp

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class list {
6060
/// @param value
6161
/// the BSON value
6262
///
63-
/// @see bsoncxx::v_noabi::types::bson_value::value.
63+
/// @see
64+
/// - @ref bsoncxx::v_noabi::types::bson_value::value.
6465
///
6566
template <typename T>
6667
list(T value) : val{value} {}
@@ -81,15 +82,17 @@ class list {
8182
/// bsoncxx::v_noabi::builder::document or bsoncxx::v_noabi::builder::array constructor,
8283
/// respectively.
8384
///
84-
/// @see bsoncxx::v_noabi::builder::document
85-
/// @see bsoncxx::v_noabi::builder::array
85+
/// @see
86+
/// - @ref bsoncxx::v_noabi::builder::document
87+
/// - @ref bsoncxx::v_noabi::builder::array
8688
///
8789
list(initializer_list_t init) : list(init, true, true) {}
8890

8991
///
9092
/// Provides a view of the underlying BSON value.
9193
///
92-
/// @see bsoncxx::v_noabi::types::bson_value::view.
94+
/// @see
95+
/// - @ref bsoncxx::v_noabi::types::bson_value::view.
9396
///
9497
operator bson_value::view() {
9598
return view();
@@ -98,7 +101,8 @@ class list {
98101
///
99102
/// Provides a view of the underlying BSON value.
100103
///
101-
/// @see bsoncxx::v_noabi::types::bson_value::view.
104+
/// @see
105+
/// - @ref bsoncxx::v_noabi::types::bson_value::view.
102106
///
103107
bson_value::view view() {
104108
return val.view();
@@ -168,8 +172,9 @@ class document : public list {
168172
/// @param init
169173
/// the initializer list used to construct the BSON document
170174
///
171-
/// @see bsoncxx::v_noabi::builder::list
172-
/// @see bsoncxx::v_noabi::builder::array
175+
/// @see
176+
/// - @ref bsoncxx::v_noabi::builder::list
177+
/// - @ref bsoncxx::v_noabi::builder::array
173178
///
174179
document(initializer_list_t init) : list(init, false, false) {}
175180
};
@@ -192,8 +197,9 @@ class array : public list {
192197
/// @param init
193198
/// the initializer list used to construct the BSON array
194199
///
195-
/// @see bsoncxx::v_noabi::builder::list
196-
/// @see bsoncxx::v_noabi::builder::document
200+
/// @see
201+
/// - @ref bsoncxx::v_noabi::builder::list
202+
/// - @ref bsoncxx::v_noabi::builder::document
197203
///
198204
array(initializer_list_t init) : list(init, false, true) {}
199205
};

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/stream/array_context.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ class array_context {
166166
///
167167
/// Conversion operator for single_context.
168168
///
169-
/// @see bsoncxx::v_noabi::builder::stream::single_context
169+
/// @see
170+
/// - @ref bsoncxx::v_noabi::builder::stream::single_context
170171
///
171172
operator single_context();
172173

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/stream/helpers.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ struct open_array_type {
6161
/// A stream manipulator to open a subarray.
6262
///
6363
/// @see
64-
/// https://www.mongodb.com/docs/languages/cpp/cpp-driver/current/working-with-bson/#std-label-cpp-bson-builders
65-
/// for help building arrays in loops.
64+
/// - https://www.mongodb.com/docs/languages/cpp/cpp-driver/current/working-with-bson/#std-label-cpp-bson-builders for help building arrays in loops.
6665
///
6766
constexpr open_array_type open_array;
6867

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/stream/value_context.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ class value_context {
108108
///
109109
/// Conversion operator for single_context.
110110
///
111-
/// @see bsoncxx::v_noabi::builder::stream::single_context
111+
/// @see
112+
/// - @ref bsoncxx::v_noabi::builder::stream::single_context
112113
///
113114
operator single_context();
114115

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/config/postlude.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,6 @@ static_assert(false, "BSONCXX_ENUM must be undef'ed");
104104
/// This header uses macro pragmas to guard macros defined by the bsoncxx library for internal use
105105
/// by "popping" their prior definition onto the stack after use by bsoncxx headers.
106106
///
107-
/// @see bsoncxx/v_noabi/bsoncxx/config/prelude.hpp
107+
/// @see
108+
/// - @ref bsoncxx/v_noabi/bsoncxx/config/prelude.hpp
108109
///

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/config/prelude.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,16 @@
131131
///
132132
/// @warning For internal use only!
133133
///
134-
/// @par "Includes" @parblock
135-
/// @li @ref bsoncxx/v_noabi/bsoncxx/config/compiler.hpp
136-
/// @li @ref bsoncxx-v_noabi-bsoncxx-config-config-hpp
137-
/// @li @ref bsoncxx-v_noabi-bsoncxx-config-export-hpp
138-
/// @li @ref bsoncxx/v_noabi/bsoncxx/config/util.hpp
139-
/// @li @ref bsoncxx-v_noabi-bsoncxx-config-version-hpp
140-
/// @endparblock
134+
/// @par Includes
135+
/// - @ref bsoncxx/v_noabi/bsoncxx/config/compiler.hpp
136+
/// - @ref bsoncxx-v_noabi-bsoncxx-config-config-hpp
137+
/// - @ref bsoncxx-v_noabi-bsoncxx-config-export-hpp
138+
/// - @ref bsoncxx/v_noabi/bsoncxx/config/util.hpp
139+
/// - @ref bsoncxx-v_noabi-bsoncxx-config-version-hpp
141140
///
142141
/// This header uses macro pragmas to guard macros defined by the bsoncxx library for internal use
143142
/// by "pushing" their prior definition onto the stack before use by bsoncxx headers.
144143
///
145-
/// @see bsoncxx/v_noabi/bsoncxx/config/postlude.hpp
144+
/// @see
145+
/// - @ref bsoncxx/v_noabi/bsoncxx/config/postlude.hpp
146146
///

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/document/element.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ namespace document {
4040
/// interrogated by calling type(), the key can be extracted by calling key() and
4141
/// a specific value can be extracted through get_X() accessors.
4242
///
43-
/// @see bsoncxx::v_noabi::array::element
43+
/// @see
44+
/// - @ref bsoncxx::v_noabi::array::element
4445
///
4546
class element {
4647
public:

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/fwd.hpp

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@
5151
/// @file
5252
/// Aggregate of all forward headers declaring entities in @ref bsoncxx::v_noabi.
5353
///
54-
/// @par "Includes" @parblock
55-
/// @li All header files under @ref src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx
56-
/// "bsoncxx/v_noabi/bsoncxx" whose filename ends with `-fwd.hpp`.
57-
/// @endparblock
54+
/// @par Includes
55+
/// - All header files under @ref src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx "bsoncxx/v_noabi/bsoncxx" whose filename ends with `-fwd.hpp`.
5856
///
5957

6058
///
@@ -95,13 +93,11 @@
9593
/// @dir bsoncxx/v_noabi/bsoncxx/config
9694
/// Provides headers related to bsoncxx library configuration.
9795
///
98-
/// @par "Generated Headers"
99-
///
96+
/// @par Generated Headers
10097
/// Generated headers are documented by the following pages:
101-
///
102-
/// @li @ref bsoncxx-v_noabi-bsoncxx-config-config-hpp
103-
/// @li @ref bsoncxx-v_noabi-bsoncxx-config-export-hpp
104-
/// @li @ref bsoncxx-v_noabi-bsoncxx-config-version-hpp
98+
/// - @ref bsoncxx-v_noabi-bsoncxx-config-config-hpp
99+
/// - @ref bsoncxx-v_noabi-bsoncxx-config-export-hpp
100+
/// - @ref bsoncxx-v_noabi-bsoncxx-config-version-hpp
105101
///
106102

107103
#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
@@ -421,7 +417,8 @@
421417
/// @namespace bsoncxx::v_noabi::types
422418
/// @copydoc bsoncxx::types
423419
///
424-
/// @see bsoncxx::v_noabi::types::bson_value
420+
/// @see
421+
/// - @ref bsoncxx::v_noabi::types::bson_value
425422
///
426423

427424
///

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/oid.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ namespace v_noabi {
3535
/// @note we use 'oid' to refer to this concrete class. We use 'ObjectId' to refer
3636
/// to the BSON type.
3737
///
38-
/// @see https://www.mongodb.com/docs/manual/reference/object-id/
38+
/// @see
39+
/// - https://www.mongodb.com/docs/manual/reference/object-id/
3940
///
4041
class oid {
4142
public:

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/stdx/optional.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,8 @@ using ::bsoncxx::v_noabi::stdx::optional;
853853
/// configuration variables and the `BSONCXX_POLY_USE_*` macros provided by @ref
854854
/// bsoncxx-v_noabi-bsoncxx-config-config-hpp.
855855
///
856-
/// @see [Choosing a C++17
857-
/// Polyfill](https://www.mongodb.com/docs/languages/cpp/cpp-driver/current/polyfill-selection/)
856+
/// @see
857+
/// - [Choosing a C++17 Polyfill](https://www.mongodb.com/docs/languages/cpp/cpp-driver/current/polyfill-selection/)
858858
///
859859

860860
#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/stdx/string_view.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ using ::bsoncxx::v_noabi::stdx::string_view;
483483
/// configuration variables and the `BSONCXX_POLY_USE_*` macros provided by @ref
484484
/// bsoncxx-v_noabi-bsoncxx-config-config-hpp.
485485
///
486-
/// @see [Choosing a C++17
487-
/// Polyfill](https://www.mongodb.com/docs/languages/cpp/cpp-driver/current/polyfill-selection/)
486+
/// @see
487+
/// - [Choosing a C++17 Polyfill](https://www.mongodb.com/docs/languages/cpp/cpp-driver/current/polyfill-selection/)
488488
///
489489

490490
#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/string/to_string.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,15 @@ namespace string {
3131
/// This function may be used in place of explicit conversion to `std::string`, which may not be
3232
/// supported across all polyfill build configurations.
3333
///
34-
/// @par "Example" @parblock
35-
/// @code{.cpp}
34+
/// @par Example
35+
/// ```cpp
3636
/// std::string example(bsoncxx::v_noabi::stdx::string_view sv) {
3737
/// // This may not be supported depending on the polyfill library.
3838
/// // return std::string(sv);
3939
///
4040
/// // This is supported regardless of the polyfill library.
4141
/// return bsoncxx::v_noabi::string::to_string(sv);
4242
/// }
43-
/// @endcode
44-
/// @endparblock
4543
///
4644
template <class CharT,
4745
class Traits = std::char_traits<CharT>,

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/string/view_or_value.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ namespace string {
3030
///
3131
/// Class representing a view-or-value variant type for strings.
3232
///
33-
/// @par "Derived From" @parblock
34-
/// @li @ref bsoncxx::v_noabi::view_or_value<stdx::string_view, std::string>
35-
/// @endparblock
33+
/// @par Derived From
34+
/// - @ref bsoncxx::v_noabi::view_or_value<stdx::string_view, std::string>
3635
///
3736
/// This class adds several string-specific methods to the bsoncxx::v_noabi::view_or_value template:
3837
/// - a constructor overload for const char*

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/types/bson_value/view.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,8 @@ using not_view = is_bson_view_compatible<T>;
325325
///
326326
/// Compares a view with a type representable as a view.
327327
///
328-
/// @par "Constraints" @parblock
329-
/// @li @ref bsoncxx::v_noabi::types::bson_value::view is constructible from `T`.
330-
/// @endparblock
328+
/// @par Constraints
329+
/// - @ref bsoncxx::v_noabi::types::bson_value::view is constructible from `T`.
331330
///
332331
/// @{
333332

src/mongocxx/include/mongocxx/v_noabi/mongocxx/bulk_write.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ namespace v_noabi {
3838
/// method. Options that you would typically specify for individual write operations (such as write
3939
/// concern) are instead specified for the aggregate operation.
4040
///
41-
/// @see https://www.mongodb.com/docs/manual/core/crud/
42-
/// @see https://www.mongodb.com/docs/manual/core/bulk-write-operations/
41+
/// @see
42+
/// - https://www.mongodb.com/docs/manual/core/crud/
43+
/// - https://www.mongodb.com/docs/manual/core/bulk-write-operations/
4344
///
4445
class bulk_write {
4546
public:
@@ -96,7 +97,8 @@ class bulk_write {
9697
///
9798
/// @return The optional result of the bulk operation execution, a result::bulk_write.
9899
///
99-
/// @see https://www.mongodb.com/docs/manual/core/bulk-write-operations/
100+
/// @see
101+
/// - https://www.mongodb.com/docs/manual/core/bulk-write-operations/
100102
///
101103
MONGOCXX_ABI_EXPORT_CDECL(stdx::optional<result::bulk_write>) execute() const;
102104

src/mongocxx/include/mongocxx/v_noabi/mongocxx/change_stream.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ class change_stream {
9696
/// resume token of the most recently returned document in the stream, or a
9797
/// postBatchResumeToken if the current batch of documents has been exhausted.
9898
///
99-
/// @see https://www.mongodb.com/docs/manual/changeStreams/#resume-tokens
99+
/// @see
100+
/// - https://www.mongodb.com/docs/manual/changeStreams/#resume-tokens
100101
///
101102
/// The returned document::view is valid for the lifetime of the stream and
102103
/// its data may be updated if the change stream is iterated after this function.

0 commit comments

Comments
 (0)