meilisearch / meilisearch-java

Java client for Meilisearch

Home Page:https://meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add anchor tag in javadoc to reference documents.

junghoon-vans opened this issue · comments

Description

Add an anchor to link the URL that exists in the javadoc to the reference documentation.

Basic example

AS-IS

/**
 * Class covering the Meilisearch Task API
 *
 * <p>https://www.meilisearch.com/docs/reference/api/tasks
 */
public class TasksHandler { ... }

Currently, it's inconvenient for users to access reference documentation through javadoc.

스크린샷 2023-10-08 오후 9 36 03

TO-BE

/**
 * Class covering the <a href="https://www.meilisearch.com/docs/reference/api/tasks">Meilisearch Task API</a>.
 */
public class TasksHandler { ... }

Users can access reference documentation with just a click.

스크린샷 2023-10-08 오후 9 36 18

Other

Hello @junghoon-vans
thanks for the suggestion

PRs are welcome for this 😊
We will be available for review

@curquiza I thought this issue was being addressed in #666.
Can I take care of it and raise PR?

Yes you can take care of it, since the #666 PR is currently in a pending state (missing test fixes)

@curquiza As I was working on this, I realized that using the @see tag was a good idea.

For example:

/**
 * Data structure of the query parameters of the documents route when retrieving a document
 *
 * @see <a href="https://www.meilisearch.com/docs/reference/api/documents#query-parameters-1">API
 *     specification</a>
 */
@Setter
@Getter
public class DocumentQuery { ... }

스크린샷 2023-10-26 오후 2 50 16

Note that this approach is also used in Elasticsearch-java.

Let's go with this then, I rely on you for this!