Skip to content

Commit be20c0d

Browse files
committed
Docs via b2
1 parent d5031c3 commit be20c0d

File tree

4 files changed

+71
-6
lines changed

4 files changed

+71
-6
lines changed

doc/Jamfile

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
project redis/doc ;
2+
3+
import doxygen ;
4+
import path ;
5+
import sequence ;
6+
7+
# All paths must be absolute to work well with the Doxygen rules.
8+
path-constant this_dir : . ;
9+
path-constant include_dir : ../include ;
10+
path-constant examples_dir : ../examples ;
11+
path-constant readme : ../README.md ;
12+
path-constant layout_file : DoxygenLayout.xml ;
13+
14+
local stylesheet_files = [ path.glob $(this_dir) : *.css ] ;
15+
local includes = [ path.glob-tree $(include_dir) : *.hpp *.cpp ] ;
16+
local examples = [ path.glob-tree $(examples_dir) : *.hpp *.cpp ] ;
17+
18+
# If passed directly, several HTML_EXTRA_STYLESHEET tags are generated,
19+
# which is not correct.
20+
local stylesheet_arg = [ sequence.join $(stylesheet_files) : " " ] ;
21+
22+
doxygen autodoc.html
23+
:
24+
$(includes) $(examples) $(readme)
25+
:
26+
<doxygen:param>PROJECT_NAME=boost_redis
27+
<doxygen:param>PROJECT_NUMBER="1.4.2"
28+
<doxygen:param>PROJECT_BRIEF="A redis client library"
29+
<doxygen:param>BUILTIN_STL_SUPPORT=YES
30+
<doxygen:param>INLINE_SIMPLE_STRUCTS=YES
31+
<doxygen:param>HIDE_UNDOC_MEMBERS=YES
32+
<doxygen:param>HIDE_UNDOC_CLASSES=YES
33+
<doxygen:param>SHOW_HEADERFILE=YES
34+
<doxygen:param>SORT_BRIEF_DOCS=YES
35+
<doxygen:param>SORT_MEMBERS_CTORS_1ST=YES
36+
<doxygen:param>SHOW_FILES=NO
37+
<doxygen:param>SHOW_NAMESPACES=NO
38+
<doxygen:param>LAYOUT_FILE=$(layout_file)
39+
<doxygen:param>WARN_IF_INCOMPLETE_DOC=YES
40+
<doxygen:param>FILE_PATTERNS="*.hpp *.cpp"
41+
<doxygen:param>EXCLUDE_SYMBOLS=std
42+
<doxygen:param>USE_MDFILE_AS_MAINPAGE=$(readme)
43+
<doxygen:param>SOURCE_BROWSER=YES
44+
<doxygen:param>"HTML_EXTRA_STYLESHEET=$(stylesheet_arg)"
45+
<doxygen:param>HTML_TIMESTAMP=YES
46+
<doxygen:param>GENERATE_TREEVIEW=YES
47+
<doxygen:param>FULL_SIDEBAR=NO
48+
<doxygen:param>ENUM_VALUES_PER_LINE=0
49+
<doxygen:param>OBFUSCATE_EMAILS=YES
50+
<doxygen:param>USE_MATHJAX=YES
51+
<doxygen:param>MATHJAX_VERSION=MathJax_2
52+
<doxygen:param>MATHJAX_RELPATH="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/"
53+
<doxygen:param>GENERATE_LATEX=NO
54+
<doxygen:param>MACRO_EXPANSION=YES
55+
<doxygen:param>HAVE_DOT=NO
56+
<doxygen:param>CLASS_GRAPH=NO
57+
<doxygen:param>DIRECTORY_GRAPH=NO
58+
;
59+
60+
# These are used to inform the build system of the
61+
# means to build the integrated and stand-alone docs.
62+
63+
alias boostdoc ;
64+
explicit boostdoc ;
65+
66+
alias boostrelease : autodoc.html ;
67+
explicit boostrelease ;

include/boost/redis/connection.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ class basic_connection {
171171
* To cancel an ongoing receive operation apps should call
172172
* `connection::cancel(operation::receive)`.
173173
*
174-
* @param response Response object.
175174
* @param token Completion token.
176175
*
177176
* For an example see cpp20_subscriber.cpp. The completion token must
@@ -264,7 +263,6 @@ class basic_connection {
264263
* @li operation::all: Cancels all operations listed above.
265264
*
266265
* @param op: The operation to be cancelled.
267-
* @returns The number of operations that have been canceled.
268266
*/
269267
void cancel(operation op = operation::all)
270268
{

include/boost/redis/logger.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ class logger {
117117
/** @brief Called when the run operation completes.
118118
* @ingroup high-level-api
119119
*
120-
* @param read_ec Error code returned by the read operation.
121-
* @param write_ec Error code returned by the write operation.
120+
* @param reader_ec Error code returned by the read operation.
121+
* @param writer_ec Error code returned by the write operation.
122122
*/
123123
void on_run(system::error_code const& reader_ec, system::error_code const& writer_ec);
124124

include/boost/redis/response.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ using generic_response = adapter::result<std::vector<resp3::node>>;
5454
* std::cout << "PING: " << resp.value().front().value << std::endl;
5555
* consume_one(resp);
5656
* std::cout << "PING: " << resp.value().front().value << std::endl;
57-
* @code
57+
* @endcode
5858
*
5959
* is
6060
*
6161
* @code
6262
* PING: one
6363
* PING: two
6464
* PING: three
65-
* @code
65+
* @endcode
6666
*
6767
* Given that this function rotates elements, it won't be very
6868
* efficient for responses with a large number of elements. It was

0 commit comments

Comments
 (0)