pulsar-client-cpp icon indicating copy to clipboard operation
pulsar-client-cpp copied to clipboard

[DOC] Create a dropdown version list for API document

Open tisonkun opened this issue 3 years ago • 4 comments

After a discussion with @momo-jun, I'm trying to add a version dropdown list in the C++ API documents so that we can always link to the latest version.

References:

  • https://github.com/CGAL/cgal/blob/e1d4a96401e30cb2a3035e97c8bda44c15696cc9/Documentation/doc/Documentation/Doxyfile.in#L21
  • https://docs.opencv.org/4.1.0
  • https://doc.cgal.org/latest/Manual/packages.html

Originally posted by @tisonkun in https://github.com/apache/pulsar/issues/18485#issuecomment-1316278706

tisonkun avatar Nov 16 '22 03:11 tisonkun

I don't have time to promise working on this issue recently so any help is welcome.

tisonkun avatar Nov 16 '22 03:11 tisonkun

An alternative is that we can add a new https://pulsar.apache.org/api/cpp/ page, which serves as a version selector. We direct new links to there and users can select the version to browser.

In this way, we can avoid hacking into Doxygen build process.

tisonkun avatar Nov 16 '22 04:11 tisonkun

Another alternative is that we add a new placeholder said @pulsar:cpp:version@ to be resolved to the latest release version and always link to the latest version of C++ client.

As long as the following versions are backward compatible, this solution should be viable.

tisonkun avatar Nov 16 '22 04:11 tisonkun

@BewareMyPower @Anonymitaet FYI - This issue might be relevant to the CPP release discussed on the call. It aims to avoid manual maintenance of docs in terms of the version numbers in the API doc links, since CPP client has had separate releases and version numbers.

momo-jun avatar Nov 23 '22 02:11 momo-jun