Skip to content

Commit efd2a1e

Browse files
Fix doxygen generation (#103)
* Fix doxygen generation * Fix outdated MainPage * Fix outdated protobuf docs
1 parent 69e5680 commit efd2a1e

File tree

4 files changed

+9
-186
lines changed

4 files changed

+9
-186
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ compile_commands.json
7272

7373
# doxygen files
7474
apidocs/
75+
doxygen/
7576

7677
# generated files
7778
generated/

Doxyfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ PROJECT_LOGO =
7777
# entered, it will be relative to the location where doxygen was started. If
7878
# left blank the current directory will be used.
7979

80-
OUTPUT_DIRECTORY = ../target/doxygen
80+
OUTPUT_DIRECTORY = ./doxygen
8181

8282
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
8383
# directories (in 2 levels) under the output directory of each output format and
@@ -809,7 +809,7 @@ WARN_LOGFILE =
809809
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
810810
# Note: If this tag is empty the current directory is searched.
811811

812-
INPUT = include docs/MainPage.md
812+
INPUT = include ./README.md
813813

814814
# This tag can be used to specify the character encoding of the source files
815815
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
@@ -1001,7 +1001,7 @@ FILTER_SOURCE_PATTERNS =
10011001
# (index.html). This can be useful if you have a project on for instance GitHub
10021002
# and want to reuse the introduction page also for the doxygen output.
10031003

1004-
USE_MDFILE_AS_MAINPAGE = docs/MainPage.md
1004+
USE_MDFILE_AS_MAINPAGE = ./README.md
10051005

10061006
#---------------------------------------------------------------------------
10071007
# Configuration options related to source browsing

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121

2222
# Pulsar C++ client library
2323

24-
Examples for using the API to publish and consume messages can be found under the [examples](examples) folder.
24+
Examples for using the API to publish and consume messages can be found under the [examples](https://github.com/apache/pulsar-client-cpp/tree/main/examples) folder.
25+
26+
## Generate the API documents
27+
28+
Pulsar C++ client uses [doxygen](https://www.doxygen.nl) to build API documents. After installing `doxygen`, you only need to run `doxygen` to generate the API documents whose main page is under the `doxygen/html/index.html` path.
2529

2630
## Requirements
2731

@@ -32,8 +36,6 @@ Examples for using the API to publish and consume messages can be found under th
3236
* [libcurl](https://curl.se/libcurl/)
3337
* [openssl](https://github.com/openssl/openssl)
3438

35-
It's recommended to use Protocol Buffer 2.6 because it's verified by CI, but 3.x also works.
36-
3739
The default supported [compression types](include/pulsar/CompressionType.h) are:
3840

3941
* `CompressionNone`

docs/MainPage.md

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

0 commit comments

Comments
 (0)